46 #ifndef __vtkAffineRepresentation2D_h
47 #define __vtkAffineRepresentation2D_h
49 #include "vtkInteractionWidgetsModule.h"
54 class vtkPolyDataMapper2D;
58 class vtkTextProperty;
59 class vtkLeaderActor2D;
73 void PrintSelf(ostream& os, vtkIndent indent);
82 vtkSetClampMacro(BoxWidth,
int,10,VTK_INT_MAX);
83 vtkGetMacro(BoxWidth,
int);
84 vtkSetClampMacro(CircleWidth,
int,10,VTK_INT_MAX);
85 vtkGetMacro(CircleWidth,
int);
86 vtkSetClampMacro(AxesWidth,
int,10,VTK_INT_MAX);
87 vtkGetMacro(AxesWidth,
int);
95 void SetOrigin(
double ox,
double oy,
double oz);
96 vtkGetVector3Macro(Origin,
double);
109 void SetProperty(vtkProperty2D*);
110 void SetSelectedProperty(vtkProperty2D*);
111 void SetTextProperty(vtkTextProperty*);
112 vtkGetObjectMacro(Property,vtkProperty2D);
113 vtkGetObjectMacro(SelectedProperty,vtkProperty2D);
114 vtkGetObjectMacro(TextProperty,vtkTextProperty);
122 vtkSetMacro(DisplayText,
int);
123 vtkGetMacro(DisplayText,
int);
124 vtkBooleanMacro(DisplayText,
int);
155 void Scale(
double eventPos[2]);
156 void Rotate(
double eventPos[2]);
157 void Shear(
double eventPos[2]);
159 void UpdateText(
const char *text,
double eventPos[2]);
179 double DisplayOrigin[3];
180 double CurrentTranslation[3];
181 double StartWorldPosition[4];
184 double CurrentScale[2];
185 double CurrentShear[2];
193 void CreateDefaultProperties();
198 double LastEventPosition[2];
vtkPolyDataMapper2D * HCircleMapper
vtkTransform * CurrentTransform
abstract class for representing affine transformation widgets
virtual void ShallowCopy(vtkProp *prop)
vtkTransform * TotalTransform
vtkLeaderActor2D * HXAxis
vtkPoints * HCirclePoints
vtkCellArray * HBoxCellArray
virtual void GetTransform(vtkTransform *t)=0
vtkLeaderActor2D * HYAxis
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkProperty2D * SelectedProperty
void PrintSelf(ostream &os, vtkIndent indent)
vtkCellArray * HCircleCellArray
vtkTextMapper * TextMapper
vtkCellArray * BoxCellArray
vtkTextProperty * TextProperty
vtkTransform * TempTransform
vtkActor2D * HCircleActor
void SetOrigin(double o[3])
represent 2D affine transformations
vtkPolyDataMapper2D * BoxMapper
vtkPolyDataMapper2D * CircleMapper
object to represent cell connectivity
vtkCellArray * CircleCellArray
vtkPolyDataMapper2D * HBoxMapper