vtkImageActorPointPlacer Class Reference

#include <vtkImageActorPointPlacer.h>

Inheritance diagram for vtkImageActorPointPlacer:

Inheritance graph
[legend]
Collaboration diagram for vtkImageActorPointPlacer:

Collaboration graph
[legend]

List of all members.


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.

Definition at line 34 of file vtkImageActorPointPlacer.h.

typedef vtkPointPlacer Superclass
static int IsTypeOf (const char *type)
static vtkImageActorPointPlacerSafeDownCast (vtkObject *o)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)

Public Member Functions

int ValidateWorldPosition (double worldPos[3])
int UpdateInternalState ()
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 double * GetBounds ()
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]

Member Typedef Documentation

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

Definition at line 42 of file vtkImageActorPointPlacer.h.


Constructor & Destructor Documentation

vtkImageActorPointPlacer::vtkImageActorPointPlacer (  )  [protected]

vtkImageActorPointPlacer::~vtkImageActorPointPlacer (  )  [protected]


Member Function Documentation

static vtkImageActorPointPlacer* vtkImageActorPointPlacer::New (  )  [static]

Instantiate this class.

Reimplemented from vtkPointPlacer.

virtual const char* vtkImageActorPointPlacer::GetClassName (  )  [virtual]

Standard methods for instances of 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.

static vtkImageActorPointPlacer* vtkImageActorPointPlacer::SafeDownCast ( vtkObject o  )  [static]

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.

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

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.

int vtkImageActorPointPlacer::UpdateInternalState (  )  [virtual]

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.

void vtkImageActorPointPlacer::SetImageActor ( vtkImageActor  ) 

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 vtkImageActor* vtkImageActorPointPlacer::GetImageActor (  )  [virtual]

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.

virtual double* vtkImageActorPointPlacer::GetBounds (  )  [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 &  ,
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.


Member Data Documentation

Definition at line 124 of file vtkImageActorPointPlacer.h.

Definition at line 127 of file vtkImageActorPointPlacer.h.

Definition at line 131 of file vtkImageActorPointPlacer.h.

double vtkImageActorPointPlacer::Bounds[6] [protected]

Definition at line 134 of file vtkImageActorPointPlacer.h.


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

Generated on Sat Dec 27 13:28:51 2008 for VTK by  doxygen 1.5.6