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=========================================================================*/
36#ifndef vtkRegularPolygonSource_h
37#define vtkRegularPolygonSource_h
38
39#include "vtkFiltersSourcesModule.h" // For export macro
41
42class VTKFILTERSSOURCES_EXPORT vtkRegularPolygonSource : public vtkPolyDataAlgorithm
43{
44public:
46
51 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
59 vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
60 vtkGetMacro(NumberOfSides, int);
62
64
68 vtkSetVector3Macro(Center, double);
69 vtkGetVectorMacro(Center, double, 3);
71
73
78 vtkSetVector3Macro(Normal, double);
79 vtkGetVectorMacro(Normal, double, 3);
81
83
86 vtkSetMacro(Radius, double);
87 vtkGetMacro(Radius, double);
89
91
94 vtkSetMacro(GeneratePolygon, vtkTypeBool);
95 vtkGetMacro(GeneratePolygon, vtkTypeBool);
96 vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
98
100
103 vtkSetMacro(GeneratePolyline, vtkTypeBool);
104 vtkGetMacro(GeneratePolyline, vtkTypeBool);
105 vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
107
109
114 vtkSetMacro(OutputPointsPrecision, int);
115 vtkGetMacro(OutputPointsPrecision, int);
117
118protected:
120 ~vtkRegularPolygonSource() override = default;
121
123
125 double Center[3];
126 double Normal[3];
127 double Radius;
131
132private:
134 void operator=(const vtkRegularPolygonSource&) = delete;
135};
136
137#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
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