75 #ifndef vtkPlaneWidget_h 76 #define vtkPlaneWidget_h 78 #include "vtkInteractionWidgetsModule.h" 95 #define VTK_PLANE_OFF 0 96 #define VTK_PLANE_OUTLINE 1 97 #define VTK_PLANE_WIREFRAME 2 98 #define VTK_PLANE_SURFACE 3 119 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
120 double zmin,
double zmax) VTK_OVERRIDE
128 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]);
146 void SetPoint1(
double x,
double y,
double z);
147 void SetPoint1(
double x[3]);
149 void GetPoint1(
double xyz[3]);
156 void SetPoint2(
double x,
double y,
double z);
157 void SetPoint2(
double x[3]);
159 void GetPoint2(
double xyz[3]);
166 void SetCenter(
double x,
double y,
double z);
167 void SetCenter(
double x[3]);
169 void GetCenter(
double xyz[3]);
176 void SetNormal(
double x,
double y,
double z);
177 void SetNormal(
double x[3]);
179 void GetNormal(
double xyz[3]);
192 vtkGetMacro(Representation,
int);
211 vtkGetMacro(NormalToXAxis,
int);
214 vtkGetMacro(NormalToYAxis,
int);
217 vtkGetMacro(NormalToZAxis,
int);
261 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
271 vtkGetObjectMacro(SelectedPlaneProperty,
vtkProperty);
299 void OnLeftButtonDown();
300 void OnLeftButtonUp();
301 void OnMiddleButtonDown();
302 void OnMiddleButtonUp();
303 void OnRightButtonDown();
304 void OnRightButtonUp();
315 void SelectRepresentation();
322 void HighlightPlane(
int highlight);
328 void PositionHandles();
329 void HandlesOn(
double length);
331 int HighlightHandle(
vtkProp *prop);
338 void HighlightNormal(
int highlight);
361 void RegisterPickers() VTK_OVERRIDE;
364 void MoveOrigin(
double *p1,
double *p2);
365 void MovePoint1(
double *p1,
double *p2);
366 void MovePoint2(
double *p1,
double *p2);
367 void MovePoint3(
double *p1,
double *p2);
368 void Rotate(
int X,
int Y,
double *p1,
double *p2,
double *vpn);
369 void Spin(
double *p1,
double *p2);
370 void Scale(
double *p1,
double *p2,
int X,
int Y);
371 void Translate(
double *p1,
double *p2);
372 void Push(
double *p1,
double *p2);
386 void CreateDefaultProperties();
388 void GeneratePlane();
391 double HandleSizeFactor;
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)
Handles the char widget activation event.
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
concrete dataset represents vertices, lines, polygons, and triangle strips
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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create a line defined by two end points
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points