43 #ifndef vtkBiDimensionalRepresentation_h 44 #define vtkBiDimensionalRepresentation_h 46 #include "vtkInteractionWidgetsModule.h" 69 virtual void SetPoint1WorldPosition(
double pos[3]);
70 virtual void SetPoint2WorldPosition(
double pos[3]);
71 virtual void SetPoint3WorldPosition(
double pos[3]);
72 virtual void SetPoint4WorldPosition(
double pos[3]);
73 virtual void GetPoint1WorldPosition(
double pos[3]);
74 virtual void GetPoint2WorldPosition(
double pos[3]);
75 virtual void GetPoint3WorldPosition(
double pos[3]);
76 virtual void GetPoint4WorldPosition(
double pos[3]);
77 virtual void SetPoint1DisplayPosition(
double pos[3]);
78 virtual void SetPoint2DisplayPosition(
double pos[3]);
79 virtual void SetPoint3DisplayPosition(
double pos[3]);
80 virtual void SetPoint4DisplayPosition(
double pos[3]);
81 virtual void GetPoint1DisplayPosition(
double pos[3]);
82 virtual void GetPoint2DisplayPosition(
double pos[3]);
83 virtual void GetPoint3DisplayPosition(
double pos[3]);
84 virtual void GetPoint4DisplayPosition(
double pos[3]);
128 virtual void InstantiateHandleRepresentation();
137 vtkSetClampMacro(Tolerance,
int,1,100);
138 vtkGetMacro(Tolerance,
int);
145 virtual double GetLength1();
151 virtual double GetLength2();
159 vtkSetStringMacro(LabelFormat);
160 vtkGetStringMacro(LabelFormat);
164 enum {Outside=0,NearP1,NearP2,NearP3,NearP4,OnL1Inner,OnL1Outer,OnL2Inner,OnL2Outer,OnCenter};
173 vtkBooleanMacro(ShowLabelAboveWidget,
vtkTypeBool);
187 virtual char* GetLabelText() = 0;
193 virtual double* GetLabelPosition() = 0;
194 virtual void GetLabelPosition(
double pos[3]) = 0;
195 virtual void GetWorldLabelPosition(
double pos[3]) = 0;
202 virtual void StartWidgetDefinition(
double e[2]) = 0;
203 virtual void Point2WidgetInteraction(
double e[2]) = 0;
204 virtual void Point3WidgetInteraction(
double e[2]) = 0;
205 virtual void StartWidgetManipulation(
double e[2]) = 0;
241 double CenterWorld[3];
242 double StartEventPositionWorld[4];
vtkTypeBool Line1Visibility
abstract class for representing widget handles
represent the vtkBiDimensionalWidget
vtkHandleRepresentation * Point3Representation
vtkHandleRepresentation * Point1Representation
vtkHandleRepresentation * Point2Representation
a simple class to control print indentation
vtkTypeBool ShowLabelAboveWidget
vtkHandleRepresentation * Point4Representation
vtkTypeBool Line2Visibility
vtkHandleRepresentation * HandleRepresentation