VTK  9.4.20250509
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
96VTK_ABI_NAMESPACE_BEGIN
97class VTKFILTERSSOURCES_EXPORT vtkRegularPolygonSource : public vtkPolyDataAlgorithm
98{
99public:
101
106 void PrintSelf(ostream& os, vtkIndent indent) override;
108
110
114 vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
115 vtkGetMacro(NumberOfSides, int);
117
119
123 vtkSetVector3Macro(Center, double);
124 vtkGetVectorMacro(Center, double, 3);
126
128
133 vtkSetVector3Macro(Normal, double);
134 vtkGetVectorMacro(Normal, double, 3);
136
138
141 vtkSetMacro(Radius, double);
142 vtkGetMacro(Radius, double);
144
146
149 vtkSetMacro(GeneratePolygon, vtkTypeBool);
150 vtkGetMacro(GeneratePolygon, vtkTypeBool);
151 vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
153
155
158 vtkSetMacro(GeneratePolyline, vtkTypeBool);
159 vtkGetMacro(GeneratePolyline, vtkTypeBool);
160 vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
162
164
169 vtkSetMacro(OutputPointsPrecision, int);
170 vtkGetMacro(OutputPointsPrecision, int);
172
173protected:
175 ~vtkRegularPolygonSource() override = default;
176
178
180 double Center[3];
181 double Normal[3];
182 double Radius;
186
187private:
189 void operator=(const vtkRegularPolygonSource&) = delete;
190};
191
192VTK_ABI_NAMESPACE_END
193#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