VTK  9.3.20240416
vtkPolyPointSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkPolyPointSource_h
15 #define vtkPolyPointSource_h
16 
17 #include "vtkFiltersSourcesModule.h" // For export macro
18 #include "vtkPolyDataAlgorithm.h"
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkPoints;
22 
23 class VTKFILTERSSOURCES_EXPORT vtkPolyPointSource : public vtkPolyDataAlgorithm
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
34  void SetNumberOfPoints(vtkIdType numPoints);
37 
41  void Resize(vtkIdType numPoints);
42 
46  void SetPoint(vtkIdType id, double x, double y, double z);
47 
49 
53  vtkGetObjectMacro(Points, vtkPoints);
55 
59  vtkMTimeType GetMTime() override;
60 
61 protected:
63  ~vtkPolyPointSource() override;
64 
66 
68 
69 private:
70  vtkPolyPointSource(const vtkPolyPointSource&) = delete;
71  void operator=(const vtkPolyPointSource&) = delete;
72 };
73 
74 VTK_ABI_NAMESPACE_END
75 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:139
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()
Set the number of points in the poly line.
~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:446
int vtkIdType
Definition: vtkType.h:315
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270