43 #ifndef vtkBiDimensionalRepresentation_h
44 #define vtkBiDimensionalRepresentation_h
46 #include "vtkInteractionWidgetsModule.h"
136 vtkSetClampMacro(Tolerance,
int, 1, 100);
137 vtkGetMacro(Tolerance,
int);
158 vtkSetStringMacro(LabelFormat);
159 vtkGetStringMacro(LabelFormat);
252 double CenterWorld[3];
253 double StartEventPositionWorld[4];
represent the vtkBiDimensionalWidget
vtkHandleRepresentation * Point1Representation
virtual void GetPoint2DisplayPosition(double pos[3])
virtual void SetPoint1DisplayPosition(double pos[3])
virtual double GetLength2()
Return the length of the line defined by (Point3,Point4).
virtual void GetPoint1WorldPosition(double pos[3])
virtual void StartWidgetManipulation(double e[2])=0
virtual char * GetLabelText()=0
Get the text shown in the widget's label.
virtual void Point2WidgetInteraction(double e[2])=0
vtkHandleRepresentation * HandleRepresentation
void SetHandleRepresentation(vtkHandleRepresentation *handle)
This method is used to specify the type of handle representation to use for the four internal vtkHand...
vtkHandleRepresentation * Point3Representation
virtual void SetPoint3DisplayPosition(double pos[3])
virtual void SetPoint2WorldPosition(double pos[3])
vtkHandleRepresentation * Point4Representation
vtkTypeBool ShowLabelAboveWidget
virtual void GetPoint4DisplayPosition(double pos[3])
virtual void Point3WidgetInteraction(double e[2])=0
vtkHandleRepresentation * Point2Representation
~vtkBiDimensionalRepresentation() override
virtual void GetPoint2WorldPosition(double pos[3])
virtual void SetPoint1WorldPosition(double pos[3])
Methods to Set/Get the coordinates of the four points defining this representation.
virtual double * GetLabelPosition()=0
Get the position of the widget's label in display coordinates.
vtkTypeBool Line1Visibility
vtkTypeBool Line2Visibility
virtual void GetPoint4WorldPosition(double pos[3])
virtual void StartWidgetDefinition(double e[2])=0
These are methods that satisfy vtkWidgetRepresentation's API.
virtual void SetPoint4DisplayPosition(double pos[3])
virtual void SetPoint2DisplayPosition(double pos[3])
void SetID(vtkIdType id)
Set/get the id to display in the label.
virtual void SetPoint3WorldPosition(double pos[3])
vtkBiDimensionalRepresentation()
virtual void GetPoint1DisplayPosition(double pos[3])
virtual void GetWorldLabelPosition(double pos[3])=0
virtual void GetPoint3WorldPosition(double pos[3])
virtual void SetPoint4WorldPosition(double pos[3])
virtual void GetPoint3DisplayPosition(double pos[3])
virtual void GetLabelPosition(double pos[3])=0
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual double GetLength1()
Return the length of the line defined by (Point1,Point2).
virtual void InstantiateHandleRepresentation()
abstract class for representing widget handles
a simple class to control print indentation