Public Member Functions | Static Public Member Functions | Protected Member Functions

vtkKWEVoxelAlignedImageActorPointPlacer Class Reference

point placer that forces the placement of points to the nearest voxel center More...

#include <vtkKWEVoxelAlignedImageActorPointPlacer.h>

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

List of all members.

Public Member Functions

int ValidateWorldPosition (double worldPos[3])

 vtkTypeRevisionMacro (vtkKWEVoxelAlignedImageActorPointPlacer, vtkImageActorPointPlacer)
void PrintSelf (ostream &os, vtkIndent indent)

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])

Static Public Member Functions

static
vtkKWEVoxelAlignedImageActorPointPlacer
New ()

Protected Member Functions

 vtkKWEVoxelAlignedImageActorPointPlacer ()
 ~vtkKWEVoxelAlignedImageActorPointPlacer ()
int InternalValidateWorldPosition (double worldPos[3])

Detailed Description

point placer that forces the placement of points to the nearest voxel center

vtkKWEVoxelAlignedImageActorPointPlacer is a point placer that works on image actors and automatically forces the placement of the point to the nearest voxel center. This is useful when using voxelized editing widgets and you'd like to see the shape be placed exactly over a voxel rather than in between two voxels.

Definition at line 37 of file vtkKWEVoxelAlignedImageActorPointPlacer.h.


Constructor & Destructor Documentation

vtkKWEVoxelAlignedImageActorPointPlacer::vtkKWEVoxelAlignedImageActorPointPlacer (  )  [protected]
vtkKWEVoxelAlignedImageActorPointPlacer::~vtkKWEVoxelAlignedImageActorPointPlacer (  )  [protected]

Member Function Documentation

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

Instantiate this class.

Reimplemented from vtkImageActorPointPlacer.

vtkKWEVoxelAlignedImageActorPointPlacer::vtkTypeRevisionMacro ( vtkKWEVoxelAlignedImageActorPointPlacer  ,
vtkImageActorPointPlacer   
)

Standard methods for instances of this class.

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

Standard methods for instances of this class.

Reimplemented from vtkImageActorPointPlacer.

int vtkKWEVoxelAlignedImageActorPointPlacer::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 vtkImageActorPointPlacer.

int vtkKWEVoxelAlignedImageActorPointPlacer::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.

Reimplemented from vtkImageActorPointPlacer.

int vtkKWEVoxelAlignedImageActorPointPlacer::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 vtkImageActorPointPlacer.

int vtkKWEVoxelAlignedImageActorPointPlacer::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 vtkImageActorPointPlacer.

int vtkKWEVoxelAlignedImageActorPointPlacer::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 vtkImageActorPointPlacer.

int vtkKWEVoxelAlignedImageActorPointPlacer::InternalValidateWorldPosition ( double  worldPos[3]  )  [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines