34 #ifndef vtkDistanceRepresentation_h
35 #define vtkDistanceRepresentation_h
37 #include "vtkInteractionWidgetsModule.h"
40 VTK_ABI_NAMESPACE_BEGIN
70 virtual
void SetPoint1DisplayPosition(
double pos[3]) = 0;
71 virtual
void SetPoint2DisplayPosition(
double pos[3]) = 0;
72 virtual
void GetPoint1DisplayPosition(
double pos[3]) = 0;
73 virtual
void GetPoint2DisplayPosition(
double pos[3]) = 0;
74 virtual
void SetPoint1WorldPosition(
double pos[3]) = 0;
75 virtual
void SetPoint2WorldPosition(
double pos[3]) = 0;
90 void InstantiateHandleRepresentation();
109 vtkSetClampMacro(Tolerance,
int, 1, 100);
110 vtkGetMacro(Tolerance,
int);
119 vtkSetStringMacro(LabelFormat);
120 vtkGetStringMacro(LabelFormat);
132 vtkSetMacro(Scale,
double);
133 vtkGetMacro(Scale,
double);
153 vtkGetMacro(RulerDistance,
double);
165 vtkGetMacro(NumberOfRulerTicks,
int);
185 unsigned long event,
void* calldata)
override;
187 unsigned long event,
void* calldata)
override;
189 unsigned long event,
void* calldata,
int modify = 0)
override;
221 VTK_ABI_NAMESPACE_END
represent the vtkDistanceWidget
int ComputeInteractionState(int X, int Y, int modify=0) override
These are methods that satisfy vtkWidgetRepresentation's API.
int ComputeComplexInteractionState(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata, int modify=0) override
These are methods that satisfy vtkWidgetRepresentation's API.
virtual void GetPoint1WorldPosition(double pos[3])=0
Methods to Set/Get the coordinates of the two points defining this representation.
void StartComplexInteraction(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata) override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkDistanceRepresentation()
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
virtual double GetDistance()=0
This representation and all subclasses must keep a distance consistent with the state of the widget.
virtual void GetPoint2WorldPosition(double pos[3])=0
Methods to Set/Get the coordinates of the two points defining this representation.
vtkHandleRepresentation * Point2Representation
virtual double * GetPoint1WorldPosition()=0
Methods to Set/Get the coordinates of the two points defining this representation.
vtkHandleRepresentation * HandleRepresentation
~vtkDistanceRepresentation() override
void BuildRepresentation() override
These are methods that satisfy vtkWidgetRepresentation's API.
void WidgetInteraction(double e[2]) override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkHandleRepresentation * Point1Representation
void ComplexInteraction(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata) override
These are methods that satisfy vtkWidgetRepresentation's API.
void StartWidgetInteraction(double e[2]) override
These are methods that satisfy vtkWidgetRepresentation's API.
abstract class for representing widget handles
a simple class to control print indentation
platform-independent render window interaction including picking and frame rate control.
#define VTK_SIZEHINT(...)