VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
GenericFiltering
vtkGenericCutter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkGenericCutter.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
=========================================================================*/
48
#ifndef __vtkGenericCutter_h
49
#define __vtkGenericCutter_h
50
51
#include "
vtkPolyDataAlgorithm.h
"
52
53
class
vtkContourValues
;
54
55
class
vtkImplicitFunction
;
56
class
vtkIncrementalPointLocator
;
57
class
vtkPointData
;
58
class
vtkCellData
;
59
60
class
VTK_GENERIC_FILTERING_EXPORT
vtkGenericCutter
:
public
vtkPolyDataAlgorithm
61
{
62
public
:
63
vtkTypeMacro(
vtkGenericCutter
,
vtkPolyDataAlgorithm
);
64
void
PrintSelf
(ostream& os,
vtkIndent
indent);
65
68
static
vtkGenericCutter
*
New
();
69
72
void
SetValue(
int
i,
double
value
);
73
75
double
GetValue(
int
i);
76
79
double
*GetValues();
80
84
void
GetValues(
double
*contourValues);
85
89
void
SetNumberOfContours(
int
number);
90
92
int
GetNumberOfContours();
93
96
void
GenerateValues(
int
numContours,
double
range
[2]);
97
100
void
GenerateValues(
int
numContours,
double
rangeStart,
double
rangeEnd);
101
104
unsigned
long
GetMTime
();
105
107
108
virtual
void
SetCutFunction(
vtkImplicitFunction
*);
109
vtkGetObjectMacro(CutFunction,
vtkImplicitFunction
);
111
113
116
vtkSetMacro(GenerateCutScalars,
int
);
117
vtkGetMacro(GenerateCutScalars,
int
);
118
vtkBooleanMacro(GenerateCutScalars,
int
);
120
122
124
void
SetLocator(
vtkIncrementalPointLocator
*locator);
125
vtkGetObjectMacro(Locator,
vtkIncrementalPointLocator
);
127
130
void
CreateDefaultLocator();
131
132
protected
:
133
vtkGenericCutter
(
vtkImplicitFunction
*cf=NULL);
134
~
vtkGenericCutter
();
135
137
138
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
139
int
FillInputPortInformation
(
int
,
vtkInformation
*);
141
142
vtkImplicitFunction
*
CutFunction
;
143
vtkIncrementalPointLocator
*
Locator
;
144
vtkContourValues
*
ContourValues
;
145
int
GenerateCutScalars
;
146
147
// Used internal by vtkGenericAdaptorCell::Contour()
148
vtkPointData
*
InternalPD
;
149
vtkPointData
*
SecondaryPD
;
150
vtkCellData
*
SecondaryCD
;
151
152
private
:
153
vtkGenericCutter
(
const
vtkGenericCutter
&);
// Not implemented.
154
void
operator=(
const
vtkGenericCutter
&);
// Not implemented.
155
};
156
157
#endif
158
159
Generated on Wed May 30 2012 13:21:57 for VTK by
1.8.1