53 #include "vtkFiltersCoreModule.h"
54 #include "vtkPolyDataAlgorithm.h"
56 #include "vtkContourValues.h"
58 #define VTK_SORT_BY_VALUE 0
59 #define VTK_SORT_BY_CELL 1
61 class vtkImplicitFunction;
62 class vtkIncrementalPointLocator;
68 class VTKFILTERSCORE_EXPORT
vtkCutter :
public vtkPolyDataAlgorithm
72 void PrintSelf(ostream& os, vtkIndent indent);
82 {this->ContourValues->SetValue(i,value);}
88 {
return this->ContourValues->GetValue(i);}
95 {
return this->ContourValues->GetValues();}
103 {this->ContourValues->GetValues(contourValues);}
111 {this->ContourValues->SetNumberOfContours(number);}
117 {
return this->ContourValues->GetNumberOfContours();}
124 {this->ContourValues->GenerateValues(numContours, range);}
131 {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
136 unsigned long GetMTime();
140 virtual void SetCutFunction(vtkImplicitFunction*);
141 vtkGetObjectMacro(CutFunction,vtkImplicitFunction);
148 vtkSetMacro(GenerateCutScalars,
int);
149 vtkGetMacro(GenerateCutScalars,
int);
150 vtkBooleanMacro(GenerateCutScalars,
int);
158 vtkSetMacro(GenerateTriangles,
int);
159 vtkGetMacro(GenerateTriangles,
int);
160 vtkBooleanMacro(GenerateTriangles,
int);
166 void SetLocator(vtkIncrementalPointLocator *locator);
167 vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
182 vtkGetMacro(SortBy,
int);
187 const char *GetSortByAsString();
192 void CreateDefaultLocator();
198 static void GetCellTypeDimensions(
unsigned char* cellTypeDimensions);
204 vtkSetClampMacro(OutputPointsPrecision,
int, SINGLE_PRECISION, DEFAULT_PRECISION);
205 vtkGetMacro(OutputPointsPrecision,
int);
214 virtual int ProcessRequest(vtkInformation*,
215 vtkInformationVector**,
216 vtkInformationVector*);
219 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
220 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
221 virtual int FillInputPortInformation(
int port, vtkInformation *info);
222 void UnstructuredGridCutter(vtkDataSet *input, vtkPolyData *output);
223 void DataSetCutter(vtkDataSet *input, vtkPolyData *output);
224 void StructuredPointsCutter(vtkDataSet *, vtkPolyData *,
225 vtkInformation *, vtkInformationVector **,
226 vtkInformationVector *);
227 void StructuredGridCutter(vtkDataSet *, vtkPolyData *);
228 void RectilinearGridCutter(vtkDataSet *, vtkPolyData *);
253 return "SortByValue";
Cut vtkDataSet with user-specified implicit function.
generate isosurface from structured grids
vtkRectilinearSynchronizedTemplates * RectilinearSynchronizedTemplates
vtkIncrementalPointLocator * Locator
vtkGridSynchronizedTemplates3D * GridSynchronizedTemplates
void GenerateValues(int numContours, double range[2])
vtkImplicitFunction * CutFunction
generate cut surface from structured points
generate isosurface from structured points
vtkSynchronizedTemplatesCutter3D * SynchronizedTemplatesCutter3D
void SetSortByToSortByCell()
#define VTK_SORT_BY_VALUE
void SetNumberOfContours(int number)
int GetNumberOfContours()
generate isosurface from rectilinear grid
vtkContourValues * ContourValues
void SetSortByToSortByValue()
void SetValue(int i, double value)
const char * GetSortByAsString()
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
void GetValues(double *contourValues)
int OutputPointsPrecision
vtkSynchronizedTemplates3D * SynchronizedTemplates3D