48 #ifndef __vtkHyperOctreeCutter_h
49 #define __vtkHyperOctreeCutter_h
51 #include "vtkFiltersHyperTreeModule.h"
52 #include "vtkPolyDataAlgorithm.h"
54 #include "vtkContourValues.h"
64 class vtkImplicitFunction;
65 class vtkIncrementalPointLocator;
67 class vtkOrderedTriangulator;
68 class vtkHyperOctreeCursor;
70 class vtkDataSetAttributes;
77 void PrintSelf(ostream& os, vtkIndent indent);
87 {this->ContourValues->SetValue(i,value);}
93 {
return this->ContourValues->GetValue(i);}
100 {
return this->ContourValues->GetValues();}
108 {this->ContourValues->GetValues(contourValues);}
116 {this->ContourValues->SetNumberOfContours(number);}
122 {
return this->ContourValues->GetNumberOfContours();}
129 {this->ContourValues->GenerateValues(numContours, range);}
136 {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
141 unsigned long GetMTime();
145 virtual void SetCutFunction(vtkImplicitFunction*);
146 vtkGetObjectMacro(CutFunction,vtkImplicitFunction);
153 vtkSetMacro(GenerateCutScalars,
int);
154 vtkGetMacro(GenerateCutScalars,
int);
155 vtkBooleanMacro(GenerateCutScalars,
int);
161 void SetLocator(vtkIncrementalPointLocator *locator);
162 vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
177 vtkGetMacro(SortBy,
int);
190 return "SortByValue";
201 void CreateDefaultLocator();
207 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
208 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
209 virtual int FillInputPortInformation(
int port, vtkInformation *info);
214 void CutNode(vtkHyperOctreeCursor *cursor,
251 vtkIdType CellTypeCounter[65536];
vtkImplicitFunction * CutFunction
void SetValue(int i, double value)
vtkDoubleArray * TetScalars
Cut vtkHyperOctree with user-specified implicit function.
A concrete implementation of vtkHyperOctreePointsGrabber used by vtkClipHyperOctree and vtkHyperOctre...
vtkHyperOctreeClipCutPointsGrabber * Grabber
vtkIncrementalPointLocator * Locator
void SetNumberOfContours(int number)
void SetSortByToSortByValue()
vtkDataSetAttributes * InCD
vtkContourValues * ContourValues
vtkDoubleArray * CellScalars
const char * GetSortByAsString()
vtkOrderedTriangulator * Triangulator
vtkHyperOctreeCursor * Sibling
#define VTK_SORT_BY_VALUE
void SetSortByToSortByCell()
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
void GenerateValues(int numContours, double range[2])
void GetValues(double *contourValues)
int GetNumberOfContours()
vtkIdType TemplateCounter