81 #ifndef vtkSplineWidget_h 82 #define vtkSplineWidget_h 84 #include "vtkInteractionWidgetsModule.h" 99 #define VTK_PROJECTION_YZ 0 100 #define VTK_PROJECTION_XZ 1 101 #define VTK_PROJECTION_XY 2 102 #define VTK_PROJECTION_OBLIQUE 3 122 {this->Superclass::PlaceWidget();}
123 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
124 double zmin,
double zmax) VTK_OVERRIDE
125 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
138 vtkGetMacro(ProjectToPlane,
int);
149 vtkGetMacro(ProjectionNormal,
int);
151 { this->SetProjectionNormal(0); }
153 { this->SetProjectionNormal(1); }
155 { this->SetProjectionNormal(2); }
157 { this->SetProjectionNormal(3); }
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]);
240 double* GetHandlePosition(
int handle);
251 void SetClosed(
int closed);
252 vtkGetMacro(Closed,
int);
268 double GetSummedLength();
283 vtkSetClampMacro(ProcessEvents,
int, 0, 1);
284 vtkGetMacro(ProcessEvents,
int);
306 static void ProcessEventsHandler(
vtkObject*
object,
312 void OnLeftButtonDown();
313 void OnLeftButtonUp();
314 void OnMiddleButtonDown();
315 void OnMiddleButtonUp();
316 void OnRightButtonDown();
317 void OnRightButtonUp();
327 void ProjectPointsToPlane();
328 void ProjectPointsToOrthoPlane();
329 void ProjectPointsToObliquePlane();
336 void BuildRepresentation();
340 void HighlightLine(
int highlight);
347 int HighlightHandle(
vtkProp *prop);
349 void InsertHandleOnLine(
double* pos);
350 void EraseHandle(const
int&);
356 int CurrentHandleIndex;
359 void RegisterPickers() VTK_OVERRIDE;
362 void MovePoint(
double *p1,
double *p2);
363 void Scale(
double *p1,
double *p2,
int X,
int Y);
364 void Translate(
double *p1,
double *p2);
365 void Spin(
double *p1,
double *p2,
double *vpn);
376 void CreateDefaultProperties();
380 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
create a polygonal sphere centered at the origin
parametric function for 1D interpolating splines
a simple class to control print indentation
create an array of quadrilaterals located in a plane
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
ray-cast cell picker for all kinds of Prop3Ds
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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