Section: Visualization Toolkit Widget Classes
To create an instance of class vtkBoundedPlanePointPlacer, simply invoke its constructor as follows
obj = vtkBoundedPlanePointPlacer
obj
is an instance of the vtkBoundedPlanePointPlacer class.
string = obj.GetClassName ()
- Standard methods for instances of this class.
int = obj.IsA (string name)
- Standard methods for instances of this class.
vtkBoundedPlanePointPlacer = obj.NewInstance ()
- Standard methods for instances of this class.
vtkBoundedPlanePointPlacer = obj.SafeDownCast (vtkObject o)
- Standard methods for instances of this class.
obj.SetProjectionNormal (int )
- Set the projection normal to lie along the x, y, or z axis,
or to be oblique. If it is oblique, then the plane is
defined in the ObliquePlane ivar.
int = obj.GetProjectionNormalMinValue ()
- Set the projection normal to lie along the x, y, or z axis,
or to be oblique. If it is oblique, then the plane is
defined in the ObliquePlane ivar.
int = obj.GetProjectionNormalMaxValue ()
- Set the projection normal to lie along the x, y, or z axis,
or to be oblique. If it is oblique, then the plane is
defined in the ObliquePlane ivar.
int = obj.GetProjectionNormal ()
- Set the projection normal to lie along the x, y, or z axis,
or to be oblique. If it is oblique, then the plane is
defined in the ObliquePlane ivar.
obj.SetProjectionNormalToXAxis ()
- Set the projection normal to lie along the x, y, or z axis,
or to be oblique. If it is oblique, then the plane is
defined in the ObliquePlane ivar.
obj.SetProjectionNormalToYAxis ()
- Set the projection normal to lie along the x, y, or z axis,
or to be oblique. If it is oblique, then the plane is
defined in the ObliquePlane ivar.
obj.SetProjectionNormalToZAxis ()
- Set the projection normal to lie along the x, y, or z axis,
or to be oblique. If it is oblique, then the plane is
defined in the ObliquePlane ivar.
obj.SetProjectionNormalToOblique ()
- If the ProjectionNormal is set to Oblique, then this is the
oblique plane used to constrain the handle position.
obj.SetObliquePlane (vtkPlane )
- If the ProjectionNormal is set to Oblique, then this is the
oblique plane used to constrain the handle position.
obj.SetProjectionPosition (double position)
- The position of the bounding plane from the origin along the
normal. The origin and normal are defined in the oblique plane
when the ProjectionNormal is oblique. For the X, Y, and Z
axes projection normals, the normal is the axis direction, and
the origin is (0,0,0).
double = obj.GetProjectionPosition ()
- The position of the bounding plane from the origin along the
normal. The origin and normal are defined in the oblique plane
when the ProjectionNormal is oblique. For the X, Y, and Z
axes projection normals, the normal is the axis direction, and
the origin is (0,0,0).
obj.AddBoundingPlane (vtkPlane plane)
- A collection of plane equations used to bound the position of the point.
This is in addition to confining the point to a plane - these contraints
are meant to, for example, keep a point within the extent of an image.
Using a set of plane equations allows for more complex bounds (such as
bounding a point to an oblique reliced image that has hexagonal shape)
than a simple extent.
obj.RemoveBoundingPlane (vtkPlane plane)
- A collection of plane equations used to bound the position of the point.
This is in addition to confining the point to a plane - these contraints
are meant to, for example, keep a point within the extent of an image.
Using a set of plane equations allows for more complex bounds (such as
bounding a point to an oblique reliced image that has hexagonal shape)
than a simple extent.
obj.RemoveAllBoundingPlanes ()
- A collection of plane equations used to bound the position of the point.
This is in addition to confining the point to a plane - these contraints
are meant to, for example, keep a point within the extent of an image.
Using a set of plane equations allows for more complex bounds (such as
bounding a point to an oblique reliced image that has hexagonal shape)
than a simple extent.
obj.SetBoundingPlanes (vtkPlaneCollection )
- A collection of plane equations used to bound the position of the point.
This is in addition to confining the point to a plane - these contraints
are meant to, for example, keep a point within the extent of an image.
Using a set of plane equations allows for more complex bounds (such as
bounding a point to an oblique reliced image that has hexagonal shape)
than a simple extent.
vtkPlaneCollection = obj.GetBoundingPlanes ()
- A collection of plane equations used to bound the position of the point.
This is in addition to confining the point to a plane - these contraints
are meant to, for example, keep a point within the extent of an image.
Using a set of plane equations allows for more complex bounds (such as
bounding a point to an oblique reliced image that has hexagonal shape)
than a simple extent.
obj.SetBoundingPlanes (vtkPlanes planes)
- A collection of plane equations used to bound the position of the point.
This is in addition to confining the point to a plane - these contraints
are meant to, for example, keep a point within the extent of an image.
Using a set of plane equations allows for more complex bounds (such as
bounding a point to an oblique reliced image that has hexagonal shape)
than a simple extent.
int = obj.ComputeWorldPosition (vtkRenderer ren, double displayPos[2], double worldPos[3], double worldOrient[9])
- Given a renderer and a display position, compute the
world position and world orientation for this point.
A plane is defined by a combination of the
ProjectionNormal, ProjectionOrigin, and ObliquePlane
ivars. The display position is projected onto this
plane to determine a world position, and the
orientation is set to the normal of the plane. If
the point cannot project onto the plane or if it
falls outside the bounds imposed by the
BoundingPlanes, then 0 is returned, otherwise 1 is
returned to indicate a valid return position and
orientation.
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.
int = obj.ValidateWorldPosition (double worldPos[3])
- Give a world position check if it is valid - does
it lie on the plane and within the bounds? Returns
1 if it is valid, 0 otherwise.
int = obj.ValidateWorldPosition (double worldPos[3], double worldOrient[9])
int = obj.UpdateWorldPosition (vtkRenderer ren, double worldPos[3], double worldOrient[9])
- If the constraints on this placer are changed, then
this method will be called by the representation on
each of its points. For this placer, the world
position will be converted to a display position, then
ComputeWorldPosition will be used to update the
point.