Section: Visualization Toolkit Imaging Classes
To create an instance of class vtkVoxelModeller, simply invoke its constructor as follows
obj = vtkVoxelModeller
obj is an instance of the vtkVoxelModeller class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkVoxelModeller = obj.NewInstance ()
vtkVoxelModeller = obj.SafeDownCast (vtkObject o)
double = obj.ComputeModelBounds (double origin[3], double ar[3]) - Compute the ModelBounds based on the input geometry.
obj.SetSampleDimensions (int i, int j, int k) - Set the i-j-k dimensions on which to sample the distance function.
Default is (50, 50, 50)
obj.SetSampleDimensions (int dim[3]) - Set the i-j-k dimensions on which to sample the distance function.
Default is (50, 50, 50)
int = obj. GetSampleDimensions () - Set the i-j-k dimensions on which to sample the distance function.
Default is (50, 50, 50)
obj.SetMaximumDistance (double ) - Specify distance away from surface of input geometry to sample. Smaller
values make large increases in performance. Default is 1.0.
double = obj.GetMaximumDistanceMinValue () - Specify distance away from surface of input geometry to sample. Smaller
values make large increases in performance. Default is 1.0.
double = obj.GetMaximumDistanceMaxValue () - Specify distance away from surface of input geometry to sample. Smaller
values make large increases in performance. Default is 1.0.
double = obj.GetMaximumDistance () - Specify distance away from surface of input geometry to sample. Smaller
values make large increases in performance. Default is 1.0.
obj.SetModelBounds (double bounds[6]) - Specify the position in space to perform the voxelization.
Default is (0, 0, 0, 0, 0, 0)
obj.SetModelBounds (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) - Specify the position in space to perform the voxelization.
Default is (0, 0, 0, 0, 0, 0)
double = obj. GetModelBounds () - Specify the position in space to perform the voxelization.
Default is (0, 0, 0, 0, 0, 0)
obj.SetScalarType (int ) - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToFloat () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToDouble () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToInt () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToUnsignedInt () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToLong () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToUnsignedLong () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToShort () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToUnsignedShort () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToUnsignedChar () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToChar () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetScalarTypeToBit () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
int = obj.GetScalarType () - Control the scalar type of the output image. The default is
VTK_BIT.
NOTE: Not all filters/readers/writers support the VTK_BIT
scalar type. You may want to use VTK_CHAR as an alternative.
obj.SetForegroundValue (double ) - Set the Foreground/Background values of the output. The
Foreground value is set when a voxel is occupied. The Background
value is set when a voxel is not occupied.
The default ForegroundValue is 1. The default BackgroundValue is
0.
double = obj.GetForegroundValue () - Set the Foreground/Background values of the output. The
Foreground value is set when a voxel is occupied. The Background
value is set when a voxel is not occupied.
The default ForegroundValue is 1. The default BackgroundValue is
0.
obj.SetBackgroundValue (double ) - Set the Foreground/Background values of the output. The
Foreground value is set when a voxel is occupied. The Background
value is set when a voxel is not occupied.
The default ForegroundValue is 1. The default BackgroundValue is
0.
double = obj.GetBackgroundValue () - Set the Foreground/Background values of the output. The
Foreground value is set when a voxel is occupied. The Background
value is set when a voxel is not occupied.
The default ForegroundValue is 1. The default BackgroundValue is
0.