VTK
vtkSplineRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSplineRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
30 #ifndef vtkSplineRepresentation_h
31 #define vtkSplineRepresentation_h
32 
33 #include "vtkInteractionWidgetsModule.h" // For export macro
34 #include "vtkCurveRepresentation.h"
35 
36 class vtkActor;
37 class vtkCellPicker;
38 class vtkDoubleArray;
41 class vtkPlaneSource;
42 class vtkPoints;
43 class vtkPolyData;
44 class vtkProp;
45 class vtkProperty;
46 class vtkSphereSource;
47 class vtkTransform;
48 
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
63 
65  virtual void SetNumberOfHandles(int npts);
66 
68 
71  vtkGetMacro(Resolution,int);
73 
75 
83 
86 
90  double GetSummedLength();
91 
97 
101  virtual void BuildRepresentation();
102 
103 //BTX
104 protected:
107 
108  // The spline
111 
112  // The number of line segments used to represent the spline.
114 
115  // Specialized method to insert a handle on the poly line.
116  virtual void InsertHandleOnLine(double* pos);
117 
118 private:
119  vtkSplineRepresentation(const vtkSplineRepresentation&); // Not implemented.
120  void operator=(const vtkSplineRepresentation&); // Not implemented.
121 //ETX
122 };
123 
124 #endif
125 
126 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkSplineRepresentation::GetPolyData
void GetPolyData(vtkPolyData *pd)
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkSplineRepresentation::SetResolution
void SetResolution(int resolution)
vtkSplineRepresentation::InitializeHandles
void InitializeHandles(vtkPoints *points)
vtkSplineRepresentation::SetNumberOfHandles
virtual void SetNumberOfHandles(int npts)
vtkParametricFunctionSource
tessellate parametric functions
Definition: vtkParametricFunctionSource.h:59
vtkX3D::resolution
@ resolution
Definition: vtkX3D.h:466
vtkCurveRepresentation
vtkWidgetRepresentation base class for a widget that represents an curve that connects control points...
Definition: vtkCurveRepresentation.h:49
vtkPlaneSource
create an array of quadrilaterals located in a plane
Definition: vtkPlaneSource.h:60
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkInteractionWidgetsModule.h
vtkSplineRepresentation::BuildRepresentation
virtual void BuildRepresentation()
vtkTransform
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:60
vtkgl::points
GLsizei const GLfloat * points
Definition: vtkgl.h:14786
vtkSplineRepresentation::InsertHandleOnLine
virtual void InsertHandleOnLine(double *pos)
vtkSplineRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkParametricSpline
parametric function for 1D interpolating splines
Definition: vtkParametricSpline.h:53
vtkSplineRepresentation::SetParametricSpline
virtual void SetParametricSpline(vtkParametricSpline *)
vtkSphereSource
create a polygonal sphere centered at the origin
Definition: vtkSphereSource.h:46
vtkSplineRepresentation::GetHandlePositions
vtkDoubleArray * GetHandlePositions()
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkSplineRepresentation::~vtkSplineRepresentation
~vtkSplineRepresentation()
vtkSplineRepresentation::ParametricFunctionSource
vtkParametricFunctionSource * ParametricFunctionSource
Definition: vtkSplineRepresentation.h:110
vtkSplineRepresentation::New
static vtkSplineRepresentation * New()
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkSplineRepresentation::ParametricSpline
vtkParametricSpline * ParametricSpline
Definition: vtkSplineRepresentation.h:109
vtkCurveRepresentation.h
vtkSplineRepresentation::vtkSplineRepresentation
vtkSplineRepresentation()
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkSplineRepresentation::Resolution
int Resolution
Definition: vtkSplineRepresentation.h:113
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:64
vtkCellPicker
ray-cast cell picker for all kinds of Prop3Ds
Definition: vtkCellPicker.h:69
vtkSplineRepresentation
representation for a spline.
Definition: vtkSplineRepresentation.h:50
vtkSplineRepresentation::GetSummedLength
double GetSummedLength()