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 
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 
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
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:132
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkX3D::Normal
@ Normal
Definition: vtkX3D.h:45
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkFiltersSourcesModule.h
vtkRegularPolygonSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkPolyDataAlgorithm.h
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkRegularPolygonSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkRegularPolygonSource.h:115
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkRegularPolygonSource::GeneratePolygon
int GeneratePolygon
Definition: vtkRegularPolygonSource.h:113
vtkRegularPolygonSource
create a regular, n-sided polygon and/or polyline
Definition: vtkRegularPolygonSource.h:39
vtkRegularPolygonSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkRegularPolygonSource::Radius
double Radius
Definition: vtkRegularPolygonSource.h:112
vtkRegularPolygonSource::New
static vtkRegularPolygonSource * New()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkRegularPolygonSource::NumberOfSides
int NumberOfSides
Definition: vtkRegularPolygonSource.h:109
vtkRegularPolygonSource::GeneratePolyline
int GeneratePolyline
Definition: vtkRegularPolygonSource.h:114
vtkRegularPolygonSource::~vtkRegularPolygonSource
~vtkRegularPolygonSource()
Definition: vtkRegularPolygonSource.h:105
vtkRegularPolygonSource::vtkRegularPolygonSource
vtkRegularPolygonSource()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44