NAME
vtkSampleFunction - sample an implicit function over a structured point set
SYNOPSIS
#include "/opt/vtk-c++/graphics/vtkSampleFunction.h"
class VTK_EXPORT vtkSampleFunction : public vtkStructuredPointsSource
vtkSampleFunction();
~vtkSampleFunction();
static vtkSampleFunction *New() {return new vtkSampleFunction;};
const char *GetClassName() {return "vtkSampleFunction";};
void PrintSelf(ostream& os, vtkIndent indent);
void SetImplicitFunction(vtkImplicitFunction*);
void SetImplicitFunction(vtkImplicitFunction& );
vtkImplicitFunction *GetImplicitFunction();
void SetScalars(vtkScalars*);
void SetScalars(vtkScalars& );
void SetSampleDimensions(int i, int j, int k);
void SetSampleDimensions(int dim[3]);
int *GetSampleDimensions();
void GetSampleDimensions(int data[3]);
void SetModelBounds(float data[6]);
void SetModelBounds(float *);
float *GetModelBounds();
void GetModelBounds(float data[6]);
void SetModelBounds(float xmin, float xmax, float ymin, float ymax,
float zmin, float zmax);
void SetCapping(int);
int GetCapping();
void CappingOn();
void CappingOff();
void SetCapValue(float);
float GetCapValue();
void SetComputeNormals(int);
int GetComputeNormals();
void ComputeNormalsOn();
void ComputeNormalsOff();
unsigned long int GetMTime();
DESCRIPTION
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.
SUMMARY
void SetImplicitFunction(vtkImplicitFunction*)
void SetImplicitFunction(vtkImplicitFunction& )
Specify the implicit function to use to generate data.
void SetScalars(vtkScalars*)
void SetScalars(vtkScalars& )
Specify the subclass of the vtkScalars by providing a scalar subclass object. vtkSampleFunction() will allocate the necessary space for storing the sampled values in the vtkScalars subclass.
void SetModelBounds(float data[6])
void SetModelBounds(float *)
Specify the region in space over which the sampling occurs.
void SetCapping(int)
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.
void SetCapValue(float)
Set the cap value.
void SetComputeNormals(int)
Turn on/off the computation of normals.
vtkSampleFunction()
Construct with ModelBounds=(-1,1,-1,1,-1,1), SampleDimensions=(50,50,50), Capping turned off, and normal
generation on.
void SetSampleDimensions(int i, int j, int k)
Specify the dimensions of the data on which to sample.
void SetSampleDimensions(int dim[3])
Specify the dimensions of the data on which to sample.
void SetModelBounds(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax)
Specify the region in space over which the sampling occurs.