VTK  9.3.20240424
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
87#ifndef vtkRegularPolygonSource_h
88#define vtkRegularPolygonSource_h
89
90#include "vtkFiltersSourcesModule.h" // For export macro
92
93VTK_ABI_NAMESPACE_BEGIN
94class VTKFILTERSSOURCES_EXPORT vtkRegularPolygonSource : public vtkPolyDataAlgorithm
95{
96public:
98
103 void PrintSelf(ostream& os, vtkIndent indent) override;
105
107
111 vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
112 vtkGetMacro(NumberOfSides, int);
114
116
120 vtkSetVector3Macro(Center, double);
121 vtkGetVectorMacro(Center, double, 3);
123
125
130 vtkSetVector3Macro(Normal, double);
131 vtkGetVectorMacro(Normal, double, 3);
133
135
138 vtkSetMacro(Radius, double);
139 vtkGetMacro(Radius, double);
141
143
146 vtkSetMacro(GeneratePolygon, vtkTypeBool);
147 vtkGetMacro(GeneratePolygon, vtkTypeBool);
148 vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
150
152
155 vtkSetMacro(GeneratePolyline, vtkTypeBool);
156 vtkGetMacro(GeneratePolyline, vtkTypeBool);
157 vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
159
161
166 vtkSetMacro(OutputPointsPrecision, int);
167 vtkGetMacro(OutputPointsPrecision, int);
169
170protected:
172 ~vtkRegularPolygonSource() override = default;
173
175
177 double Center[3];
178 double Normal[3];
179 double Radius;
183
184private:
186 void operator=(const vtkRegularPolygonSource&) = delete;
187};
188
189VTK_ABI_NAMESPACE_END
190#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:144