Section: Visualization Toolkit Widget Classes
To create an instance of class vtkClosedSurfacePointPlacer, simply invoke its constructor as follows
obj = vtkClosedSurfacePointPlacer
obj
is an instance of the vtkClosedSurfacePointPlacer class.
string = obj.GetClassName ()
- Standard methods for instances of this class.
int = obj.IsA (string name)
- Standard methods for instances of this class.
vtkClosedSurfacePointPlacer = obj.NewInstance ()
- Standard methods for instances of this class.
vtkClosedSurfacePointPlacer = obj.SafeDownCast (vtkObject o)
- Standard methods for instances of this class.
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[2], double worldPos[3], double worldOrient[9])
- Given a renderer, a display position and a reference position, "worldPos"
is calculated as :
Consider the line "L" that passes through the supplied "displayPos" and
is parallel to the direction of projection of the camera. Clip this line
segment with the parallelopiped, let's call it "L_segment". The computed
world position, "worldPos" will be the point on "L_segment" that is
closest to refWorldPos.
NOTE: Note that a set of bounding planes must be supplied. The Oblique
plane, if supplied is ignored.
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])
obj.SetMinimumDistance (double )
double = obj.GetMinimumDistanceMinValue ()
double = obj.GetMinimumDistanceMaxValue ()
double = obj.GetMinimumDistance ()