VTK  9.3.20240831
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
19
20VTK_ABI_NAMESPACE_BEGIN
21class vtkPoints;
22
23class VTKFILTERSSOURCES_EXPORT vtkPolyPointSource : public vtkPolyDataAlgorithm
24{
25public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
31
37
41 void Resize(vtkIdType numPoints);
42
46 void SetPoint(vtkIdType id, double x, double y, double z);
47
49
52 void SetPoints(vtkPoints* points);
53 vtkGetObjectMacro(Points, vtkPoints);
55
60
61protected:
64
66
68
69private:
71 void operator=(const vtkPolyPointSource&) = delete;
72};
73
74VTK_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.
int vtkIdType
Definition vtkType.h:315
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270