45#ifndef vtkHandleRepresentation_h
46#define vtkHandleRepresentation_h
48#include "vtkInteractionWidgetsModule.h"
78 virtual
void SetWorldPosition(
double pos[3]);
79 virtual
void GetWorldPosition(
double pos[3]);
89 vtkSetClampMacro(Tolerance,
int, 1, 100);
90 vtkGetMacro(Tolerance,
int);
127 vtkSetClampMacro(InteractionState,
int, Outside, Scaling);
188 virtual void Translate(
const double* p1,
const double* p2);
203 vtkGetMacro(TranslationAxis,
int);
204 vtkSetClampMacro(TranslationAxis,
int, -1, 2);
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
abstract class for representing widget handles
virtual void SetPointPlacer(vtkPointPlacer *)
Set/Get the point placer.
vtkHandleRepresentation()
void SetZTranslationAxisOn()
Toggles constraint translation axis on/off.
void SetYTranslationAxisOn()
Toggles constraint translation axis on/off.
~vtkHandleRepresentation() override
vtkTimeStamp WorldPositionTime
void SetXTranslationAxisOn()
Toggles constraint translation axis on/off.
vtkTypeBool ActiveRepresentation
virtual double * GetDisplayPosition()
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
void SetTranslationAxisOff()
Toggles constraint translation axis on/off.
vtkPointPlacer * PointPlacer
virtual void DeepCopy(vtkProp *prop)
Methods to make this class properly act like a vtkWidgetRepresentation.
virtual void SetDisplayPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
vtkMTimeType GetMTime() override
Overload the superclasses' GetMTime() because the internal vtkCoordinates are used to keep the state ...
vtkTimeStamp DisplayPositionTime
virtual void GetDisplayPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
vtkCoordinate * DisplayPosition
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
virtual void Translate(const double *v)
Translates world position by vector v projected on the constraint axis if any.
void ShallowCopy(vtkProp *prop) override
Methods to make this class properly act like a vtkWidgetRepresentation.
virtual int CheckConstraint(vtkRenderer *renderer, double pos[2])
Method has to be overridden in the subclasses which has constraints on placing the handle (Ex.
virtual void Translate(const double *p1, const double *p2)
Translates world position by vector p1p2 projected on the constraint axis if any.
virtual void GetTranslationVector(const double *p1, const double *p2, double *v) const
Gets the translation vector.
vtkCoordinate * WorldPosition
void SetRenderer(vtkRenderer *ren) override
Methods to make this class properly act like a vtkWidgetRepresentation.
bool IsTranslationConstrained()
Returns true if ContrainedAxis.
a simple class to control print indentation
Abstract interface to translate 2D display positions to world coordinates.
abstract superclass for all actors, volumes and annotations
abstract specification for renderers
record modification and/or execution time
vtkTypeUInt32 vtkMTimeType
#define VTK_SIZEHINT(...)