30 #ifndef vtkSplineRepresentation_h 31 #define vtkSplineRepresentation_h 49 #define VTK_PROJECTION_YZ 0 50 #define VTK_PROJECTION_XZ 1 51 #define VTK_PROJECTION_XY 2 52 #define VTK_PROJECTION_OBLIQUE 3 95 { this->SetProjectionNormal(0); }
97 { this->SetProjectionNormal(1); }
99 { this->SetProjectionNormal(2); }
101 { this->SetProjectionNormal(3); }
109 void SetProjectionPosition(
double position);
138 virtual void SetNumberOfHandles(
int npts);
163 void SetHandlePosition(
int handle,
double x,
double y,
double z);
164 void SetHandlePosition(
int handle,
double xyz[3]);
165 void GetHandlePosition(
int handle,
double xyz[3]);
166 double* GetHandlePosition(
int handle);
176 void SetClosed(
int closed);
189 double GetSummedLength();
220 void SetLineColor(
double r,
double g,
double b);
227 double LastEventPosition[3];
237 void ProjectPointsToPlane();
238 void ProjectPointsToOrthoPlane();
239 void ProjectPointsToObliquePlane();
249 void HighlightLine(
int highlight);
256 int HighlightHandle(
vtkProp *prop);
257 virtual void SizeHandles();
258 void InsertHandleOnLine(
double* pos);
259 void EraseHandle(
const int&);
264 double LastPickPosition[3];
272 void MovePoint(
double *p1,
double *p2);
273 void Scale(
double *p1,
double *p2,
int X,
int Y);
274 void Translate(
double *p1,
double *p2);
275 void Spin(
double *p1,
double *p2,
double *vpn);
286 void CreateDefaultProperties();
290 void CalculateCentroid();
abstract superclass for all actors, volumes and annotations
void SetProjectionNormalToZAxes()
vtkWidgetRepresentation for a spline.
GLboolean GLboolean GLboolean b
represents an object (geometry & properties) in a rendered scene
double ProjectionPosition
abstract specification for Viewports
represent surface properties of a geometric object
#define vtkGetMacro(name, type)
#define vtkSetClampMacro(name, type, min, max)
#define VTK_PROJECTION_OBLIQUE
concrete dataset represents vertices, lines, polygons, and triangle strips
#define VTK_PROJECTION_YZ
GLdouble GLdouble GLdouble r
GLint GLint GLint GLint GLint GLint y
#define vtkTypeMacro(thisClass, superclass)
dynamic, self-adjusting array of double
window superclass for vtkRenderWindow
vtkCellPicker * LinePicker
GLint GLint GLint GLint GLint x
create a polygonal sphere centered at the origin
parametric function for 1D interpolating splines
a simple class to control print indentation
vtkSphereSource ** HandleGeometry
vtkProperty * SelectedHandleProperty
vtkProperty * SelectedLineProperty
#define vtkGetObjectMacro(name, type)
create an array of quadrilaterals located in a plane
vtkProperty * HandleProperty
vtkProperty * LineProperty
vtkParametricFunctionSource * ParametricFunctionSource
GLsizei const GLfloat * points
ray-cast cell picker for all kinds of Prop3Ds
#define vtkBooleanMacro(name, type)
vtkCellPicker * HandlePicker
vtkParametricSpline * ParametricSpline
vtkPlaneSource * PlaneSource
void SetProjectionNormalToOblique()
void SetProjectionNormalToYAxes()
represent and manipulate 3D points
void SetProjectionNormalToXAxes()
tessellate parametric functions
#define vtkSetMacro(name, type)