VTK
vtkPolyLineSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyLineSource.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 =========================================================================*/
25 #ifndef vtkPolyLineSource_h
26 #define vtkPolyLineSource_h
27 
28 #include "vtkFiltersSourcesModule.h" // For export macro
29 #include "vtkPolyDataAlgorithm.h"
30 
31 class vtkPoints;
32 
34 {
35 public:
36  static vtkPolyLineSource* New();
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
42  void SetNumberOfPoints(vtkIdType numPoints);
43  vtkIdType GetNumberOfPoints();
45 
47  void Resize(vtkIdType numPoints);
48 
50  void SetPoint(vtkIdType id, double x, double y, double z);
51 
53 
54  void SetPoints(vtkPoints* points);
55  vtkGetObjectMacro(Points, vtkPoints);
57 
59 
61  vtkSetMacro(Closed, int);
62  vtkGetMacro(Closed, int);
63  vtkBooleanMacro(Closed, int);
65 
66 protected:
69 
71 
73 
74  int Closed;
75 
76 private:
77  vtkPolyLineSource(const vtkPolyLineSource&); // Not implemented.
78  void operator=(const vtkPolyLineSource&); // Not implemented.
79 };
80 
81 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int vtkIdType
Definition: vtkType.h:275
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:38
create a poly line from a list of input points