62 #ifndef __vtkClipDataSet_h
63 #define __vtkClipDataSet_h
65 #include "vtkFiltersGeneralModule.h"
66 #include "vtkUnstructuredGridAlgorithm.h"
68 class vtkCallbackCommand;
69 class vtkImplicitFunction;
70 class vtkIncrementalPointLocator;
72 class VTKFILTERSGENERAL_EXPORT
vtkClipDataSet :
public vtkUnstructuredGridAlgorithm
76 void PrintSelf(ostream& os, vtkIndent indent);
87 vtkSetMacro(Value,
double);
88 vtkGetMacro(Value,
double);
95 vtkSetMacro(UseValueAsOffset,
bool);
96 vtkGetMacro(UseValueAsOffset,
bool);
97 vtkBooleanMacro(UseValueAsOffset,
bool);
106 vtkSetMacro(InsideOut,
int);
107 vtkGetMacro(InsideOut,
int);
108 vtkBooleanMacro(InsideOut,
int);
115 virtual void SetClipFunction(vtkImplicitFunction*);
116 vtkGetObjectMacro(ClipFunction,vtkImplicitFunction);
124 vtkSetMacro(GenerateClipScalars,
int);
125 vtkGetMacro(GenerateClipScalars,
int);
126 vtkBooleanMacro(GenerateClipScalars,
int);
132 vtkSetMacro(GenerateClippedOutput,
int);
133 vtkGetMacro(GenerateClippedOutput,
int);
134 vtkBooleanMacro(GenerateClippedOutput,
int);
142 vtkSetClampMacro(MergeTolerance,
double,0.0001,0.25);
143 vtkGetMacro(MergeTolerance,
double);
147 vtkUnstructuredGrid *GetClippedOutput();
152 void SetLocator(vtkIncrementalPointLocator *locator);
153 vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
158 void CreateDefaultLocator();
161 unsigned long GetMTime();
167 vtkSetClampMacro(OutputPointsPrecision,
int, SINGLE_PRECISION, DEFAULT_PRECISION);
168 vtkGetMacro(OutputPointsPrecision,
int);
177 virtual int ProcessRequest(vtkInformation*,
178 vtkInformationVector**,
179 vtkInformationVector*);
182 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
183 virtual int FillInputPortInformation(
int port, vtkInformation *info);
195 static void InternalProgressCallbackFunction(vtkObject*,
unsigned long,
196 void* clientdata,
void*);
197 void InternalProgressCallback(vtkAlgorithm *algorithm);
202 void ClipVolume(vtkDataSet *input, vtkUnstructuredGrid *output);
204 int ClipPoints(vtkDataSet* input, vtkUnstructuredGrid* output,
205 vtkInformationVector** inputVector);
vtkIncrementalPointLocator * Locator
vtkImplicitFunction * ClipFunction
vtkCallbackCommand * InternalProgressObserver
int GenerateClippedOutput
clip any dataset with user-specified implicit function or input scalar data
int OutputPointsPrecision