15 #ifndef vtkDistanceRepresentation_h
16 #define vtkDistanceRepresentation_h
18 #include "vtkInteractionWidgetsModule.h"
22 VTK_ABI_NAMESPACE_BEGIN
41 virtual double GetDistance() = 0;
50 virtual
void GetPoint1WorldPosition(
double pos[3]) VTK_FUTURE_CONST = 0;
52 virtual
void GetPoint2WorldPosition(
double pos[3]) VTK_FUTURE_CONST = 0;
54 virtual
double* GetPoint1WorldPosition()
VTK_SIZEHINT(3) = 0;
56 virtual
double* GetPoint2WorldPosition() VTK_SIZEHINT(3) = 0;
58 virtual
void SetPoint1DisplayPosition(
double pos[3]) = 0;
60 virtual
void SetPoint2DisplayPosition(
double pos[3]) = 0;
62 virtual
void GetPoint1DisplayPosition(
double pos[3]) VTK_FUTURE_CONST = 0;
64 virtual
void GetPoint2DisplayPosition(
double pos[3]) VTK_FUTURE_CONST = 0;
66 virtual
void SetPoint1WorldPosition(
double pos[3]) = 0;
68 virtual
void SetPoint2WorldPosition(
double pos[3]) = 0;
83 void InstantiateHandleRepresentation();
93 void SetPoint1Representation(vtkHandleRepresentation* obj);
94 vtkGetObjectMacro(Point2Representation, vtkHandleRepresentation);
95 void SetPoint2Representation(vtkHandleRepresentation* obj);
105 vtkSetClampMacro(Tolerance,
int, 1, 100);
106 vtkGetMacro(Tolerance,
int);
115 vtkSetStringMacro(LabelFormat);
116 vtkGetStringMacro(LabelFormat);
128 vtkSetMacro(Scale,
double);
129 vtkGetMacro(Scale,
double);
139 vtkGetMacro(RulerMode, vtkTypeBool);
140 vtkBooleanMacro(RulerMode, vtkTypeBool);
149 vtkGetMacro(RulerDistance,
double);
160 vtkSetClampMacro(NumberOfRulerTicks,
int, 1,
VTK_INT_MAX);
161 vtkGetMacro(NumberOfRulerTicks,
int);
181 unsigned long event,
void* calldata)
override;
183 unsigned long event,
void* calldata)
override;
185 unsigned long event,
void* calldata,
int modify = 0)
override;
217 VTK_ABI_NAMESPACE_END
abstract class for representing widget handles
represent the vtkDistanceWidget
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
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(...)
#define VTK_MARSHALEXCLUDE(reason)
vtkHandleRepresentation * Point2Representation