VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
109 
111  double Center[3];
112  double Normal[3];
113  double Radius;
117 
118 private:
119  vtkRegularPolygonSource(const vtkRegularPolygonSource&); // Not implemented.
120  void operator=(const vtkRegularPolygonSource&); // Not implemented.
121 };
122 
123 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:131
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:133
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
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
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSSOURCES_EXPORT
create a regular, n-sided polygon and/or polyline
Store zero or more vtkInformation instances.
#define vtkBooleanMacro(name, type)
Definition: vtkSetGet.h:234
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:277
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:414
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69