Section: Visualization Toolkit Widget Classes
To create an instance of class vtkPointPlacer, simply invoke its constructor as follows
obj = vtkPointPlacer
obj
is an instance of the vtkPointPlacer class.
string = obj.GetClassName ()
- Standard methods for instances of this class.
int = obj.IsA (string name)
- Standard methods for instances of this class.
vtkPointPlacer = obj.NewInstance ()
- Standard methods for instances of this class.
vtkPointPlacer = obj.SafeDownCast (vtkObject o)
- Standard methods for instances of this class.
int = obj.ComputeWorldPosition (vtkRenderer ren, double displayPos[2], double worldPos[3], double worldOrient[9])
- Given a renderer and a display position in pixel coordinates,
compute the world position and orientation where this point
will be placed. This method is typically used by the
representation to place the point initially. A return value of 1
indicates that constraints of the placer are met.
int = obj.ComputeWorldPosition (vtkRenderer ren, double displayPos[2], double refWorldPos[3], double worldPos[3], double worldOrient[9])
- Given a renderer, a display position, and a reference world
position, compute the new world position and orientation
of this point. This method is typically used by the
representation to move the point. A return value of 1 indicates that
constraints of the placer are met.
int = obj.ValidateWorldPosition (double worldPos[3])
- Given a world position check the validity of this
position according to the constraints of the placer.
int = obj.ValidateDisplayPosition (vtkRenderer , double displayPos[2])
- Given a display position, check the validity of this position.
int = obj.ValidateWorldPosition (double worldPos[3], double worldOrient[9])
- Given a world position and a world orientation,
validate it according to the constraints of the placer.
int = obj.UpdateWorldPosition (vtkRenderer ren, double worldPos[3], double worldOrient[9])
- Given a current renderer, world position and orientation,
update them according to the constraints of the placer.
This method is typically used when UpdateContour is called
on the representation, which must be called after changes
are made to the constraints in the placer. A return
value of 1 indicates that the point has been updated. A
return value of 0 indicates that the point could not
be updated and was left alone. By default this is a no-op -
leaving the point as is.
int = obj.UpdateInternalState ()
- Set/get the tolerance used when performing computations
in display coordinates.
obj.SetPixelTolerance (int )
- Set/get the tolerance used when performing computations
in display coordinates.
int = obj.GetPixelToleranceMinValue ()
- Set/get the tolerance used when performing computations
in display coordinates.
int = obj.GetPixelToleranceMaxValue ()
- Set/get the tolerance used when performing computations
in display coordinates.
int = obj.GetPixelTolerance ()
- Set/get the tolerance used when performing computations
in display coordinates.
obj.SetWorldTolerance (double )
- Set/get the tolerance used when performing computations
in world coordinates.
double = obj.GetWorldToleranceMinValue ()
- Set/get the tolerance used when performing computations
in world coordinates.
double = obj.GetWorldToleranceMaxValue ()
- Set/get the tolerance used when performing computations
in world coordinates.
double = obj.GetWorldTolerance ()
- Set/get the tolerance used when performing computations
in world coordinates.