Section: Visualization Toolkit Imaging Classes
To create an instance of class vtkImageStencil, simply invoke its constructor as follows
obj = vtkImageStencil
obj
is an instance of the vtkImageStencil class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkImageStencil = obj.NewInstance ()
vtkImageStencil = obj.SafeDownCast (vtkObject o)
obj.SetStencil (vtkImageStencilData stencil)
- Specify the stencil to use. The stencil can be created
from a vtkImplicitFunction or a vtkPolyData.
vtkImageStencilData = obj.GetStencil ()
- Specify the stencil to use. The stencil can be created
from a vtkImplicitFunction or a vtkPolyData.
obj.SetReverseStencil (int )
- Reverse the stencil.
obj.ReverseStencilOn ()
- Reverse the stencil.
obj.ReverseStencilOff ()
- Reverse the stencil.
int = obj.GetReverseStencil ()
- Reverse the stencil.
obj.SetBackgroundInput (vtkImageData input)
- NOTE: Not yet implemented, use SetBackgroundValue instead.
Set the second input. This image will be used for the 'outside' of the
stencil. If not set, the output voxels will be filled with
BackgroundValue instead.
vtkImageData = obj.GetBackgroundInput ()
- NOTE: Not yet implemented, use SetBackgroundValue instead.
Set the second input. This image will be used for the 'outside' of the
stencil. If not set, the output voxels will be filled with
BackgroundValue instead.
obj.SetBackgroundValue (double val)
- Set the default output value to use when the second input is not set.
double = obj.GetBackgroundValue ()
- Set the default output value to use when the second input is not set.
obj.SetBackgroundColor (double , double , double , double )
- Set the default color to use when the second input is not set.
This is like SetBackgroundValue, but for multi-component images.
obj.SetBackgroundColor (double a[4])
- Set the default color to use when the second input is not set.
This is like SetBackgroundValue, but for multi-component images.
double = obj. GetBackgroundColor ()
- Set the default color to use when the second input is not set.
This is like SetBackgroundValue, but for multi-component images.