87 #ifndef vtkSplineWidget_h
88 #define vtkSplineWidget_h
91 #include "vtkInteractionWidgetsModule.h"
105 #define VTK_PROJECTION_YZ 0
106 #define VTK_PROJECTION_XZ 1
107 #define VTK_PROJECTION_XY 2
108 #define VTK_PROJECTION_OBLIQUE 3
129 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override
131 this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
156 vtkGetMacro(ProjectionNormal,
int);
170 void SetProjectionPosition(
double position);
171 vtkGetMacro(ProjectionPosition,
double);
190 virtual void SetSelectedHandleProperty(
vtkProperty*);
191 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
201 virtual void SetSelectedLineProperty(
vtkProperty*);
202 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
209 virtual void SetNumberOfHandles(
int npts);
210 vtkGetMacro(NumberOfHandles,
int);
219 vtkGetMacro(Resolution,
int);
240 void SetHandlePosition(
int handle,
double x,
double y,
double z);
241 void SetHandlePosition(
int handle,
double xyz[3]);
242 void GetHandlePosition(
int handle,
double xyz[3]);
271 double GetSummedLength();
286 vtkSetClampMacro(ProcessEvents,
vtkTypeBool, 0, 1);
309 static void ProcessEventsHandler(
310 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
313 void OnLeftButtonDown();
314 void OnLeftButtonUp();
315 void OnMiddleButtonDown();
316 void OnMiddleButtonUp();
317 void OnRightButtonDown();
318 void OnRightButtonUp();
328 void ProjectPointsToPlane();
329 void ProjectPointsToOrthoPlane();
330 void ProjectPointsToObliquePlane();
337 void BuildRepresentation();
341 void HighlightLine(
int highlight);
348 int HighlightHandle(
vtkProp* prop);
350 void InsertHandleOnLine(
double* pos);
351 void EraseHandle(
const int&);
363 void MovePoint(
double* p1,
double* p2);
364 void Scale(
double* p1,
double* p2,
int X,
int Y);
365 void Translate(
double* p1,
double* p2);
366 void Spin(
double* p1,
double* p2,
double* vpn);
377 void CreateDefaultProperties();
381 void CalculateCentroid();
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
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
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
create a polygonal sphere centered at the origin
parametric function for 1D interpolating splines
a simple class to control print indentation
#define VTK_SIZEHINT(...)
create an array of quadrilaterals located in a plane
ray-cast cell picker for all kinds of Prop3Ds
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points
tessellate parametric functions