35 #ifndef __vtkSampleFunction_h
36 #define __vtkSampleFunction_h
38 #include "vtkImagingHybridModule.h"
39 #include "vtkImageAlgorithm.h"
41 class vtkImplicitFunction;
48 void PrintSelf(ostream& os, vtkIndent indent);
57 virtual void SetImplicitFunction(vtkImplicitFunction*);
58 vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
63 vtkSetMacro(OutputScalarType,
int);
64 vtkGetMacro(OutputScalarType,
int);
66 {this->SetOutputScalarType(VTK_DOUBLE);}
68 {this->SetOutputScalarType(VTK_FLOAT);}
70 {this->SetOutputScalarType(VTK_LONG);}
72 {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
74 {this->SetOutputScalarType(VTK_INT);}
76 {this->SetOutputScalarType(VTK_UNSIGNED_INT);}
78 {this->SetOutputScalarType(VTK_SHORT);}
80 {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);}
82 {this->SetOutputScalarType(VTK_CHAR);}
84 {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);}
90 VTK_LEGACY(
virtual void SetScalars(vtkDataArray *da));
93 void SetSampleDimensions(
int i,
int j,
int k);
97 void SetSampleDimensions(
int dim[3]);
98 vtkGetVectorMacro(SampleDimensions,
int,3);
104 void SetModelBounds(
double bounds[6]);
105 void SetModelBounds(
double xMin,
double xMax,
106 double yMin,
double yMax,
107 double zMin,
double zMax);
108 vtkGetVectorMacro(ModelBounds,
double,6);
115 vtkSetMacro(Capping,
int);
116 vtkGetMacro(Capping,
int);
117 vtkBooleanMacro(Capping,
int);
122 vtkSetMacro(CapValue,
double);
123 vtkGetMacro(CapValue,
double);
128 vtkSetMacro(ComputeNormals,
int);
129 vtkGetMacro(ComputeNormals,
int);
130 vtkBooleanMacro(ComputeNormals,
int);
136 vtkSetStringMacro(ScalarArrayName);
137 vtkGetStringMacro(ScalarArrayName);
143 vtkSetStringMacro(NormalArrayName);
144 vtkGetStringMacro(NormalArrayName);
148 unsigned long GetMTime();
160 virtual void ReportReferences(vtkGarbageCollector*);
162 void ExecuteDataWithInformation(vtkDataObject *, vtkInformation *);
163 virtual int RequestInformation (vtkInformation *,
164 vtkInformationVector **,
165 vtkInformationVector *);
166 void Cap(vtkDataArray *s);
169 int SampleDimensions[3];
170 double ModelBounds[6];
sample an implicit function over a structured point set
void SetOutputScalarTypeToShort()
void SetOutputScalarTypeToUnsignedShort()
void SetOutputScalarTypeToDouble()
void SetOutputScalarTypeToLong()
void SetOutputScalarTypeToInt()
void SetOutputScalarTypeToUnsignedLong()
vtkImplicitFunction * ImplicitFunction
void SetOutputScalarTypeToUnsignedChar()
void SetOutputScalarTypeToFloat()
void SetOutputScalarTypeToUnsignedInt()
void SetOutputScalarTypeToChar()