VTK  9.5.2
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
20
21#ifndef vtkRegularPolygonSource_h
22#define vtkRegularPolygonSource_h
23
24#include "vtkFiltersSourcesModule.h" // For export macro
26
27VTK_ABI_NAMESPACE_BEGIN
28class VTKFILTERSSOURCES_EXPORT vtkRegularPolygonSource : public vtkPolyDataAlgorithm
29{
30public:
32
37 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
45 vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
46 vtkGetMacro(NumberOfSides, int);
48
50
54 vtkSetVector3Macro(Center, double);
55 vtkGetVectorMacro(Center, double, 3);
57
59
64 vtkSetVector3Macro(Normal, double);
65 vtkGetVectorMacro(Normal, double, 3);
67
69
72 vtkSetMacro(Radius, double);
73 vtkGetMacro(Radius, double);
75
77
82 vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
84
86
91 vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
93
95
100 vtkSetMacro(OutputPointsPrecision, int);
101 vtkGetMacro(OutputPointsPrecision, int);
103
104protected:
106 ~vtkRegularPolygonSource() override = default;
107
109
111 double Center[3];
112 double Normal[3];
113 double Radius;
117
118private:
120 void operator=(const vtkRegularPolygonSource&) = delete;
121};
122
123VTK_ABI_NAMESPACE_END
124#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
~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