89 #ifndef vtkSplineWidget_h
90 #define vtkSplineWidget_h
107 #define VTK_PROJECTION_YZ 0
108 #define VTK_PROJECTION_XZ 1
109 #define VTK_PROJECTION_XY 2
110 #define VTK_PROJECTION_OBLIQUE 3
126 {this->Superclass::PlaceWidget();}
127 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
128 double zmin,
double zmax)
129 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
139 vtkSetMacro(ProjectToPlane,
int);
140 vtkGetMacro(ProjectToPlane,
int);
141 vtkBooleanMacro(ProjectToPlane,
int);
149 vtkGetMacro(ProjectionNormal,
int);
151 { this->SetProjectionNormal(0); }
153 { this->SetProjectionNormal(1); }
155 { this->SetProjectionNormal(2); }
157 { this->SetProjectionNormal(3); }
165 void SetProjectionPosition(
double position);
166 vtkGetMacro(ProjectionPosition,
double);
183 virtual void SetSelectedHandleProperty(
vtkProperty*);
184 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
192 virtual void SetSelectedLineProperty(
vtkProperty*);
193 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
198 virtual void SetNumberOfHandles(
int npts);
199 vtkGetMacro(NumberOfHandles,
int);
206 vtkGetMacro(Resolution,
int);
223 void SetHandlePosition(
int handle,
double x,
double y,
double z);
224 void SetHandlePosition(
int handle,
double xyz[3]);
225 void GetHandlePosition(
int handle,
double xyz[3]);
226 double* GetHandlePosition(
int handle);
235 void SetClosed(
int closed);
236 vtkGetMacro(Closed,
int);
237 vtkBooleanMacro(Closed,
int);
248 double GetSummedLength();
259 vtkSetClampMacro(ProcessEvents,
int, 0, 1);
260 vtkGetMacro(ProcessEvents,
int);
261 vtkBooleanMacro( ProcessEvents,
int );
283 static void ProcessEventsHandler(
vtkObject*
object,
289 void OnLeftButtonDown();
290 void OnLeftButtonUp();
291 void OnMiddleButtonDown();
292 void OnMiddleButtonUp();
293 void OnRightButtonDown();
294 void OnRightButtonUp();
304 void ProjectPointsToPlane();
305 void ProjectPointsToOrthoPlane();
306 void ProjectPointsToObliquePlane();
313 void BuildRepresentation();
317 void HighlightLine(
int highlight);
324 int HighlightHandle(
vtkProp *prop);
326 void InsertHandleOnLine(
double* pos);
327 void EraseHandle(
const int&);
339 void MovePoint(
double *p1,
double *p2);
340 void Scale(
double *p1,
double *p2,
int X,
int Y);
341 void Translate(
double *p1,
double *p2);
342 void Spin(
double *p1,
double *p2,
double *vpn);
353 void CreateDefaultProperties();
357 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)
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void RegisterPickers()
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
ray-cast cell picker for all kinds of Prop3Ds
represent and manipulate 3D points
tessellate parametric functions