26 #ifndef __vtkDistanceRepresentation_h
27 #define __vtkDistanceRepresentation_h
45 virtual double GetDistance() = 0;
51 virtual void GetPoint1WorldPosition(
double pos[3]) = 0;
52 virtual void GetPoint2WorldPosition(
double pos[3]) = 0;
53 virtual double* GetPoint1WorldPosition() = 0;
54 virtual double* GetPoint2WorldPosition() = 0;
55 virtual void SetPoint1DisplayPosition(
double pos[3]) = 0;
56 virtual void SetPoint2DisplayPosition(
double pos[3]) = 0;
57 virtual void GetPoint1DisplayPosition(
double pos[3]) = 0;
58 virtual void GetPoint2DisplayPosition(
double pos[3]) = 0;
59 virtual void SetPoint1WorldPosition(
double pos[3])=0;
60 virtual void SetPoint2WorldPosition(
double pos[3])=0;
74 void InstantiateHandleRepresentation();
89 vtkSetClampMacro(Tolerance,
int,1,100);
90 vtkGetMacro(Tolerance,
int);
97 vtkSetStringMacro(LabelFormat);
98 vtkGetStringMacro(LabelFormat);
106 vtkSetMacro(RulerMode,
int);
107 vtkGetMacro(RulerMode,
int);
108 vtkBooleanMacro(RulerMode,
int);
115 vtkGetMacro(RulerDistance,
double);
125 vtkGetMacro(NumberOfRulerTicks,
int);
129 enum {Outside=0,NearP1,NearP2};
abstract class for representing widget handles
represent the vtkDistanceWidget
vtkHandleRepresentation * HandleRepresentation
vtkHandleRepresentation * Point1Representation
a simple class to control print indentation
vtkHandleRepresentation * Point2Representation
#define VTK_LARGE_INTEGER