VTK  9.7.1
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 "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_7_0
18 #include "vtkFiltersSourcesModule.h" // For export macro
19 #include "vtkPolyDataAlgorithm.h"
20 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkPoints;
24 
25 class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkPolyPointSource : public vtkPolyDataAlgorithm
26 {
27 public:
28  static vtkPolyPointSource* New();
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
36  void SetNumberOfPoints(vtkIdType numPoints);
37  vtkIdType GetNumberOfPoints();
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 
67  vtkMTimeType GetMTime() override;
68 
69 protected:
71  ~vtkPolyPointSource() override;
72 
73  int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
74 
75  vtkPoints* Points;
76 
77 private:
78  vtkPolyPointSource(const vtkPolyPointSource&) = delete;
79  void operator=(const vtkPolyPointSource&) = delete;
80 };
81 
82 VTK_ABI_NAMESPACE_END
83 #endif
create points from a list of input points
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:318
int vtkIdType
Definition: vtkType.h:363
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO
#define VTK_DEPRECATED_IN_9_7_0(reason)
represent and manipulate 3D points
Definition: vtkPoints.h:30
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.