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 =========================================================================*/
30 #ifndef vtkRegularPolygonSource_h
31 #define vtkRegularPolygonSource_h
32 
33 #include "vtkFiltersSourcesModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
36 class VTKFILTERSSOURCES_EXPORT vtkRegularPolygonSource : public vtkPolyDataAlgorithm
37 {
38 public:
40 
43  static vtkRegularPolygonSource* New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
53  vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
54  vtkGetMacro(NumberOfSides, int);
56 
58 
62  vtkSetVector3Macro(Center, double);
63  vtkGetVectorMacro(Center, double, 3);
65 
67 
72  vtkSetVector3Macro(Normal, double);
73  vtkGetVectorMacro(Normal, double, 3);
75 
77 
80  vtkSetMacro(Radius, double);
81  vtkGetMacro(Radius, double);
83 
85 
88  vtkSetMacro(GeneratePolygon, vtkTypeBool);
89  vtkGetMacro(GeneratePolygon, vtkTypeBool);
90  vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
92 
94 
97  vtkSetMacro(GeneratePolyline, vtkTypeBool);
98  vtkGetMacro(GeneratePolyline, vtkTypeBool);
99  vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
101 
103 
108  vtkSetMacro(OutputPointsPrecision, int);
109  vtkGetMacro(OutputPointsPrecision, int);
111 
112 protected:
114  ~vtkRegularPolygonSource() override = default;
115 
117 
119  double Center[3];
120  double Normal[3];
121  double Radius;
125 
126 private:
128  void operator=(const vtkRegularPolygonSource&) = delete;
129 };
130 
131 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:155
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
create a regular, n-sided polygon and/or polyline
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.