3D Human Airway Tree
Program generuje ludzkie drzewo oskrzelowe
Strona główna
Dodatkowe strony
Przestrzenie nazw
Klasy
Pliki
Lista plików
Składowe plików
src
ThirdParts
vtk
BooleanOperations
vtkDistancePolyDataFilter.h
Idź do dokumentacji tego pliku.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDistancePolyDataFilter.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
// .NAME vtkDistancePolyDataFilter
16
// .SECTION Description
17
//
18
// Computes the signed distance from one vtkPolyData to another. The
19
// signed distance to the second input is computed at every point in
20
// the first input using vtkImplicitPolyData. Optionally, the signed
21
// distance to the first input at every point in the second input can
22
// be computed. This may be enabled by calling
23
// ComputeSecondDistanceOn().
24
//
25
// If the signed distance is not desired, the unsigned distance can be
26
// computed by calling SignedDistanceOff(). The signed distance field
27
// may be negated by calling NegateDistanceOn();
28
//
29
// Written by Chris Weigle and Cory Quammen, The University of North
30
// Carolina at Chapel Hill.
31
32
#ifndef __vtkDistancePolyDataFilter_h
33
#define __vtkDistancePolyDataFilter_h
34
35
#include "vtkPolyDataAlgorithm.h"
36
37
class
vtkDistancePolyDataFilter
:
public
vtkPolyDataAlgorithm {
38
public
:
39
static
vtkDistancePolyDataFilter
*
New
();
40
vtkTypeMacro
(
vtkDistancePolyDataFilter
, vtkPolyDataAlgorithm);
41
void
PrintSelf
(ostream& os, vtkIndent indent);
42
43
// Description:
44
// Enable/disable computation of the signed distance between
45
// the first poly data and the second poly data. Defaults to on.
46
vtkSetMacro
(
SignedDistance
,
int
);
47
vtkGetMacro
(
SignedDistance
,
int
);
48
vtkBooleanMacro
(
SignedDistance
,
int
);
49
50
// Description:
51
// Enable/disable negation of the distance values. Defaults to
52
// off. Has no effect if SignedDistance is off.
53
vtkSetMacro
(
NegateDistance
,
int
);
54
vtkGetMacro
(
NegateDistance
,
int
);
55
vtkBooleanMacro
(
NegateDistance
,
int
);
56
57
// Description:
58
// Enable/disable computation of a second output poly data with the
59
// distance from the first poly data at each point. Defaults to on.
60
vtkSetMacro
(
ComputeSecondDistance
,
int
);
61
vtkGetMacro
(
ComputeSecondDistance
,
int
);
62
vtkBooleanMacro
(
ComputeSecondDistance
,
int
);
63
64
// Description:
65
// Get the second output, which is a copy of the second input with an
66
// additional distance scalar field.
67
vtkPolyData*
GetSecondDistanceOutput
();
68
69
protected
:
70
vtkDistancePolyDataFilter
();
71
~vtkDistancePolyDataFilter
();
72
73
int
RequestData
(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
74
int
FillInputPortInformation
(
int
, vtkInformation*);
75
76
void
GetPolyDataDistance
(vtkPolyData*, vtkPolyData*);
77
78
int
SignedDistance
;
79
int
NegateDistance
;
80
int
ComputeSecondDistance
;
81
82
private
:
83
vtkDistancePolyDataFilter
(
const
vtkDistancePolyDataFilter
&);
// no implementation
84
void
operator=(
const
vtkDistancePolyDataFilter
&);
// no implementation
85
};
86
87
#endif
Wygenerowano przez
1.8.1