VTK  9.0.1
vtkPolyPointSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyPointSource.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 =========================================================================*/
23 #ifndef vtkPolyPointSource_h
24 #define vtkPolyPointSource_h
25 
26 #include "vtkFiltersSourcesModule.h" // For export macro
27 #include "vtkPolyDataAlgorithm.h"
28 
29 class vtkPoints;
30 
31 class VTKFILTERSSOURCES_EXPORT vtkPolyPointSource : public vtkPolyDataAlgorithm
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  void SetNumberOfPoints(vtkIdType numPoints);
45 
49  void Resize(vtkIdType numPoints);
50 
54  void SetPoint(vtkIdType id, double x, double y, double z);
55 
57 
61  vtkGetObjectMacro(Points, vtkPoints);
63 
67  vtkMTimeType GetMTime() override;
68 
69 protected:
71  ~vtkPolyPointSource() override;
72 
74 
76 
77 private:
78  vtkPolyPointSource(const vtkPolyPointSource&) = delete;
79  void operator=(const vtkPolyPointSource&) = delete;
80 };
81 
82 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:34
Superclass for algorithms that produce only polydata as output.
create points from a list of input points
void SetNumberOfPoints(vtkIdType numPoints)
Set the number of points in the poly line.
void SetPoints(vtkPoints *points)
Get the points.
vtkIdType GetNumberOfPoints()
~vtkPolyPointSource() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetPoint(vtkIdType id, double x, double y, double z)
Set a point location.
vtkMTimeType GetMTime() override
Get the mtime plus consider its Points.
static vtkPolyPointSource * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void Resize(vtkIdType numPoints)
Resize while preserving data.
@ points
Definition: vtkX3D.h:452
int vtkIdType
Definition: vtkType.h:338
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293