27 #ifndef vtkDistanceRepresentation_h
28 #define vtkDistanceRepresentation_h
30 #include "vtkInteractionWidgetsModule.h"
50 virtual double GetDistance() = 0;
58 virtual void GetPoint1WorldPosition(
double pos[3]) = 0;
59 virtual void GetPoint2WorldPosition(
double pos[3]) = 0;
60 virtual double* GetPoint1WorldPosition()
VTK_SIZEHINT(3) = 0;
61 virtual
double* GetPoint2WorldPosition()
VTK_SIZEHINT(3) = 0;
62 virtual
void SetPoint1DisplayPosition(
double pos[3]) = 0;
63 virtual
void SetPoint2DisplayPosition(
double pos[3]) = 0;
64 virtual
void GetPoint1DisplayPosition(
double pos[3]) = 0;
65 virtual
void GetPoint2DisplayPosition(
double pos[3]) = 0;
66 virtual
void SetPoint1WorldPosition(
double pos[3]) = 0;
67 virtual
void SetPoint2WorldPosition(
double pos[3]) = 0;
82 void InstantiateHandleRepresentation();
92 vtkGetObjectMacro(Point2Representation, vtkHandleRepresentation);
101 vtkSetClampMacro(Tolerance,
int, 1, 100);
102 vtkGetMacro(Tolerance,
int);
111 vtkSetStringMacro(LabelFormat);
112 vtkGetStringMacro(LabelFormat);
124 vtkSetMacro(Scale,
double);
125 vtkGetMacro(Scale,
double);
135 vtkGetMacro(RulerMode, vtkTypeBool);
136 vtkBooleanMacro(RulerMode, vtkTypeBool);
145 vtkGetMacro(RulerDistance,
double);
156 vtkSetClampMacro(NumberOfRulerTicks,
int, 1,
VTK_INT_MAX);
157 vtkGetMacro(NumberOfRulerTicks,
int);
177 unsigned long event,
void* calldata)
override;
179 unsigned long event,
void* calldata)
override;
181 unsigned long event,
void* calldata,
int modify = 0)
override;
abstract class for representing widget handles
represent the vtkDistanceWidget
vtkHandleRepresentation * HandleRepresentation
platform-independent render window interaction including picking and frame rate control.
vtkHandleRepresentation * Point1Representation
a simple class to control print indentation
#define VTK_SIZEHINT(...)
vtkHandleRepresentation * Point2Representation