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
27#ifndef vtkRegularPolygonSource_h
28#define vtkRegularPolygonSource_h
29
30#include "vtkFiltersSourcesModule.h" // For export macro
32
33VTK_ABI_NAMESPACE_BEGIN
34class VTKFILTERSSOURCES_EXPORT vtkRegularPolygonSource : public vtkPolyDataAlgorithm
35{
36public:
38
43 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
51 vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
52 vtkGetMacro(NumberOfSides, int);
54
56
60 vtkSetVector3Macro(Center, double);
61 vtkGetVectorMacro(Center, double, 3);
63
65
70 vtkSetVector3Macro(Normal, double);
71 vtkGetVectorMacro(Normal, double, 3);
73
75
78 vtkSetMacro(Radius, double);
79 vtkGetMacro(Radius, double);
81
83
86 vtkSetMacro(GeneratePolygon, vtkTypeBool);
87 vtkGetMacro(GeneratePolygon, vtkTypeBool);
88 vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
90
92
95 vtkSetMacro(GeneratePolyline, vtkTypeBool);
96 vtkGetMacro(GeneratePolyline, vtkTypeBool);
97 vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
99
101
106 vtkSetMacro(OutputPointsPrecision, int);
107 vtkGetMacro(OutputPointsPrecision, int);
109
110protected:
112 ~vtkRegularPolygonSource() override = default;
113
115
117 double Center[3];
118 double Normal[3];
119 double Radius;
123
124private:
126 void operator=(const vtkRegularPolygonSource&) = delete;
127};
128
129VTK_ABI_NAMESPACE_END
130#endif
a simple class to control print indentation
Definition vtkIndent.h:38
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