VTK  9.1.0
vtkRegularPolygonSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkRegularPolygonSource.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
96#ifndef vtkRegularPolygonSource_h
97#define vtkRegularPolygonSource_h
98
99#include "vtkFiltersSourcesModule.h" // For export macro
100#include "vtkPolyDataAlgorithm.h"
101
102class VTKFILTERSSOURCES_EXPORT vtkRegularPolygonSource : public vtkPolyDataAlgorithm
103{
104public:
106
111 void PrintSelf(ostream& os, vtkIndent indent) override;
113
115
119 vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
120 vtkGetMacro(NumberOfSides, int);
122
124
128 vtkSetVector3Macro(Center, double);
129 vtkGetVectorMacro(Center, double, 3);
131
133
138 vtkSetVector3Macro(Normal, double);
139 vtkGetVectorMacro(Normal, double, 3);
141
143
146 vtkSetMacro(Radius, double);
147 vtkGetMacro(Radius, double);
149
151
154 vtkSetMacro(GeneratePolygon, vtkTypeBool);
155 vtkGetMacro(GeneratePolygon, vtkTypeBool);
156 vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
158
160
163 vtkSetMacro(GeneratePolyline, vtkTypeBool);
164 vtkGetMacro(GeneratePolyline, vtkTypeBool);
165 vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
167
169
174 vtkSetMacro(OutputPointsPrecision, int);
175 vtkGetMacro(OutputPointsPrecision, int);
177
178protected:
180 ~vtkRegularPolygonSource() override = default;
181
183
185 double Center[3];
186 double Normal[3];
187 double Radius;
191
192private:
194 void operator=(const vtkRegularPolygonSource&) = delete;
195};
196
197#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
@ Normal
Definition: vtkX3D.h:51
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_INT_MAX
Definition: vtkType.h:155