83 #ifndef vtkPlaneWidget_h
84 #define vtkPlaneWidget_h
103 #define VTK_PLANE_OFF 0
104 #define VTK_PLANE_OUTLINE 1
105 #define VTK_PLANE_WIREFRAME 2
106 #define VTK_PLANE_SURFACE 3
123 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
124 double zmin,
double zmax)
130 void SetResolution(
int r);
136 void SetOrigin(
double x,
double y,
double z);
137 void SetOrigin(
double x[3]);
139 void GetOrigin(
double xyz[3]);
145 void SetPoint1(
double x,
double y,
double z);
146 void SetPoint1(
double x[3]);
148 void GetPoint1(
double xyz[3]);
154 void SetPoint2(
double x,
double y,
double z);
155 void SetPoint2(
double x[3]);
157 void GetPoint2(
double xyz[3]);
162 void SetCenter(
double x,
double y,
double z);
163 void SetCenter(
double x[3]);
165 void GetCenter(
double xyz[3]);
170 void SetNormal(
double x,
double y,
double z);
171 void SetNormal(
double x[3]);
173 void GetNormal(
double xyz[3]);
183 vtkGetMacro(Representation,
int);
199 vtkSetMacro(NormalToXAxis,
int);
200 vtkGetMacro(NormalToXAxis,
int);
201 vtkBooleanMacro(NormalToXAxis,
int);
202 vtkSetMacro(NormalToYAxis,
int);
203 vtkGetMacro(NormalToYAxis,
int);
204 vtkBooleanMacro(NormalToYAxis,
int);
205 vtkSetMacro(NormalToZAxis,
int);
206 vtkGetMacro(NormalToZAxis,
int);
207 vtkBooleanMacro(NormalToZAxis,
int);
242 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
250 vtkGetObjectMacro(SelectedPlaneProperty,
vtkProperty);
278 void OnLeftButtonDown();
279 void OnLeftButtonUp();
280 void OnMiddleButtonDown();
281 void OnMiddleButtonUp();
282 void OnRightButtonDown();
283 void OnRightButtonUp();
291 void SelectRepresentation();
298 void HighlightPlane(
int highlight);
304 void PositionHandles();
305 void HandlesOn(
double length);
307 int HighlightHandle(
vtkProp *prop);
314 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();
abstract superclass for all actors, volumes and annotations
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
represent surface properties of a geometric object
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
virtual void SetEnabled(int)
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void RegisterPickers()
create a polygonal sphere centered at the origin
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
perform various plane computations
create an array of quadrilaterals located in a plane
create a line defined by two end points
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
represent and manipulate 3D points