VTK  9.3.0
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
18#ifndef vtkRegularPolygonSource_h
19#define vtkRegularPolygonSource_h
20
21#include "vtkFiltersSourcesModule.h" // For export macro
23
24VTK_ABI_NAMESPACE_BEGIN
25class VTKFILTERSSOURCES_EXPORT vtkRegularPolygonSource : public vtkPolyDataAlgorithm
26{
27public:
29
34 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
42 vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
43 vtkGetMacro(NumberOfSides, int);
45
47
51 vtkSetVector3Macro(Center, double);
52 vtkGetVectorMacro(Center, double, 3);
54
56
61 vtkSetVector3Macro(Normal, double);
62 vtkGetVectorMacro(Normal, double, 3);
64
66
69 vtkSetMacro(Radius, double);
70 vtkGetMacro(Radius, double);
72
74
77 vtkSetMacro(GeneratePolygon, vtkTypeBool);
78 vtkGetMacro(GeneratePolygon, vtkTypeBool);
79 vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
81
83
86 vtkSetMacro(GeneratePolyline, vtkTypeBool);
87 vtkGetMacro(GeneratePolyline, vtkTypeBool);
88 vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
90
92
97 vtkSetMacro(OutputPointsPrecision, int);
98 vtkGetMacro(OutputPointsPrecision, int);
100
101protected:
103 ~vtkRegularPolygonSource() override = default;
104
106
108 double Center[3];
109 double Normal[3];
110 double Radius;
114
115private:
117 void operator=(const vtkRegularPolygonSource&) = delete;
118};
119
120VTK_ABI_NAMESPACE_END
121#endif
a simple class to control print indentation
Definition vtkIndent.h:29
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