VTK  9.0.1
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 =========================================================================*/
27 #ifndef vtkRegularPolygonSource_h
28 #define vtkRegularPolygonSource_h
29 
30 #include "vtkFiltersSourcesModule.h" // For export macro
31 #include "vtkPolyDataAlgorithm.h"
32 
33 class VTKFILTERSSOURCES_EXPORT vtkRegularPolygonSource : public vtkPolyDataAlgorithm
34 {
35 public:
37 
40  static vtkRegularPolygonSource* New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
50  vtkSetClampMacro(NumberOfSides, int, 3, VTK_INT_MAX);
51  vtkGetMacro(NumberOfSides, int);
53 
55 
59  vtkSetVector3Macro(Center, double);
60  vtkGetVectorMacro(Center, double, 3);
62 
64 
69  vtkSetVector3Macro(Normal, double);
70  vtkGetVectorMacro(Normal, double, 3);
72 
74 
77  vtkSetMacro(Radius, double);
78  vtkGetMacro(Radius, double);
80 
82 
85  vtkSetMacro(GeneratePolygon, vtkTypeBool);
86  vtkGetMacro(GeneratePolygon, vtkTypeBool);
87  vtkBooleanMacro(GeneratePolygon, vtkTypeBool);
89 
91 
94  vtkSetMacro(GeneratePolyline, vtkTypeBool);
95  vtkGetMacro(GeneratePolyline, vtkTypeBool);
96  vtkBooleanMacro(GeneratePolyline, vtkTypeBool);
98 
100 
105  vtkSetMacro(OutputPointsPrecision, int);
106  vtkGetMacro(OutputPointsPrecision, int);
108 
109 protected:
112 
114 
116  double Center[3];
117  double Normal[3];
118  double Radius;
122 
123 private:
125  void operator=(const vtkRegularPolygonSource&) = delete;
126 };
127 
128 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkX3D::Normal
@ Normal
Definition: vtkX3D.h:51
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRegularPolygonSource::GeneratePolygon
vtkTypeBool GeneratePolygon
Definition: vtkRegularPolygonSource.h:119
vtkPolyDataAlgorithm.h
vtkRegularPolygonSource::GeneratePolyline
vtkTypeBool GeneratePolyline
Definition: vtkRegularPolygonSource.h:120
vtkRegularPolygonSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkRegularPolygonSource.h:121
vtkRegularPolygonSource
create a regular, n-sided polygon and/or polyline
Definition: vtkRegularPolygonSource.h:33
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkRegularPolygonSource::~vtkRegularPolygonSource
~vtkRegularPolygonSource() override
Definition: vtkRegularPolygonSource.h:111
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkRegularPolygonSource::Radius
double Radius
Definition: vtkRegularPolygonSource.h:118
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkRegularPolygonSource::NumberOfSides
int NumberOfSides
Definition: vtkRegularPolygonSource.h:115
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41