87 #ifndef vtkSplineWidget_h 88 #define vtkSplineWidget_h 90 #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 128 {this->Superclass::PlaceWidget();}
129 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
130 double zmin,
double zmax)
override 131 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
155 vtkGetMacro(ProjectionNormal,
int);
157 { this->SetProjectionNormal(0); }
159 { this->SetProjectionNormal(1); }
161 { this->SetProjectionNormal(2); }
163 { this->SetProjectionNormal(3); }
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(
vtkObject*
object,
318 void OnLeftButtonDown();
319 void OnLeftButtonUp();
320 void OnMiddleButtonDown();
321 void OnMiddleButtonUp();
322 void OnRightButtonDown();
323 void OnRightButtonUp();
333 void ProjectPointsToPlane();
334 void ProjectPointsToOrthoPlane();
335 void ProjectPointsToObliquePlane();
342 void BuildRepresentation();
346 void HighlightLine(
int highlight);
353 int HighlightHandle(
vtkProp *prop);
355 void InsertHandleOnLine(
double* pos);
356 void EraseHandle(
const int&);
368 void MovePoint(
double *p1,
double *p2);
369 void Scale(
double *p1,
double *p2,
int X,
int Y);
370 void Translate(
double *p1,
double *p2);
371 void Spin(
double *p1,
double *p2,
double *vpn);
382 void CreateDefaultProperties();
386 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