84 #ifndef vtkSplineWidget_h 85 #define vtkSplineWidget_h 88 #include "vtkInteractionWidgetsModule.h" 102 #define VTK_PROJECTION_YZ 0 103 #define VTK_PROJECTION_XZ 1 104 #define VTK_PROJECTION_XY 2 105 #define VTK_PROJECTION_OBLIQUE 3 126 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override 128 this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
153 vtkGetMacro(ProjectionNormal,
int);
167 void SetProjectionPosition(
double position);
168 vtkGetMacro(ProjectionPosition,
double);
187 virtual void SetSelectedHandleProperty(
vtkProperty*);
188 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
198 virtual void SetSelectedLineProperty(
vtkProperty*);
199 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
206 virtual void SetNumberOfHandles(
int npts);
207 vtkGetMacro(NumberOfHandles,
int);
216 vtkGetMacro(Resolution,
int);
237 void SetHandlePosition(
int handle,
double x,
double y,
double z);
238 void SetHandlePosition(
int handle,
double xyz[3]);
239 void GetHandlePosition(
int handle,
double xyz[3]);
268 double GetSummedLength();
283 vtkSetClampMacro(ProcessEvents,
vtkTypeBool, 0, 1);
306 static void ProcessEventsHandler(
307 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
310 void OnLeftButtonDown();
311 void OnLeftButtonUp();
312 void OnMiddleButtonDown();
313 void OnMiddleButtonUp();
314 void OnRightButtonDown();
315 void OnRightButtonUp();
325 void ProjectPointsToPlane();
326 void ProjectPointsToOrthoPlane();
327 void ProjectPointsToObliquePlane();
334 void BuildRepresentation();
338 void HighlightLine(
int highlight);
345 int HighlightHandle(
vtkProp* prop);
347 void InsertHandleOnLine(
double* pos);
348 void EraseHandle(
const int&);
360 void MovePoint(
double* p1,
double* p2);
361 void Scale(
double* p1,
double* p2,
int X,
int Y);
362 void Translate(
double* p1,
double* p2);
363 void Spin(
double* p1,
double* p2,
double* vpn);
374 void CreateDefaultProperties();
378 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