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);
represent the vtkDistanceWidget
virtual void GetPoint1WorldPosition(double pos[3])=0
Methods to Set/Get the coordinates of the two points defining this representation.
virtual double * GetPoint2WorldPosition()=0
virtual int ComputeInteractionState(int X, int Y, int modify=0)
vtkDistanceRepresentation()
virtual void BuildRepresentation()
These are methods that satisfy vtkWidgetRepresentation's API.
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
virtual void StartWidgetInteraction(double e[2])
vtkHandleRepresentation * Point2Representation
virtual void GetPoint2DisplayPosition(double pos[3])=0
virtual void GetPoint1DisplayPosition(double pos[3])=0
vtkHandleRepresentation * HandleRepresentation
void SetHandleRepresentation(vtkHandleRepresentation *handle)
This method is used to specify the type of handle representation to use for the two internal vtkHandl...
virtual void SetPoint1WorldPosition(double pos[3])=0
virtual double * GetPoint1WorldPosition()=0
void InstantiateHandleRepresentation()
~vtkDistanceRepresentation()
virtual void SetPoint2WorldPosition(double pos[3])=0
virtual void SetPoint2DisplayPosition(double pos[3])=0
vtkHandleRepresentation * Point1Representation
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void WidgetInteraction(double e[2])
virtual void SetPoint1DisplayPosition(double pos[3])=0
abstract class for representing widget handles
a simple class to control print indentation
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.