VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkSampleFunction Class Reference

sample an implicit function over a structured point set More...

#include <vtkSampleFunction.h>

Inheritance diagram for vtkSampleFunction:
Inheritance graph
[legend]
Collaboration diagram for vtkSampleFunction:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkImageAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkSampleFunctionNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetScalars (vtkDataArray *da)
void SetSampleDimensions (int i, int j, int k)
unsigned long GetMTime ()
virtual void SetImplicitFunction (vtkImplicitFunction *)
virtual vtkImplicitFunctionGetImplicitFunction ()
virtual void SetOutputScalarType (int)
virtual int GetOutputScalarType ()
void SetOutputScalarTypeToDouble ()
void SetOutputScalarTypeToFloat ()
void SetOutputScalarTypeToLong ()
void SetOutputScalarTypeToUnsignedLong ()
void SetOutputScalarTypeToInt ()
void SetOutputScalarTypeToUnsignedInt ()
void SetOutputScalarTypeToShort ()
void SetOutputScalarTypeToUnsignedShort ()
void SetOutputScalarTypeToChar ()
void SetOutputScalarTypeToUnsignedChar ()
void SetSampleDimensions (int dim[3])
virtual intGetSampleDimensions ()
virtual void GetSampleDimensions (int data[3])
void SetModelBounds (double bounds[6])
void SetModelBounds (double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
virtual doubleGetModelBounds ()
virtual void GetModelBounds (double data[6])
virtual void SetCapping (int)
virtual int GetCapping ()
virtual void CappingOn ()
virtual void CappingOff ()
virtual void SetCapValue (double)
virtual double GetCapValue ()
virtual void SetComputeNormals (int)
virtual int GetComputeNormals ()
virtual void ComputeNormalsOn ()
virtual void ComputeNormalsOff ()
virtual void SetScalarArrayName (const char *)
virtual char * GetScalarArrayName ()
virtual void SetNormalArrayName (const char *)
virtual char * GetNormalArrayName ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkSampleFunctionSafeDownCast (vtkObjectBase *o)
static vtkSampleFunctionNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkSampleFunction ()
 ~vtkSampleFunction ()
virtual void ReportReferences (vtkGarbageCollector *)
void ExecuteDataWithInformation (vtkDataObject *, vtkInformation *)
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void Cap (vtkDataArray *s)

Protected Attributes

int OutputScalarType
int SampleDimensions [3]
double ModelBounds [6]
int Capping
double CapValue
vtkImplicitFunctionImplicitFunction
int ComputeNormals
char * ScalarArrayName
char * NormalArrayName

Detailed Description

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.


Member Typedef Documentation

Reimplemented from vtkImageAlgorithm.

Definition at line 47 of file vtkSampleFunction.h.


Constructor & Destructor Documentation

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 "".


Member Function Documentation

static int vtkSampleFunction::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageAlgorithm.

virtual int vtkSampleFunction::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageAlgorithm.

Reimplemented from vtkImageAlgorithm.

virtual vtkObjectBase* vtkSampleFunction::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkImageAlgorithm.

Reimplemented from vtkImageAlgorithm.

void vtkSampleFunction::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkImageAlgorithm.

Construct with ModelBounds=(-1,1,-1,1,-1,1), SampleDimensions=(50,50,50), Capping turned off, and normal generation on.

Reimplemented from vtkAlgorithm.

Specify the implicit function to use to generate data.

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.

Set what type of scalar data this source should generate.

Set what type of scalar data this source should generate.

Definition at line 65 of file vtkSampleFunction.h.

Set what type of scalar data this source should generate.

Definition at line 67 of file vtkSampleFunction.h.

Set what type of scalar data this source should generate.

Definition at line 69 of file vtkSampleFunction.h.

Set what type of scalar data this source should generate.

Definition at line 71 of file vtkSampleFunction.h.

Set what type of scalar data this source should generate.

Definition at line 73 of file vtkSampleFunction.h.

Set what type of scalar data this source should generate.

Definition at line 75 of file vtkSampleFunction.h.

Set what type of scalar data this source should generate.

Definition at line 77 of file vtkSampleFunction.h.

Set what type of scalar data this source should generate.

Definition at line 79 of file vtkSampleFunction.h.

Set what type of scalar data this source should generate.

Definition at line 81 of file vtkSampleFunction.h.

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.

Specify the dimensions of the data on which to sample.

Specify the dimensions of the data on which to sample.

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.

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]

Set the cap value.

virtual double vtkSampleFunction::GetCapValue ( ) [virtual]

Set the cap value.

virtual void vtkSampleFunction::SetComputeNormals ( int  ) [virtual]

Turn on/off the computation of normals (normals are float values).

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 ( ) [virtual]

Return the MTime also considering the implicit function.

Reimplemented from vtkObject.

virtual void vtkSampleFunction::ReportReferences ( vtkGarbageCollector ) [protected, virtual]

Reimplemented from vtkAlgorithm.

void vtkSampleFunction::ExecuteDataWithInformation ( vtkDataObject output,
vtkInformation outInfo 
) [protected, virtual]

This is a convenience method that is implemented in many subclasses instead of RequestData. It is called by RequestData.

Reimplemented from vtkImageAlgorithm.

virtual int vtkSampleFunction::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.

Reimplemented from vtkImageAlgorithm.

void vtkSampleFunction::Cap ( vtkDataArray s) [protected]

Member Data Documentation

Definition at line 168 of file vtkSampleFunction.h.

Definition at line 169 of file vtkSampleFunction.h.

Definition at line 170 of file vtkSampleFunction.h.

Definition at line 171 of file vtkSampleFunction.h.

Definition at line 172 of file vtkSampleFunction.h.

Definition at line 173 of file vtkSampleFunction.h.

Definition at line 174 of file vtkSampleFunction.h.

Definition at line 175 of file vtkSampleFunction.h.

Definition at line 176 of file vtkSampleFunction.h.


The documentation for this class was generated from the following file: