VTK
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 =========================================================================*/
32 #ifndef vtkRegularPolygonSource_h
33 #define vtkRegularPolygonSource_h
34 
35 #include "vtkFiltersSourcesModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 
39 {
40 public:
42 
44  static vtkRegularPolygonSource *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
52  vtkSetClampMacro(NumberOfSides,int,3,VTK_INT_MAX);
53  vtkGetMacro(NumberOfSides,int);
55 
57 
59  vtkSetVector3Macro(Center,double);
60  vtkGetVectorMacro(Center,double,3);
62 
64 
67  vtkSetVector3Macro(Normal,double);
68  vtkGetVectorMacro(Normal,double,3);
70 
72 
74  vtkSetMacro(Radius,double);
75  vtkGetMacro(Radius,double);
77 
79 
81  vtkSetMacro(GeneratePolygon,int);
82  vtkGetMacro(GeneratePolygon,int);
83  vtkBooleanMacro(GeneratePolygon,int);
85 
87 
89  vtkSetMacro(GeneratePolyline,int);
90  vtkGetMacro(GeneratePolyline,int);
91  vtkBooleanMacro(GeneratePolyline,int);
93 
95 
99  vtkSetMacro(OutputPointsPrecision,int);
100  vtkGetMacro(OutputPointsPrecision,int);
102 
103 protected:
106 
108 
110  double Center[3];
111  double Normal[3];
112  double Radius;
116 
117 private:
118  vtkRegularPolygonSource(const vtkRegularPolygonSource&); // Not implemented.
119  void operator=(const vtkRegularPolygonSource&); // Not implemented.
120 };
121 
122 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:132
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
create a regular, n-sided polygon and/or polyline
Store zero or more vtkInformation instances.