15 #ifndef vtkDistanceRepresentation_h
16 #define vtkDistanceRepresentation_h
18 #include "vtkInteractionWidgetsModule.h"
21 VTK_ABI_NAMESPACE_BEGIN
39 virtual double GetDistance() = 0;
47 virtual void GetPoint1WorldPosition(
double pos[3]) = 0;
48 virtual void GetPoint2WorldPosition(
double pos[3]) = 0;
49 virtual double* GetPoint1WorldPosition()
VTK_SIZEHINT(3) = 0;
50 virtual
double* GetPoint2WorldPosition()
VTK_SIZEHINT(3) = 0;
51 virtual
void SetPoint1DisplayPosition(
double pos[3]) = 0;
52 virtual
void SetPoint2DisplayPosition(
double pos[3]) = 0;
53 virtual
void GetPoint1DisplayPosition(
double pos[3]) = 0;
54 virtual
void GetPoint2DisplayPosition(
double pos[3]) = 0;
55 virtual
void SetPoint1WorldPosition(
double pos[3]) = 0;
56 virtual
void SetPoint2WorldPosition(
double pos[3]) = 0;
71 void InstantiateHandleRepresentation();
81 vtkGetObjectMacro(Point2Representation, vtkHandleRepresentation);
90 vtkSetClampMacro(Tolerance,
int, 1, 100);
91 vtkGetMacro(Tolerance,
int);
100 vtkSetStringMacro(LabelFormat);
101 vtkGetStringMacro(LabelFormat);
113 vtkSetMacro(Scale,
double);
114 vtkGetMacro(Scale,
double);
124 vtkGetMacro(RulerMode, vtkTypeBool);
125 vtkBooleanMacro(RulerMode, vtkTypeBool);
134 vtkGetMacro(RulerDistance,
double);
145 vtkSetClampMacro(NumberOfRulerTicks,
int, 1,
VTK_INT_MAX);
146 vtkGetMacro(NumberOfRulerTicks,
int);
166 unsigned long event,
void* calldata)
override;
168 unsigned long event,
void* calldata)
override;
170 unsigned long event,
void* calldata,
int modify = 0)
override;
202 VTK_ABI_NAMESPACE_END
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