Section: Visualization Toolkit Rendering Classes
To create an instance of class vtkImageActor, simply invoke its constructor as follows
obj = vtkImageActor
obj
is an instance of the vtkImageActor class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkImageActor = obj.NewInstance ()
vtkImageActor = obj.SafeDownCast (vtkObject o)
obj.SetInput (vtkImageData )
- Set/Get the image data input for the image actor.
vtkImageData = obj.GetInput ()
- Set/Get the image data input for the image actor.
int = obj.GetInterpolate ()
- Turn on/off linear interpolation of the image when rendering.
obj.SetInterpolate (int )
- Turn on/off linear interpolation of the image when rendering.
obj.InterpolateOn ()
- Turn on/off linear interpolation of the image when rendering.
obj.InterpolateOff ()
- Turn on/off linear interpolation of the image when rendering.
obj.SetOpacity (double )
- Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely
transparent.
double = obj.GetOpacityMinValue ()
- Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely
transparent.
double = obj.GetOpacityMaxValue ()
- Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely
transparent.
double = obj.GetOpacity ()
- Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely
transparent.
obj.SetDisplayExtent (int extent[6])
- The image extent is generally set explicitly, but if not set
it will be determined from the input image data.
obj.SetDisplayExtent (int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
- The image extent is generally set explicitly, but if not set
it will be determined from the input image data.
obj.GetDisplayExtent (int extent[6])
- The image extent is generally set explicitly, but if not set
it will be determined from the input image data.
int = obj.GetDisplayExtent ()
- Get the bounds of this image actor. Either copy the bounds
into a user provided array or return a pointer to an array.
In either case the boudns is expressed as a 6-vector
(xmin,xmax, ymin,ymax, zmin,zmax).
double = obj.GetBounds ()
- Get the bounds of this image actor. Either copy the bounds
into a user provided array or return a pointer to an array.
In either case the boudns is expressed as a 6-vector
(xmin,xmax, ymin,ymax, zmin,zmax).
obj.GetBounds (double bounds[6])
- Get the bounds of this image actor. Either copy the bounds
into a user provided array or return a pointer to an array.
In either case the boudns is expressed as a 6-vector
(xmin,xmax, ymin,ymax, zmin,zmax).
obj.GetDisplayBounds (double bounds[6])
- Get the bounds of the data that is displayed by this image
actor. If the transformation matrix for this actor is the
identity matrix, this will return the same value as
GetBounds.
int = obj.GetSliceNumber ()
- Return the slice number (& min/max slice number) computed from the display
extent.
int = obj.GetSliceNumberMax ()
- Return the slice number (& min/max slice number) computed from the display
extent.
int = obj.GetSliceNumberMin ()
- Return the slice number (& min/max slice number) computed from the display
extent.
obj.SetZSlice (int z)
- Set/Get the current slice number. The axis Z in ZSlice does not
necessarily have any relation to the z axis of the data on disk.
It is simply the axis orthogonal to the x,y, display plane.
GetWholeZMax and Min are convenience methods for obtaining
the number of slices that can be displayed. Again the number
of slices is in reference to the display z axis, which is not
necessarily the z axis on disk. (due to reformatting etc)
int = obj.GetZSlice ()
- Set/Get the current slice number. The axis Z in ZSlice does not
necessarily have any relation to the z axis of the data on disk.
It is simply the axis orthogonal to the x,y, display plane.
GetWholeZMax and Min are convenience methods for obtaining
the number of slices that can be displayed. Again the number
of slices is in reference to the display z axis, which is not
necessarily the z axis on disk. (due to reformatting etc)
int = obj.GetWholeZMin ()
- Set/Get the current slice number. The axis Z in ZSlice does not
necessarily have any relation to the z axis of the data on disk.
It is simply the axis orthogonal to the x,y, display plane.
GetWholeZMax and Min are convenience methods for obtaining
the number of slices that can be displayed. Again the number
of slices is in reference to the display z axis, which is not
necessarily the z axis on disk. (due to reformatting etc)
int = obj.GetWholeZMax ()
- Set/Get the current slice number. The axis Z in ZSlice does not
necessarily have any relation to the z axis of the data on disk.
It is simply the axis orthogonal to the x,y, display plane.
GetWholeZMax and Min are convenience methods for obtaining
the number of slices that can be displayed. Again the number
of slices is in reference to the display z axis, which is not
necessarily the z axis on disk. (due to reformatting etc)