87 #ifndef __vtkPlaneWidget_h
88 #define __vtkPlaneWidget_h
106 #define VTK_PLANE_OFF 0
107 #define VTK_PLANE_OUTLINE 1
108 #define VTK_PLANE_WIREFRAME 2
109 #define VTK_PLANE_SURFACE 3
126 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
127 double zmin,
double zmax)
133 void SetResolution(
int r);
139 void SetOrigin(
double x,
double y,
double z);
140 void SetOrigin(
double x[3]);
142 void GetOrigin(
double xyz[3]);
148 void SetPoint1(
double x,
double y,
double z);
149 void SetPoint1(
double x[3]);
151 void GetPoint1(
double xyz[3]);
157 void SetPoint2(
double x,
double y,
double z);
158 void SetPoint2(
double x[3]);
160 void GetPoint2(
double xyz[3]);
165 void SetCenter(
double x,
double y,
double z);
166 void SetCenter(
double x[3]);
168 void GetCenter(
double xyz[3]);
173 void SetNormal(
double x,
double y,
double z);
174 void SetNormal(
double x[3]);
176 void GetNormal(
double xyz[3]);
186 vtkGetMacro(Representation,
int);
202 vtkSetMacro(NormalToXAxis,
int);
203 vtkGetMacro(NormalToXAxis,
int);
204 vtkBooleanMacro(NormalToXAxis,
int);
205 vtkSetMacro(NormalToYAxis,
int);
206 vtkGetMacro(NormalToYAxis,
int);
207 vtkBooleanMacro(NormalToYAxis,
int);
208 vtkSetMacro(NormalToZAxis,
int);
209 vtkGetMacro(NormalToZAxis,
int);
210 vtkBooleanMacro(NormalToZAxis,
int);
245 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
253 vtkGetObjectMacro(SelectedPlaneProperty,
vtkProperty);
281 void OnLeftButtonDown();
282 void OnLeftButtonUp();
283 void OnMiddleButtonDown();
284 void OnMiddleButtonUp();
285 void OnRightButtonDown();
286 void OnRightButtonUp();
294 void SelectRepresentation();
301 void HighlightPlane(
int highlight);
307 void PositionHandles();
308 void HandlesOn(
double length);
310 int HighlightHandle(
vtkProp *prop);
317 void HighlightNormal(
int highlight);
340 void MoveOrigin(
double *p1,
double *p2);
341 void MovePoint1(
double *p1,
double *p2);
342 void MovePoint2(
double *p1,
double *p2);
343 void MovePoint3(
double *p1,
double *p2);
344 void Rotate(
int X,
int Y,
double *p1,
double *p2,
double *vpn);
345 void Spin(
double *p1,
double *p2);
346 void Scale(
double *p1,
double *p2,
int X,
int Y);
347 void Translate(
double *p1,
double *p2);
348 void Push(
double *p1,
double *p2);
362 void CreateDefaultProperties();
364 void GeneratePlane();