26#ifndef vtkImageActorPointPlacer_h
27#define vtkImageActorPointPlacer_h
29#include "vtkInteractionWidgetsModule.h"
61 vtkRenderer* ren,
double displayPos[2],
double worldPos[3],
double worldOrient[9])
override;
69 double worldPos[3],
double worldOrient[9])
override;
121 vtkSetVector6Macro(Bounds,
double);
122 vtkGetVector6Macro(Bounds,
double);
144 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 UpdateWorldPosition(vtkRenderer *ren, double worldPos[3], double worldOrient[9]) override
Update the world position and orientation according the the current constraints of the placer.
int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9]) override
Given and renderer and a display position in pixels, find a world position and orientation.
void SetImageActor(vtkImageActor *)
Set / get the reference vtkImageActor used to place the points.
vtkImageActor * ImageActor
static vtkImageActorPointPlacer * New()
Instantiate this class.
int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double refWorldPos[2], double worldPos[3], double worldOrient[9]) override
This method is identical to the one above since the reference position is ignored by the bounded plan...
void SetWorldTolerance(double tol) override
Set the world tolerance.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
int ValidateWorldPosition(double worldPos[3], double worldOrient[9]) override
This method is identical to the one above since the bounded plane point placer ignores orientation.
int ValidateWorldPosition(double worldPos[3]) override
This method validates a world position by checking to see if the world position is valid according to...
vtkBoundedPlanePointPlacer * Placer
int UpdateInternalState() override
A method for configuring the internal placer according to the constraints of the image actor.
vtkImageActorPointPlacer()
~vtkImageActorPointPlacer() override
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