Section: Visualization Toolkit Volume Rendering Classes
To create an instance of class vtkVolumePicker, simply invoke its constructor as follows
obj = vtkVolumePicker
obj
is an instance of the vtkVolumePicker class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkVolumePicker = obj.NewInstance ()
vtkVolumePicker = obj.SafeDownCast (vtkObject o)
obj.SetPickCroppingPlanes (int )
- Set whether to pick the cropping planes of props that have them.
If this is set, then the pick will be done on the cropping planes
rather than on the data. The GetCroppingPlaneId() method will return
the index of the cropping plane of the volume that was picked. This
setting is only relevant to the picking of volumes.
obj.PickCroppingPlanesOn ()
- Set whether to pick the cropping planes of props that have them.
If this is set, then the pick will be done on the cropping planes
rather than on the data. The GetCroppingPlaneId() method will return
the index of the cropping plane of the volume that was picked. This
setting is only relevant to the picking of volumes.
obj.PickCroppingPlanesOff ()
- Set whether to pick the cropping planes of props that have them.
If this is set, then the pick will be done on the cropping planes
rather than on the data. The GetCroppingPlaneId() method will return
the index of the cropping plane of the volume that was picked. This
setting is only relevant to the picking of volumes.
int = obj.GetPickCroppingPlanes ()
- Set whether to pick the cropping planes of props that have them.
If this is set, then the pick will be done on the cropping planes
rather than on the data. The GetCroppingPlaneId() method will return
the index of the cropping plane of the volume that was picked. This
setting is only relevant to the picking of volumes.
int = obj.GetCroppingPlaneId ()
- Get the index of the cropping plane that the pick ray passed
through on its way to the prop. This will be set regardless
of whether PickCroppingPlanes is on. The crop planes are ordered
as follows: xmin, xmax, ymin, ymax, zmin, zmax. If the volume is
not cropped, the value will bet set to -1.