VTK  9.6.20260325
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
13
14#ifndef vtkPolyPointSource_h
15#define vtkPolyPointSource_h
16
17#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_7_0
18#include "vtkFiltersSourcesModule.h" // For export macro
20#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
21
22VTK_ABI_NAMESPACE_BEGIN
23class vtkPoints;
24
25class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkPolyPointSource : public vtkPolyDataAlgorithm
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
33
39
43 VTK_DEPRECATED_IN_9_7_0("Use Reserve")
44 void Resize(vtkIdType numPoints);
45
49 void Reserve(vtkIdType numPoints);
50
54 void SetPoint(vtkIdType id, double x, double y, double z);
55
57
60 void SetPoints(vtkPoints* points);
61 vtkGetObjectMacro(Points, vtkPoints);
63
68
69protected:
71 ~vtkPolyPointSource() override;
72
74
76
77private:
79 void operator=(const vtkPolyPointSource&) = delete;
80};
81
82VTK_ABI_NAMESPACE_END
83#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:140
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.
void Reserve(vtkIdType numPoints)
Reserve while preserving data.
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.
#define VTK_DEPRECATED_IN_9_7_0(reason)
int vtkIdType
Definition vtkType.h:363
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:318
#define VTK_MARSHALAUTO