VTK  9.5.20250910
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
90#ifndef vtkRegularPolygonSource_h
91#define vtkRegularPolygonSource_h
92
93#include "vtkFiltersSourcesModule.h" // For export macro
95#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
96
97VTK_ABI_NAMESPACE_BEGIN
98class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkRegularPolygonSource : public vtkPolyDataAlgorithm
99{
100public:
102
107 void PrintSelf(ostream& os, vtkIndent indent) override;
109
111
115 vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
116 vtkGetMacro(NumberOfSides, int);
118
120
124 vtkSetVector3Macro(Center, double);
125 vtkGetVectorMacro(Center, double, 3);
127
129
134 vtkSetVector3Macro(Normal, double);
135 vtkGetVectorMacro(Normal, double, 3);
137
139
142 vtkSetMacro(Radius, double);
143 vtkGetMacro(Radius, double);
145
147
150 vtkSetMacro(GeneratePolygon, vtkTypeBool);
151 vtkGetMacro(GeneratePolygon, vtkTypeBool);
152 vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
154
156
159 vtkSetMacro(GeneratePolyline, vtkTypeBool);
160 vtkGetMacro(GeneratePolyline, vtkTypeBool);
161 vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
163
165
170 vtkSetMacro(OutputPointsPrecision, int);
171 vtkGetMacro(OutputPointsPrecision, int);
173
174protected:
176 ~vtkRegularPolygonSource() override = default;
177
179
181 double Center[3];
182 double Normal[3];
183 double Radius;
187
188private:
190 void operator=(const vtkRegularPolygonSource&) = delete;
191};
192
193VTK_ABI_NAMESPACE_END
194#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
create a regular, n-sided polygon and/or polyline
~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:161
#define VTK_MARSHALAUTO