sample an implicit function over an hyperoctree
More...
#include <vtkHyperOctreeSampleFunction.h>
Inherits vtkHyperOctreeAlgorithm.
sample an implicit function over an hyperoctree
vtkHyperOctreeSampleFunction is a source object that evaluates an implicit function to drive the subdivision process. The user can specify the threshold over which a subdivision occurs, the maximum and minimum level of subdivisions and the dimension of the hyperoctree.
- See Also
- vtkSampleFunction
- Tests:
- vtkHyperOctreeSampleFunction (Tests)
Definition at line 39 of file vtkHyperOctreeSampleFunction.h.
vtkHyperOctreeSampleFunction::vtkHyperOctreeSampleFunction |
( |
| ) |
|
|
protected |
Default constructor. Set dimension to 3, width, height and depth to 1, levels to 5, minLevels to 1, implicitFunction to 0, OutputScalarType to VTK_DOUBLE, Threshold is 0.1.
vtkHyperOctreeSampleFunction::~vtkHyperOctreeSampleFunction |
( |
| ) |
|
|
protected |
Default constructor. Set dimension to 3, width, height and depth to 1, levels to 5, minLevels to 1, implicitFunction to 0, OutputScalarType to VTK_DOUBLE, Threshold is 0.1.
static int vtkHyperOctreeSampleFunction::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkHyperOctreeSampleFunction::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkHyperOctreeSampleFunction::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkHyperOctreeSampleFunction::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
int vtkHyperOctreeSampleFunction::GetLevels |
( |
| ) |
|
Return the maximum number of levels of the hyperoctree.
- Postcondition
- positive_result: result>=1
void vtkHyperOctreeSampleFunction::SetLevels |
( |
int |
levels | ) |
|
int vtkHyperOctreeSampleFunction::GetMinLevels |
( |
| ) |
|
Return the minimal number of levels of systematic subdivision.
- Postcondition
- positive_result: result>=0
void vtkHyperOctreeSampleFunction::SetMinLevels |
( |
int |
minLevels | ) |
|
Set the minimal number of levels of systematic subdivision.
- Precondition
- positive_minLevels: minLevels>=0
- Postcondition
- is_set: this->GetMinLevels()==minLevels
double vtkHyperOctreeSampleFunction::GetThreshold |
( |
| ) |
|
Return the threshold over which a subdivision is required.
- Postcondition
- positive_result: result>0
void vtkHyperOctreeSampleFunction::SetThreshold |
( |
double |
threshold | ) |
|
Set the threshold over which a subdivision is required.
- Precondition
- positive_threshold: threshold>=0
- Postcondition
- is_set: this->GetThreshold()==threshold
int vtkHyperOctreeSampleFunction::GetDimension |
( |
| ) |
|
Return the dimension of the tree (1D:binary tree(2 children), 2D:quadtree(4 children), 3D:octree (8 children))
- Postcondition
- valid_result: result>=1 && result<=3
void vtkHyperOctreeSampleFunction::SetDimension |
( |
int |
dim | ) |
|
virtual void vtkHyperOctreeSampleFunction::SetSize |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
Set the size on each axis.
virtual void vtkHyperOctreeSampleFunction::SetSize |
( |
double |
[3] | ) |
|
|
virtual |
Set the size on each axis.
virtual double* vtkHyperOctreeSampleFunction::GetSize |
( |
| ) |
|
|
virtual |
Return the size on each axis.
virtual void vtkHyperOctreeSampleFunction::GetSize |
( |
double & |
, |
|
|
double & |
, |
|
|
double & |
|
|
) |
| |
|
virtual |
Return the size on each axis.
virtual void vtkHyperOctreeSampleFunction::GetSize |
( |
double |
[3] | ) |
|
|
virtual |
Return the size on each axis.
virtual void vtkHyperOctreeSampleFunction::SetOrigin |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
Set the origin (position of corner (0,0,0) of the root.
virtual void vtkHyperOctreeSampleFunction::SetOrigin |
( |
double |
[3] | ) |
|
|
virtual |
Set the origin (position of corner (0,0,0) of the root.
virtual double* vtkHyperOctreeSampleFunction::GetOrigin |
( |
| ) |
|
|
virtual |
Set the origin (position of corner (0,0,0) of the root.
virtual void vtkHyperOctreeSampleFunction::GetOrigin |
( |
double & |
, |
|
|
double & |
, |
|
|
double & |
|
|
) |
| |
|
virtual |
Set the origin (position of corner (0,0,0) of the root.
virtual void vtkHyperOctreeSampleFunction::GetOrigin |
( |
double |
[3] | ) |
|
|
virtual |
Set the origin (position of corner (0,0,0) of the root.
double vtkHyperOctreeSampleFunction::GetWidth |
( |
| ) |
|
Return the length along the x-axis.
- Postcondition
- positive_result: result>0
void vtkHyperOctreeSampleFunction::SetWidth |
( |
double |
width | ) |
|
Set the length along the x-axis.
- Precondition
- positive_width: width>0
- Postcondition
- width_is_set: GetWidth()==width
double vtkHyperOctreeSampleFunction::GetHeight |
( |
| ) |
|
Return the length along the y-axis. Relevant only if GetDimension()>=2
- Postcondition
- positive_result: result>0
void vtkHyperOctreeSampleFunction::SetHeight |
( |
double |
height | ) |
|
Set the length along the y-axis. Relevant only if GetDimension()>=2
- Precondition
- positive_height: height>0
- Postcondition
- height_is_set: GetHeight()==height
double vtkHyperOctreeSampleFunction::GetDepth |
( |
| ) |
|
Return the length along the z-axis. Relevant only if GetDimension()>=3
- Postcondition
- positive_result: result>0
void vtkHyperOctreeSampleFunction::SetDepth |
( |
double |
depth | ) |
|
Return the length along the z-axis. Relevant only if GetDimension()>=3
- Precondition
- positive_depth: depth>0
- Postcondition
- depth_is_set: GetDepth()==depth
virtual void vtkHyperOctreeSampleFunction::SetImplicitFunction |
( |
vtkImplicitFunction * |
| ) |
|
|
virtual |
Specify the implicit function to use to generate data.
virtual vtkImplicitFunction* vtkHyperOctreeSampleFunction::GetImplicitFunction |
( |
| ) |
|
|
virtual |
Specify the implicit function to use to generate data.
virtual void vtkHyperOctreeSampleFunction::SetOutputScalarType |
( |
int |
| ) |
|
|
virtual |
Set what type of scalar data this source should generate.
virtual int vtkHyperOctreeSampleFunction::GetOutputScalarType |
( |
| ) |
|
|
virtual |
Set what type of scalar data this source should generate.
void vtkHyperOctreeSampleFunction::SetOutputScalarTypeToDouble |
( |
| ) |
|
|
inline |
void vtkHyperOctreeSampleFunction::SetOutputScalarTypeToFloat |
( |
| ) |
|
|
inline |
void vtkHyperOctreeSampleFunction::SetOutputScalarTypeToLong |
( |
| ) |
|
|
inline |
void vtkHyperOctreeSampleFunction::SetOutputScalarTypeToUnsignedLong |
( |
| ) |
|
|
inline |
void vtkHyperOctreeSampleFunction::SetOutputScalarTypeToInt |
( |
| ) |
|
|
inline |
void vtkHyperOctreeSampleFunction::SetOutputScalarTypeToUnsignedInt |
( |
| ) |
|
|
inline |
void vtkHyperOctreeSampleFunction::SetOutputScalarTypeToShort |
( |
| ) |
|
|
inline |
void vtkHyperOctreeSampleFunction::SetOutputScalarTypeToUnsignedShort |
( |
| ) |
|
|
inline |
void vtkHyperOctreeSampleFunction::SetOutputScalarTypeToChar |
( |
| ) |
|
|
inline |
void vtkHyperOctreeSampleFunction::SetOutputScalarTypeToUnsignedChar |
( |
| ) |
|
|
inline |
unsigned long vtkHyperOctreeSampleFunction::GetMTime |
( |
| ) |
|
Return the MTime also considering the implicit function.
int vtkHyperOctreeSampleFunction::RequestInformation |
( |
vtkInformation * |
vtkNotUsedrequest, |
|
|
vtkInformationVector ** |
vtkNotUsedinputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protected |
virtual int vtkHyperOctreeSampleFunction::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
void vtkHyperOctreeSampleFunction::Subdivide |
( |
vtkHyperOctreeCursor * |
cursor, |
|
|
int |
level, |
|
|
vtkHyperOctree * |
output |
|
) |
| |
|
protected |
int vtkHyperOctreeSampleFunction::Dimension |
|
protected |
double vtkHyperOctreeSampleFunction::Size[3] |
|
protected |
double vtkHyperOctreeSampleFunction::Origin[3] |
|
protected |
int vtkHyperOctreeSampleFunction::Levels |
|
protected |
int vtkHyperOctreeSampleFunction::MinLevels |
|
protected |
int vtkHyperOctreeSampleFunction::OutputScalarType |
|
protected |
vtkImplicitFunction* vtkHyperOctreeSampleFunction::ImplicitFunction |
|
protected |
double vtkHyperOctreeSampleFunction::Threshold |
|
protected |
The documentation for this class was generated from the following file: