VTK  9.6.1
vtkRegularPolygonSource.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
20
21#ifndef vtkRegularPolygonSource_h
22#define vtkRegularPolygonSource_h
23
24#include "vtkFiltersSourcesModule.h" // For export macro
26#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
27
28VTK_ABI_NAMESPACE_BEGIN
29class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkRegularPolygonSource : public vtkPolyDataAlgorithm
30{
31public:
33
38 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
46 vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
47 vtkGetMacro(NumberOfSides, int);
49
51
55 vtkSetVector3Macro(Center, double);
56 vtkGetVectorMacro(Center, double, 3);
58
60
65 vtkSetVector3Macro(Normal, double);
66 vtkGetVectorMacro(Normal, double, 3);
68
70
73 vtkSetMacro(Radius, double);
74 vtkGetMacro(Radius, double);
76
78
83 vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
85
87
92 vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
94
96
101 vtkSetMacro(OutputPointsPrecision, int);
102 vtkGetMacro(OutputPointsPrecision, int);
104
105protected:
107 ~vtkRegularPolygonSource() override = default;
108
110
112 double Center[3];
113 double Normal[3];
114 double Radius;
118
119private:
121 void operator=(const vtkRegularPolygonSource&) = delete;
122};
123
124VTK_ABI_NAMESPACE_END
125#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
~vtkRegularPolygonSource() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkRegularPolygonSource * New()
Standard methods for instantiation, obtaining type and printing instance values.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type and printing instance values.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_INT_MAX
Definition vtkType.h:197
#define VTK_MARSHALAUTO