Go to the documentation of this file.
27 #ifndef vtkDistanceRepresentation_h
28 #define vtkDistanceRepresentation_h
30 #include "vtkInteractionWidgetsModule.h"
102 vtkSetClampMacro(Tolerance,
int,1,100);
103 vtkGetMacro(Tolerance,
int);
112 vtkSetStringMacro(LabelFormat);
126 vtkGetMacro(Scale,
double);
136 vtkGetMacro(RulerMode,
int);
146 vtkGetMacro(RulerDistance,
double);
158 vtkGetMacro(NumberOfRulerTicks,
int);
162 enum {Outside=0,NearP1,NearP2};
void InstantiateHandleRepresentation()
void SetHandleRepresentation(vtkHandleRepresentation *handle)
This method is used to specify the type of handle representation to use for the two internal vtkHandl...
virtual void StartWidgetInteraction(double e[2])
virtual int ComputeInteractionState(int X, int Y, int modify=0)
abstract class for representing widget handles
virtual void GetPoint1DisplayPosition(double pos[3])=0
vtkHandleRepresentation * Point1Representation
~vtkDistanceRepresentation()
represent the vtkDistanceWidget
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void GetPoint1WorldPosition(double pos[3])=0
Methods to Set/Get the coordinates of the two points defining this representation.
vtkHandleRepresentation * HandleRepresentation
virtual void WidgetInteraction(double e[2])
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.
virtual void SetPoint1WorldPosition(double pos[3])=0
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual double * GetPoint2WorldPosition()=0
virtual double * GetPoint1WorldPosition()=0
virtual void SetPoint2WorldPosition(double pos[3])=0
virtual void GetPoint2WorldPosition(double pos[3])=0
virtual void BuildRepresentation()
These are methods that satisfy vtkWidgetRepresentation's API.
vtkHandleRepresentation * Point2Representation
virtual void GetPoint2DisplayPosition(double pos[3])=0
virtual void SetPoint2DisplayPosition(double pos[3])=0
virtual void SetPoint1DisplayPosition(double pos[3])=0
vtkDistanceRepresentation()