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=========================================================================*/
26#ifndef vtkPolyLineSource_h
27#define vtkPolyLineSource_h
28
29#include "vtkFiltersSourcesModule.h" // For export macro
31
32class vtkPoints;
33
34class VTKFILTERSSOURCES_EXPORT vtkPolyLineSource : public vtkPolyDataAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40
42
48
52 void Resize(vtkIdType numPoints);
53
57 void SetPoint(vtkIdType id, double x, double y, double z);
58
60
64 vtkGetObjectMacro(Points, vtkPoints);
66
68
71 vtkSetMacro(Closed, int);
72 vtkGetMacro(Closed, int);
73 vtkBooleanMacro(Closed, int);
75
76protected:
78 ~vtkPolyLineSource() VTK_OVERRIDE;
79
80 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector *) VTK_OVERRIDE;
81
82 vtkPoints* Points;
83
84 int Closed;
85
86private:
87 vtkPolyLineSource(const vtkPolyLineSource&) VTK_DELETE_FUNCTION;
88 void operator=(const vtkPolyLineSource&) VTK_DELETE_FUNCTION;
89};
90
91#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:40
Superclass for algorithms that produce only polydata as output.
create a poly line from a list of input points
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetNumberOfPoints(vtkIdType numPoints)
Set the number of points in the poly line.
void SetPoint(vtkIdType id, double x, double y, double z)
Set a point location.
vtkIdType GetNumberOfPoints()
static vtkPolyLineSource * New()
~vtkPolyLineSource() override
void SetPoints(vtkPoints *points)
Get the points.
void Resize(vtkIdType numPoints)
Resize while preserving data.
@ points
Definition: vtkX3D.h:446
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287