29#ifndef vtkImageActorPointPlacer_h
30#define vtkImageActorPointPlacer_h
32#include "vtkInteractionWidgetsModule.h"
66 double worldOrient[9] );
75 double refWorldPos[2],
77 double worldOrient[9] );
92 double worldOrient[9]);
103 double worldOrient[9]);
133 vtkSetVector6Macro( Bounds,
double );
134 vtkGetVector6Macro( Bounds,
double );
157 double SavedBounds[6];
a placer that constrains a handle to a finite plane
Converts 2D display positions to world positions such that they lie on an ImageActor.
int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9])
Given and renderer and a display position in pixels, find a world position and orientation.
int UpdateWorldPosition(vtkRenderer *ren, double worldPos[3], double worldOrient[9])
Update the world position and orientation according the the current constraints of the placer.
virtual void SetWorldTolerance(double s)
Set the world tolerance.
void SetImageActor(vtkImageActor *)
Set / get the reference vtkImageActor used to place the points.
int 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 plan...
vtkImageActor * ImageActor
static vtkImageActorPointPlacer * New()
Instantiate this class.
int ValidateWorldPosition(double worldPos[3], double worldOrient[9])
This method is identical to the one above since the bounded plane point placer ignores orientation.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkBoundedPlanePointPlacer * Placer
int ValidateWorldPosition(double worldPos[3])
This method validates a world position by checking to see if the world position is valid according to...
vtkImageActorPointPlacer()
~vtkImageActorPointPlacer()
int UpdateInternalState()
A method for configuring the internal placer according to the constraints of the image actor.
draw an image in a rendered 3D scene
a simple class to control print indentation
Abstract interface to translate 2D display positions to world coordinates.
abstract specification for renderers