27 #ifndef vtkDistanceRepresentation_h 28 #define vtkDistanceRepresentation_h 30 #include "vtkInteractionWidgetsModule.h" 51 virtual double GetDistance() = 0;
59 virtual void GetPoint1WorldPosition(
double pos[3]) = 0;
60 virtual void GetPoint2WorldPosition(
double pos[3]) = 0;
61 virtual double* GetPoint1WorldPosition()
VTK_SIZEHINT(3) = 0;
62 virtual
double* GetPoint2WorldPosition()
VTK_SIZEHINT(3) = 0;
63 virtual
void SetPoint1DisplayPosition(
double pos[3]) = 0;
64 virtual
void SetPoint2DisplayPosition(
double pos[3]) = 0;
65 virtual
void GetPoint1DisplayPosition(
double pos[3]) = 0;
66 virtual
void GetPoint2DisplayPosition(
double pos[3]) = 0;
67 virtual
void SetPoint1WorldPosition(
double pos[3])=0;
68 virtual
void SetPoint2WorldPosition(
double pos[3])=0;
83 void InstantiateHandleRepresentation();
93 vtkGetObjectMacro(Point2Representation,vtkHandleRepresentation);
102 vtkSetClampMacro(Tolerance,
int,1,100);
103 vtkGetMacro(Tolerance,
int);
112 vtkSetStringMacro(LabelFormat);
113 vtkGetStringMacro(LabelFormat);
125 vtkSetMacro(Scale,
double);
126 vtkGetMacro(Scale,
double);
136 vtkGetMacro(RulerMode,vtkTypeBool);
137 vtkBooleanMacro(RulerMode,vtkTypeBool);
146 vtkGetMacro(RulerDistance,
double);
157 vtkSetClampMacro(NumberOfRulerTicks,
int,1,
VTK_INT_MAX);
158 vtkGetMacro(NumberOfRulerTicks,
int);
162 enum {Outside=0,NearP1,NearP2};
175 unsigned long event,
void *calldata)
override;
179 unsigned long event,
void *calldata)
override;
183 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