Go to the documentation of this file.
43 #ifndef vtkBiDimensionalRepresentation_h
44 #define vtkBiDimensionalRepresentation_h
46 #include "vtkInteractionWidgetsModule.h"
108 vtkGetMacro(Line1Visibility,
int);
111 vtkGetMacro(Line2Visibility,
int);
137 vtkSetClampMacro(Tolerance,
int,1,100);
138 vtkGetMacro(Tolerance,
int);
159 vtkSetStringMacro(LabelFormat);
164 enum {Outside=0,NearP1,NearP2,NearP3,NearP4,OnL1Inner,OnL1Outer,OnL2Inner,OnL2Outer,OnCenter};
172 vtkGetMacro(ShowLabelAboveWidget,
int);
241 double CenterWorld[3];
242 double StartEventPositionWorld[4];
virtual void GetPoint3DisplayPosition(double pos[3])
virtual void SetPoint1DisplayPosition(double pos[3])
virtual void SetPoint4WorldPosition(double pos[3])
virtual double GetLength2()
Return the length of the line defined by (Point3,Point4).
virtual void GetWorldLabelPosition(double pos[3])=0
virtual void GetPoint4WorldPosition(double pos[3])
virtual void InstantiateHandleRepresentation()
abstract class for representing widget handles
vtkHandleRepresentation * HandleRepresentation
virtual void GetPoint1WorldPosition(double pos[3])
virtual void GetPoint3WorldPosition(double pos[3])
virtual void GetPoint2WorldPosition(double pos[3])
virtual double * GetLabelPosition()=0
Get the position of the widget's label in display coordinates.
virtual void Point2WidgetInteraction(double e[2])=0
void SetID(vtkIdType id)
Set/get the id to display in the label.
void SetHandleRepresentation(vtkHandleRepresentation *handle)
This method is used to specify the type of handle representation to use for the four internal vtkHand...
virtual void SetPoint2DisplayPosition(double pos[3])
virtual void StartWidgetDefinition(double e[2])=0
These are methods that satisfy vtkWidgetRepresentation's API.
vtkHandleRepresentation * Point2Representation
virtual void SetPoint4DisplayPosition(double pos[3])
a simple class to control print indentation
vtkHandleRepresentation * Point4Representation
represent the vtkBiDimensionalWidget
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual char * GetLabelText()=0
Get the text shown in the widget's label.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetPoint1WorldPosition(double pos[3])
Methods to Set/Get the coordinates of the four points defining this representation.
virtual double GetLength1()
Return the length of the line defined by (Point1,Point2).
virtual void StartWidgetManipulation(double e[2])=0
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void SetPoint2WorldPosition(double pos[3])
virtual void SetPoint3WorldPosition(double pos[3])
virtual void GetPoint2DisplayPosition(double pos[3])
vtkBiDimensionalRepresentation()
virtual void GetPoint4DisplayPosition(double pos[3])
virtual void Point3WidgetInteraction(double e[2])=0
vtkHandleRepresentation * Point1Representation
virtual void SetPoint3DisplayPosition(double pos[3])
~vtkBiDimensionalRepresentation()
virtual void GetLabelPosition(double pos[3])=0
vtkHandleRepresentation * Point3Representation
virtual void GetPoint1DisplayPosition(double pos[3])