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 
53  void GetPolyData(vtkPolyData *pd);
54 
56  virtual void SetNumberOfHandles(int npts);
57 
60 
63  double GetSummedLength();
64 
69  virtual void InitializeHandles(vtkPoints* points);
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
vtkWidgetRepresentation base class for a widget that represents an curve that connects control points...
virtual void GetPolyData(vtkPolyData *pd)=0
virtual void BuildRepresentation()=0
virtual void InitializeHandles(vtkPoints *points)=0
virtual void InsertHandleOnLine(double *pos)=0
virtual double GetSummedLength()=0
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
vtkWidgetRepresentation for a poly line.
virtual void SetNumberOfHandles(int npts)=0
dynamic, self-adjusting array of double
#define VTKINTERACTIONWIDGETS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual vtkDoubleArray * GetHandlePositions()=0
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
represent and manipulate 3D points
Definition: vtkPoints.h:38
create a poly line from a list of input points