 |
VTK
9.0.1
|
Go to the documentation of this file.
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);
195 virtual void Translate(
const double* v);
203 vtkGetMacro(TranslationAxis,
int);
204 vtkSetClampMacro(TranslationAxis,
int, -1, 2);
vtkTypeBool ActiveRepresentation
Abstract interface to translate 2D display positions to world coordinates.
record modification and/or execution time
vtkHandleRepresentation()
abstract class for representing widget handles
virtual double * GetDisplayPosition()
vtkMTimeType GetMTime() override
Overload the superclasses' GetMTime() because the internal vtkCoordinates are used to keep the state ...
vtkTimeStamp WorldPositionTime
void SetYTranslationAxisOn()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_SIZEHINT(...)
vtkCoordinate * DisplayPosition
a simple class to control print indentation
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
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 GetTranslationVector(const double *p1, const double *p2, double *v) const
Gets the translation vector.
void SetZTranslationAxisOn()
virtual void GetDisplayPosition(double pos[3])
bool IsTranslationConstrained()
Returns true if ContrainedAxis.
abstract superclass for all actors, volumes and annotations
void SetXTranslationAxisOn()
Toggles constraint translation axis on/off.
virtual void DeepCopy(vtkProp *prop)
abstract specification for renderers
virtual void SetDisplayPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
vtkCoordinate * WorldPosition
~vtkHandleRepresentation() override
vtkTimeStamp DisplayPositionTime
void SetRenderer(vtkRenderer *ren) override
Subclasses of vtkWidgetRepresentation must implement these methods.
vtkPointPlacer * PointPlacer
void ShallowCopy(vtkProp *prop) override
Methods to make this class properly act like a vtkWidgetRepresentation.
virtual void SetPointPlacer(vtkPointPlacer *)
Set/Get the point placer.
vtkTypeUInt32 vtkMTimeType
void SetTranslationAxisOff()