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 =========================================================================*/
32 #ifndef vtkPolyLineRepresentation_h
33 #define vtkPolyLineRepresentation_h
34 
35 #include "vtkInteractionWidgetsModule.h" // For export macro
36 #include "vtkCurveRepresentation.h"
37 
38 class vtkPolyLineSource;
39 class vtkPoints;
40 class vtkPolyData;
41 
42 class VTKINTERACTIONWIDGETS_EXPORT vtkPolyLineRepresentation : public vtkCurveRepresentation
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
58 
62  virtual void SetNumberOfHandles(int npts);
63 
68 
73  double GetSummedLength();
74 
82 
86  virtual void BuildRepresentation();
87 
88 protected:
91 
92  // The poly line source
94 
95  // Specialized method to insert a handle on the poly line.
96  virtual void InsertHandleOnLine(double* pos);
97 
98 private:
99  vtkPolyLineRepresentation(const vtkPolyLineRepresentation&) VTK_DELETE_FUNCTION;
100  void operator=(const vtkPolyLineRepresentation&) VTK_DELETE_FUNCTION;
101 
102 };
103 
104 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkPolyLineRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPolyLineRepresentation::New
static vtkPolyLineRepresentation * New()
vtkPolyLineRepresentation::GetPolyData
void GetPolyData(vtkPolyData *pd)
Grab the polydata (including points) that defines the poly line.
vtkCurveRepresentation
vtkWidgetRepresentation base class for a widget that represents an curve that connects control points...
Definition: vtkCurveRepresentation.h:50
vtkPolyLineRepresentation::~vtkPolyLineRepresentation
~vtkPolyLineRepresentation()
vtkPolyLineRepresentation::InsertHandleOnLine
virtual void InsertHandleOnLine(double *pos)
vtkPolyLineRepresentation::GetSummedLength
double GetSummedLength()
Get the true length of the poly line.
vtkPolyLineRepresentation::SetNumberOfHandles
virtual void SetNumberOfHandles(int npts)
Set the number of handles for this widget.
vtkPolyLineRepresentation::vtkPolyLineRepresentation
vtkPolyLineRepresentation()
vtkPolyLineRepresentation
vtkWidgetRepresentation for a poly line.
Definition: vtkPolyLineRepresentation.h:43
vtkX3D::points
@ points
Definition: vtkX3D.h:446
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPolyLineRepresentation::BuildRepresentation
virtual void BuildRepresentation()
Build the representation for the poly line.
vtkPolyLineSource
create a poly line from a list of input points
Definition: vtkPolyLineSource.h:35
vtkCurveRepresentation.h
vtkPolyLineRepresentation::PolyLineSource
vtkPolyLineSource * PolyLineSource
Definition: vtkPolyLineRepresentation.h:93
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:42
vtkPolyLineRepresentation::InitializeHandles
virtual void InitializeHandles(vtkPoints *points)
Convenience method to allocate and set the handles from a vtkPoints instance.
vtkPolyLineRepresentation::GetHandlePositions
virtual vtkDoubleArray * GetHandlePositions()
Get the positions of the handles.