VTK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkImageActorPointPlacer Class Reference

Converts 2D display positions to world positions such that they lie on an ImageActor. More...

#include <vtkImageActorPointPlacer.h>

Inheritance diagram for vtkImageActorPointPlacer:
Inheritance graph
[legend]
Collaboration diagram for vtkImageActorPointPlacer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int ValidateWorldPosition (double worldPos[3])
int UpdateInternalState ()
virtual void SetWorldTolerance (double s)
int ComputeWorldPosition (vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9])
int ComputeWorldPosition (vtkRenderer *ren, double displayPos[2], double refWorldPos[2], double worldPos[3], double worldOrient[9])
int ValidateWorldPosition (double worldPos[3], double worldOrient[9])
int UpdateWorldPosition (vtkRenderer *ren, double worldPos[3], double worldOrient[9])
void SetImageActor (vtkImageActor *)
virtual vtkImageActorGetImageActor ()
virtual void SetBounds (double, double, double, double, double, double)
virtual void SetBounds (double[6])
virtual doubleGetBounds ()
virtual void GetBounds (double &, double &, double &, double &, double &, double &)
virtual void GetBounds (double[6])

Static Public Member Functions

static vtkImageActorPointPlacerNew ()

Protected Member Functions

 vtkImageActorPointPlacer ()
 ~vtkImageActorPointPlacer ()

Protected Attributes

vtkImageActorImageActor
vtkBoundedPlanePointPlacerPlacer
double SavedBounds [6]
double Bounds [6]
typedef vtkPointPlacer Superclass
static int IsTypeOf (const char *type)
static vtkImageActorPointPlacerSafeDownCast (vtkObjectBase *o)
virtual int IsA (const char *type)
vtkImageActorPointPlacerNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkObjectBaseNewInstanceInternal () const

Detailed Description

Converts 2D display positions to world positions such that they lie on an ImageActor.

This PointPlacer is used to constrain the placement of points on the supplied image actor. Additionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.

Tests:
vtkImageActorPointPlacer (Tests)

Definition at line 38 of file vtkImageActorPointPlacer.h.


Member Typedef Documentation

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

Definition at line 46 of file vtkImageActorPointPlacer.h.


Constructor & Destructor Documentation


Member Function Documentation

Instantiate this class.

Reimplemented from vtkPointPlacer.

static int vtkImageActorPointPlacer::IsTypeOf ( const char *  type) [static]

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

virtual int vtkImageActorPointPlacer::IsA ( const char *  type) [virtual]

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

virtual vtkObjectBase* vtkImageActorPointPlacer::NewInstanceInternal ( ) const [protected, virtual]

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

void vtkImageActorPointPlacer::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

int vtkImageActorPointPlacer::ComputeWorldPosition ( vtkRenderer ren,
double  displayPos[2],
double  worldPos[3],
double  worldOrient[9] 
) [virtual]

Given and renderer and a display position in pixels, find a world position and orientation. In this class an internal vtkBoundedPlanePointPlacer is used to compute the world position and orientation. The internal placer is set to use the plane of the image actor and the bounds of the image actor as the constraints for placing points.

Reimplemented from vtkPointPlacer.

int vtkImageActorPointPlacer::ComputeWorldPosition ( vtkRenderer ren,
double  displayPos[2],
double  refWorldPos[2],
double  worldPos[3],
double  worldOrient[9] 
)

This method is identical to the one above since the reference position is ignored by the bounded plane point placer.

This method validates a world position by checking to see if the world position is valid according to the constraints of the internal placer (essentially - is this world position on the image?)

Reimplemented from vtkPointPlacer.

int vtkImageActorPointPlacer::ValidateWorldPosition ( double  worldPos[3],
double  worldOrient[9] 
) [virtual]

This method is identical to the one above since the bounded plane point placer ignores orientation

Reimplemented from vtkPointPlacer.

int vtkImageActorPointPlacer::UpdateWorldPosition ( vtkRenderer ren,
double  worldPos[3],
double  worldOrient[9] 
) [virtual]

Update the world position and orientation according the the current constraints of the placer. Will be called by the representation when it notices that this placer has been modified.

Reimplemented from vtkPointPlacer.

A method for configuring the internal placer according to the constraints of the image actor. Called by the representation to give the placer a chance to update itself, which may cause the MTime to change, which would then cause the representation to update all of its points

Reimplemented from vtkPointPlacer.

Set / get the reference vtkImageActor used to place the points. An image actor must be set for this placer to work. An internal bounded plane point placer is created and set to match the bounds of the displayed image.

Set / get the reference vtkImageActor used to place the points. An image actor must be set for this placer to work. An internal bounded plane point placer is created and set to match the bounds of the displayed image.

virtual void vtkImageActorPointPlacer::SetBounds ( double  ,
double  ,
double  ,
double  ,
double  ,
double   
) [virtual]

Optionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.

virtual void vtkImageActorPointPlacer::SetBounds ( double  [6]) [virtual]

Optionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.

Optionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.

virtual void vtkImageActorPointPlacer::GetBounds ( double ,
double ,
double ,
double ,
double ,
double  
) [virtual]

Optionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.

virtual void vtkImageActorPointPlacer::GetBounds ( double  [6]) [virtual]

Optionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.

virtual void vtkImageActorPointPlacer::SetWorldTolerance ( double  s) [virtual]

Set the world tolerance. This propagates it to the internal BoundedPlanePointPlacer.

Reimplemented from vtkPointPlacer.


Member Data Documentation

Definition at line 132 of file vtkImageActorPointPlacer.h.

Definition at line 135 of file vtkImageActorPointPlacer.h.

Definition at line 139 of file vtkImageActorPointPlacer.h.

Definition at line 142 of file vtkImageActorPointPlacer.h.


The documentation for this class was generated from the following file: