VTK
vtkPolyLineRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyLineRepresentation.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 =========================================================================*/
31 #ifndef vtkPolyLineRepresentation_h
32 #define vtkPolyLineRepresentation_h
33 
34 #include "vtkInteractionWidgetsModule.h" // For export macro
35 #include "vtkCurveRepresentation.h"
36 
37 class vtkPolyLineSource;
38 class vtkPoints;
39 class vtkPolyData;
40 
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
54 
56  virtual void SetNumberOfHandles(int npts);
57 
60 
63  double GetSummedLength();
64 
70 
72  virtual void BuildRepresentation();
73 
74 //BTX
75 protected:
78 
79  // The poly line source
81 
82  // Specialized method to insert a handle on the poly line.
83  virtual void InsertHandleOnLine(double* pos);
84 
85 private:
86  vtkPolyLineRepresentation(const vtkPolyLineRepresentation&); // Not implemented.
87  void operator=(const vtkPolyLineRepresentation&); // Not implemented.
88 //ETX
89 };
90 
91 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkPolyLineRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPolyLineRepresentation::New
static vtkPolyLineRepresentation * New()
vtkPolyLineRepresentation::GetPolyData
void GetPolyData(vtkPolyData *pd)
vtkCurveRepresentation
vtkWidgetRepresentation base class for a widget that represents an curve that connects control points...
Definition: vtkCurveRepresentation.h:49
vtkPolyLineRepresentation::~vtkPolyLineRepresentation
~vtkPolyLineRepresentation()
vtkPolyLineRepresentation::InsertHandleOnLine
virtual void InsertHandleOnLine(double *pos)
vtkPolyLineRepresentation::GetSummedLength
double GetSummedLength()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkInteractionWidgetsModule.h
vtkPolyLineRepresentation::SetNumberOfHandles
virtual void SetNumberOfHandles(int npts)
vtkgl::points
GLsizei const GLfloat * points
Definition: vtkgl.h:14786
vtkPolyLineRepresentation::vtkPolyLineRepresentation
vtkPolyLineRepresentation()
vtkPolyLineRepresentation
vtkWidgetRepresentation for a poly line.
Definition: vtkPolyLineRepresentation.h:42
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPolyLineRepresentation::BuildRepresentation
virtual void BuildRepresentation()
vtkPolyLineSource
create a poly line from a list of input points
Definition: vtkPolyLineSource.h:34
vtkCurveRepresentation.h
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkPolyLineRepresentation::PolyLineSource
vtkPolyLineSource * PolyLineSource
Definition: vtkPolyLineRepresentation.h:80
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
vtkPolyLineRepresentation::InitializeHandles
virtual void InitializeHandles(vtkPoints *points)
vtkPolyLineRepresentation::GetHandlePositions
virtual vtkDoubleArray * GetHandlePositions()