VTK  9.2.6
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 =========================================================================*/
39 #ifndef vtkRegularPolygonSource_h
40 #define vtkRegularPolygonSource_h
41 
42 #include "vtkFiltersSourcesModule.h" // For export macro
43 #include "vtkPolyDataAlgorithm.h"
44 
45 class VTKFILTERSSOURCES_EXPORT vtkRegularPolygonSource : public vtkPolyDataAlgorithm
46 {
47 public:
49 
54  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
58 
62  vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
63  vtkGetMacro(NumberOfSides, int);
65 
67 
71  vtkSetVector3Macro(Center, double);
72  vtkGetVectorMacro(Center, double, 3);
74 
76 
81  vtkSetVector3Macro(Normal, double);
82  vtkGetVectorMacro(Normal, double, 3);
84 
86 
89  vtkSetMacro(Radius, double);
90  vtkGetMacro(Radius, double);
92 
94 
97  vtkSetMacro(GeneratePolygon, vtkTypeBool);
98  vtkGetMacro(GeneratePolygon, vtkTypeBool);
99  vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
101 
103 
106  vtkSetMacro(GeneratePolyline, vtkTypeBool);
107  vtkGetMacro(GeneratePolyline, vtkTypeBool);
108  vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
110 
112 
117  vtkSetMacro(OutputPointsPrecision, int);
118  vtkGetMacro(OutputPointsPrecision, int);
120 
121 protected:
123  ~vtkRegularPolygonSource() override = default;
124 
126 
128  double Center[3];
129  double Normal[3];
130  double Radius;
134 
135 private:
137  void operator=(const vtkRegularPolygonSource&) = delete;
138 };
139 
140 #endif
a simple class to control print indentation
Definition: vtkIndent.h:49
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