75 #ifndef vtkSplineWidget_h
76 #define vtkSplineWidget_h
79 #include "vtkInteractionWidgetsModule.h"
81 VTK_ABI_NAMESPACE_BEGIN
94 #define VTK_PROJECTION_YZ 0
95 #define VTK_PROJECTION_XZ 1
96 #define VTK_PROJECTION_XY 2
97 #define VTK_PROJECTION_OBLIQUE 3
118 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override
120 this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
145 vtkGetMacro(ProjectionNormal,
int);
159 void SetProjectionPosition(
double position);
160 vtkGetMacro(ProjectionPosition,
double);
179 virtual void SetSelectedHandleProperty(
vtkProperty*);
180 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
190 virtual void SetSelectedLineProperty(
vtkProperty*);
191 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
198 virtual void SetNumberOfHandles(
int npts);
199 vtkGetMacro(NumberOfHandles,
int);
208 vtkGetMacro(Resolution,
int);
229 void SetHandlePosition(
int handle,
double x,
double y,
double z);
230 void SetHandlePosition(
int handle,
double xyz[3]);
231 void GetHandlePosition(
int handle,
double xyz[3]);
260 double GetSummedLength();
275 vtkSetClampMacro(ProcessEvents,
vtkTypeBool, 0, 1);
298 static void ProcessEventsHandler(
299 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
302 void OnLeftButtonDown();
303 void OnLeftButtonUp();
304 void OnMiddleButtonDown();
305 void OnMiddleButtonUp();
306 void OnRightButtonDown();
307 void OnRightButtonUp();
317 void ProjectPointsToPlane();
318 void ProjectPointsToOrthoPlane();
319 void ProjectPointsToObliquePlane();
326 void BuildRepresentation();
330 void HighlightLine(
int highlight);
337 int HighlightHandle(
vtkProp* prop);
339 void InsertHandleOnLine(
double* pos);
340 void EraseHandle(
const int&);
352 void MovePoint(
double* p1,
double* p2);
353 void Scale(
double* p1,
double* p2,
int X,
int Y);
354 void Translate(
double* p1,
double* p2);
355 void Spin(
double* p1,
double* p2,
double* vpn);
366 void CreateDefaultProperties();
370 void CalculateCentroid();
378 VTK_ABI_NAMESPACE_END
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