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 "vtkPolyDataAlgorithm.h"
36 
38 {
39 public:
41 
43  static vtkRegularPolygonSource *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
51  vtkSetClampMacro(NumberOfSides,int,3,VTK_LARGE_INTEGER);
52  vtkGetMacro(NumberOfSides,int);
54 
56 
58  vtkSetVector3Macro(Center,double);
59  vtkGetVectorMacro(Center,double,3);
61 
63 
66  vtkSetVector3Macro(Normal,double);
67  vtkGetVectorMacro(Normal,double,3);
69 
71 
73  vtkSetMacro(Radius,double);
74  vtkGetMacro(Radius,double);
76 
78 
80  vtkSetMacro(GeneratePolygon,int);
81  vtkGetMacro(GeneratePolygon,int);
82  vtkBooleanMacro(GeneratePolygon,int);
84 
86 
88  vtkSetMacro(GeneratePolyline,int);
89  vtkGetMacro(GeneratePolyline,int);
90  vtkBooleanMacro(GeneratePolyline,int);
92 
93 protected:
96 
99 
101  double Center[3];
102  double Normal[3];
103  double Radius;
106 
107 private:
108  vtkRegularPolygonSource(const vtkRegularPolygonSource&); // Not implemented.
109  void operator=(const vtkRegularPolygonSource&); // Not implemented.
110 };
111 
112 #endif
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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:37
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
create a regular, n-sided polygon and/or polyline
Store zero or more vtkInformation instances.
#define VTK_LARGE_INTEGER
Definition: vtkType.h:148