90 #ifndef vtkSplineWidget_h 91 #define vtkSplineWidget_h 94 #include "vtkInteractionWidgetsModule.h" 108 #define VTK_PROJECTION_YZ 0 109 #define VTK_PROJECTION_XZ 1 110 #define VTK_PROJECTION_XY 2 111 #define VTK_PROJECTION_OBLIQUE 3 132 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override 134 this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
159 vtkGetMacro(ProjectionNormal,
int);
173 void SetProjectionPosition(
double position);
174 vtkGetMacro(ProjectionPosition,
double);
193 virtual void SetSelectedHandleProperty(
vtkProperty*);
194 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
204 virtual void SetSelectedLineProperty(
vtkProperty*);
205 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
212 virtual void SetNumberOfHandles(
int npts);
213 vtkGetMacro(NumberOfHandles,
int);
222 vtkGetMacro(Resolution,
int);
243 void SetHandlePosition(
int handle,
double x,
double y,
double z);
244 void SetHandlePosition(
int handle,
double xyz[3]);
245 void GetHandlePosition(
int handle,
double xyz[3]);
274 double GetSummedLength();
289 vtkSetClampMacro(ProcessEvents,
vtkTypeBool, 0, 1);
312 static void ProcessEventsHandler(
313 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
316 void OnLeftButtonDown();
317 void OnLeftButtonUp();
318 void OnMiddleButtonDown();
319 void OnMiddleButtonUp();
320 void OnRightButtonDown();
321 void OnRightButtonUp();
331 void ProjectPointsToPlane();
332 void ProjectPointsToOrthoPlane();
333 void ProjectPointsToObliquePlane();
340 void BuildRepresentation();
344 void HighlightLine(
int highlight);
351 int HighlightHandle(
vtkProp* prop);
353 void InsertHandleOnLine(
double* pos);
354 void EraseHandle(
const int&);
366 void MovePoint(
double* p1,
double* p2);
367 void Scale(
double* p1,
double* p2,
int X,
int Y);
368 void Translate(
double* p1,
double* p2);
369 void Spin(
double* p1,
double* p2,
double* vpn);
380 void CreateDefaultProperties();
384 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