sample an implicit function over a structured point set
More...
#include <vtkSampleFunction.h>
Inherits vtkImageAlgorithm.
sample an implicit function over a structured point set
vtkSampleFunction is a source object that evaluates an implicit function and normals at each point in a vtkStructuredPoints. The user can specify the sample dimensions and location in space to perform the sampling. To create closed surfaces (in conjunction with the vtkContourFilter), capping can be turned on to set a particular value on the boundaries of the sample space.
- See Also
- vtkImplicitModeller
- Examples:
- vtkSampleFunction (Examples)
- Tests:
- vtkSampleFunction (Tests)
Definition at line 44 of file vtkSampleFunction.h.
vtkSampleFunction::vtkSampleFunction |
( |
| ) |
|
|
protected |
Default constructor. Construct with ModelBounds=(-1,1,-1,1,-1,1), SampleDimensions=(50,50,50), Capping turned off, CapValue=VTK_DOUBLE_MAX, normal generation on, OutputScalarType set to VTK_DOUBLE, ImplicitFunction set to NULL, ScalarArrayName is "" and NormalArrayName is "".
vtkSampleFunction::~vtkSampleFunction |
( |
| ) |
|
|
protected |
static int vtkSampleFunction::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkSampleFunction::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkSampleFunction::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkSampleFunction::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
Construct with ModelBounds=(-1,1,-1,1,-1,1), SampleDimensions=(50,50,50), Capping turned off, and normal generation on.
virtual void vtkSampleFunction::SetImplicitFunction |
( |
vtkImplicitFunction * |
| ) |
|
|
virtual |
Specify the implicit function to use to generate data.
virtual vtkImplicitFunction* vtkSampleFunction::GetImplicitFunction |
( |
| ) |
|
|
virtual |
Specify the implicit function to use to generate data.
virtual void vtkSampleFunction::SetOutputScalarType |
( |
int |
| ) |
|
|
virtual |
Set what type of scalar data this source should generate.
virtual int vtkSampleFunction::GetOutputScalarType |
( |
| ) |
|
|
virtual |
Set what type of scalar data this source should generate.
void vtkSampleFunction::SetOutputScalarTypeToDouble |
( |
| ) |
|
|
inline |
Set what type of scalar data this source should generate.
Definition at line 65 of file vtkSampleFunction.h.
void vtkSampleFunction::SetOutputScalarTypeToFloat |
( |
| ) |
|
|
inline |
Set what type of scalar data this source should generate.
Definition at line 67 of file vtkSampleFunction.h.
void vtkSampleFunction::SetOutputScalarTypeToLong |
( |
| ) |
|
|
inline |
Set what type of scalar data this source should generate.
Definition at line 69 of file vtkSampleFunction.h.
void vtkSampleFunction::SetOutputScalarTypeToUnsignedLong |
( |
| ) |
|
|
inline |
Set what type of scalar data this source should generate.
Definition at line 71 of file vtkSampleFunction.h.
void vtkSampleFunction::SetOutputScalarTypeToInt |
( |
| ) |
|
|
inline |
Set what type of scalar data this source should generate.
Definition at line 73 of file vtkSampleFunction.h.
void vtkSampleFunction::SetOutputScalarTypeToUnsignedInt |
( |
| ) |
|
|
inline |
Set what type of scalar data this source should generate.
Definition at line 75 of file vtkSampleFunction.h.
void vtkSampleFunction::SetOutputScalarTypeToShort |
( |
| ) |
|
|
inline |
Set what type of scalar data this source should generate.
Definition at line 77 of file vtkSampleFunction.h.
void vtkSampleFunction::SetOutputScalarTypeToUnsignedShort |
( |
| ) |
|
|
inline |
Set what type of scalar data this source should generate.
Definition at line 79 of file vtkSampleFunction.h.
void vtkSampleFunction::SetOutputScalarTypeToChar |
( |
| ) |
|
|
inline |
Set what type of scalar data this source should generate.
Definition at line 81 of file vtkSampleFunction.h.
void vtkSampleFunction::SetOutputScalarTypeToUnsignedChar |
( |
| ) |
|
|
inline |
Set what type of scalar data this source should generate.
Definition at line 83 of file vtkSampleFunction.h.
virtual void vtkSampleFunction::SetScalars |
( |
vtkDataArray * |
da | ) |
|
|
virtual |
Control the type of the scalars object by explicitly providing a scalar object. THIS IS DEPRECATED, although it still works!!! Please use SetOutputScalarType instead.
void vtkSampleFunction::SetSampleDimensions |
( |
int |
i, |
|
|
int |
j, |
|
|
int |
k |
|
) |
| |
Specify the dimensions of the data on which to sample.
void vtkSampleFunction::SetSampleDimensions |
( |
int |
dim[3] | ) |
|
Specify the dimensions of the data on which to sample.
virtual int* vtkSampleFunction::GetSampleDimensions |
( |
| ) |
|
|
virtual |
Specify the dimensions of the data on which to sample.
virtual void vtkSampleFunction::GetSampleDimensions |
( |
int |
data[3] | ) |
|
|
virtual |
Specify the dimensions of the data on which to sample.
void vtkSampleFunction::SetModelBounds |
( |
double |
bounds[6] | ) |
|
Specify the region in space over which the sampling occurs. The bounds is specified as (xMin,xMax, yMin,yMax, zMin,zMax).
void vtkSampleFunction::SetModelBounds |
( |
double |
xMin, |
|
|
double |
xMax, |
|
|
double |
yMin, |
|
|
double |
yMax, |
|
|
double |
zMin, |
|
|
double |
zMax |
|
) |
| |
Specify the region in space over which the sampling occurs. The bounds is specified as (xMin,xMax, yMin,yMax, zMin,zMax).
virtual double* vtkSampleFunction::GetModelBounds |
( |
| ) |
|
|
virtual |
Specify the region in space over which the sampling occurs. The bounds is specified as (xMin,xMax, yMin,yMax, zMin,zMax).
virtual void vtkSampleFunction::GetModelBounds |
( |
double |
data[6] | ) |
|
|
virtual |
Specify the region in space over which the sampling occurs. The bounds is specified as (xMin,xMax, yMin,yMax, zMin,zMax).
virtual void vtkSampleFunction::SetCapping |
( |
int |
| ) |
|
|
virtual |
Turn on/off capping. If capping is on, then the outer boundaries of the structured point set are set to cap value. This can be used to insure surfaces are closed.
virtual int vtkSampleFunction::GetCapping |
( |
| ) |
|
|
virtual |
Turn on/off capping. If capping is on, then the outer boundaries of the structured point set are set to cap value. This can be used to insure surfaces are closed.
virtual void vtkSampleFunction::CappingOn |
( |
| ) |
|
|
virtual |
Turn on/off capping. If capping is on, then the outer boundaries of the structured point set are set to cap value. This can be used to insure surfaces are closed.
virtual void vtkSampleFunction::CappingOff |
( |
| ) |
|
|
virtual |
Turn on/off capping. If capping is on, then the outer boundaries of the structured point set are set to cap value. This can be used to insure surfaces are closed.
virtual void vtkSampleFunction::SetCapValue |
( |
double |
| ) |
|
|
virtual |
virtual double vtkSampleFunction::GetCapValue |
( |
| ) |
|
|
virtual |
virtual void vtkSampleFunction::SetComputeNormals |
( |
int |
| ) |
|
|
virtual |
Turn on/off the computation of normals (normals are float values).
virtual int vtkSampleFunction::GetComputeNormals |
( |
| ) |
|
|
virtual |
Turn on/off the computation of normals (normals are float values).
virtual void vtkSampleFunction::ComputeNormalsOn |
( |
| ) |
|
|
virtual |
Turn on/off the computation of normals (normals are float values).
virtual void vtkSampleFunction::ComputeNormalsOff |
( |
| ) |
|
|
virtual |
Turn on/off the computation of normals (normals are float values).
virtual void vtkSampleFunction::SetScalarArrayName |
( |
const char * |
| ) |
|
|
virtual |
Set/get the scalar array name for this data set. Initial value is "scalars".
virtual char* vtkSampleFunction::GetScalarArrayName |
( |
| ) |
|
|
virtual |
Set/get the scalar array name for this data set. Initial value is "scalars".
virtual void vtkSampleFunction::SetNormalArrayName |
( |
const char * |
| ) |
|
|
virtual |
Set/get the normal array name for this data set. Initial value is "normals".
virtual char* vtkSampleFunction::GetNormalArrayName |
( |
| ) |
|
|
virtual |
Set/get the normal array name for this data set. Initial value is "normals".
unsigned long vtkSampleFunction::GetMTime |
( |
| ) |
|
Return the MTime also considering the implicit function.
virtual void vtkSampleFunction::ReportReferences |
( |
vtkGarbageCollector * |
| ) |
|
|
protectedvirtual |
void vtkSampleFunction::ExecuteDataWithInformation |
( |
vtkDataObject * |
, |
|
|
vtkInformation * |
|
|
) |
| |
|
protected |
virtual int vtkSampleFunction::RequestInformation |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
void vtkSampleFunction::Cap |
( |
vtkDataArray * |
s | ) |
|
|
protected |
int vtkSampleFunction::OutputScalarType |
|
protected |
int vtkSampleFunction::SampleDimensions[3] |
|
protected |
double vtkSampleFunction::ModelBounds[6] |
|
protected |
int vtkSampleFunction::Capping |
|
protected |
double vtkSampleFunction::CapValue |
|
protected |
vtkImplicitFunction* vtkSampleFunction::ImplicitFunction |
|
protected |
int vtkSampleFunction::ComputeNormals |
|
protected |
char* vtkSampleFunction::ScalarArrayName |
|
protected |
char* vtkSampleFunction::NormalArrayName |
|
protected |
The documentation for this class was generated from the following file: