Section: Visualization Toolkit Graphics Classes
To create an instance of class vtkHyperOctreeSampleFunction, simply invoke its constructor as follows
obj = vtkHyperOctreeSampleFunction
obj
is an instance of the vtkHyperOctreeSampleFunction class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkHyperOctreeSampleFunction = obj.NewInstance ()
vtkHyperOctreeSampleFunction = obj.SafeDownCast (vtkObject o)
int = obj.GetLevels ()
- Return the maximum number of levels of the hyperoctree.
\post positive_result: result>=1
obj.SetLevels (int levels)
- Set the maximum number of levels of the hyperoctree. If
GetMinLevels()>=levels, GetMinLevels() is changed to levels-1.
\pre positive_levels: levels>=1
\post is_set: this->GetLevels()==levels
\post min_is_valid: this->GetMinLevels()<this->GetLevels()
int = obj.GetMinLevels ()
- Return the minimal number of levels of systematic subdivision.
\post positive_result: result>=0
obj.SetMinLevels (int minLevels)
- Set the minimal number of levels of systematic subdivision.
\pre positive_minLevels: minLevels>=0
\post is_set: this->GetMinLevels()==minLevels
double = obj.GetThreshold ()
- Return the threshold over which a subdivision is required.
\post positive_result: result>0
obj.SetThreshold (double threshold)
- Set the threshold over which a subdivision is required.
\pre positive_threshold: threshold>=0
\post is_set: this->GetThreshold()==threshold
int = obj.GetDimension ()
- Return the dimension of the tree (1D:binary tree(2 children), 2D:quadtree(4 children),
3D:octree (8 children))
\post valid_result: result>=1 && result<=3
obj.SetDimension (int dim)
obj.SetSize (double , double , double )
- Set the size on each axis.
obj.SetSize (double a[3])
- Set the size on each axis.
double = obj. GetSize ()
- Return the size on each axis.
obj.SetOrigin (double , double , double )
- Set the origin (position of corner (0,0,0) of the root.
obj.SetOrigin (double a[3])
- Set the origin (position of corner (0,0,0) of the root.
double = obj. GetOrigin ()
- Set the origin (position of corner (0,0,0) of the root.
Return the origin (position of corner (0,0,0) ) of the root.
double = obj.GetWidth ()
- Return the length along the x-axis.
\post positive_result: result>0
obj.SetWidth (double width)
- Set the length along the x-axis.
\pre positive_width: width>0
\post width_is_set: GetWidth()==width
double = obj.GetHeight ()
- Return the length along the y-axis.
Relevant only if GetDimension()>=2
\post positive_result: result>0
obj.SetHeight (double height)
- Set the length along the y-axis.
Relevant only if GetDimension()>=2
\pre positive_height: height>0
\post height_is_set: GetHeight()==height
double = obj.GetDepth ()
- Return the length along the z-axis.
Relevant only if GetDimension()>=3
\post positive_result: result>0
obj.SetDepth (double depth)
- Return the length along the z-axis.
Relevant only if GetDimension()>=3
\pre positive_depth: depth>0
\post depth_is_set: GetDepth()==depth
obj.SetImplicitFunction (vtkImplicitFunction )
- Specify the implicit function to use to generate data.
vtkImplicitFunction = obj.GetImplicitFunction ()
- Specify the implicit function to use to generate data.
obj.SetOutputScalarType (int )
- Set what type of scalar data this source should generate.
int = obj.GetOutputScalarType ()
- Set what type of scalar data this source should generate.
obj.SetOutputScalarTypeToDouble ()
- Set what type of scalar data this source should generate.
obj.SetOutputScalarTypeToFloat ()
- Set what type of scalar data this source should generate.
obj.SetOutputScalarTypeToLong ()
- Set what type of scalar data this source should generate.
obj.SetOutputScalarTypeToUnsignedLong ()
- Set what type of scalar data this source should generate.
obj.SetOutputScalarTypeToInt ()
- Set what type of scalar data this source should generate.
obj.SetOutputScalarTypeToUnsignedInt ()
- Set what type of scalar data this source should generate.
obj.SetOutputScalarTypeToShort ()
- Set what type of scalar data this source should generate.
obj.SetOutputScalarTypeToUnsignedShort ()
- Set what type of scalar data this source should generate.
obj.SetOutputScalarTypeToChar ()
- Set what type of scalar data this source should generate.
obj.SetOutputScalarTypeToUnsignedChar ()
- Return the MTime also considering the implicit function.
long = obj.GetMTime ()
- Return the MTime also considering the implicit function.