Go to the documentation of this file.
27 #ifndef vtkDistanceRepresentation_h
28 #define vtkDistanceRepresentation_h
30 #include "vtkInteractionWidgetsModule.h"
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();
102 vtkSetClampMacro(Tolerance,
int,1,100);
103 vtkGetMacro(Tolerance,
int);
112 vtkSetStringMacro(LabelFormat);
113 vtkGetStringMacro(LabelFormat);
125 vtkSetMacro(Scale,
double);
126 vtkGetMacro(Scale,
double);
146 vtkGetMacro(RulerDistance,
double);
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;
~vtkDistanceRepresentation() override
void WidgetInteraction(double e[2]) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void StartComplexInteraction(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata) override
abstract class for representing widget handles
void ComplexInteraction(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata) override
vtkHandleRepresentation * Point1Representation
#define VTK_SIZEHINT(...)
represent the vtkDistanceWidget
virtual void GetPoint1WorldPosition(double pos[3])=0
Methods to Set/Get the coordinates of the two points defining this representation.
vtkHandleRepresentation * HandleRepresentation
void BuildRepresentation() override
These are methods that satisfy vtkWidgetRepresentation's API.
a simple class to control print indentation
virtual double GetDistance()=0
This representation and all subclasses must keep a distance consistent with the state of the widget.
int ComputeComplexInteractionState(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata, int modify=0) override
void StartWidgetInteraction(double e[2]) override
platform-independent render window interaction including picking and frame rate control.
virtual double * GetPoint1WorldPosition()=0
virtual void GetPoint2WorldPosition(double pos[3])=0
vtkHandleRepresentation * Point2Representation
int ComputeInteractionState(int X, int Y, int modify=0) override
vtkDistanceRepresentation()