VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkConeSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkConeSource.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 =========================================================================*/
35 #ifndef __vtkConeSource_h
36 #define __vtkConeSource_h
37 
38 #include "vtkFiltersSourcesModule.h" // For export macro
39 #include "vtkPolyDataAlgorithm.h"
40 
41 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
42 
43 class VTKFILTERSSOURCES_EXPORT vtkConeSource : public vtkPolyDataAlgorithm
44 {
45 public:
46  vtkTypeMacro(vtkConeSource,vtkPolyDataAlgorithm);
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
52  static vtkConeSource *New();
53 
55 
57  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
58  vtkGetMacro(Height,double);
60 
62 
63  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX)
64  vtkGetMacro(Radius,double);
66 
68 
69  vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE)
70  vtkGetMacro(Resolution,int);
72 
74 
77  vtkSetVector3Macro(Center,double);
78  vtkGetVectorMacro(Center,double,3);
80 
82 
85  vtkSetVector3Macro(Direction,double);
86  vtkGetVectorMacro(Direction,double,3);
88 
90 
94  void SetAngle (double angle);
95  double GetAngle ();
97 
99 
100  vtkSetMacro(Capping,int);
101  vtkGetMacro(Capping,int);
102  vtkBooleanMacro(Capping,int);
104 
105 protected:
106  vtkConeSource(int res=6);
108 
109  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
110  int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
111 
112  double Height;
113  double Radius;
115  int Capping;
116  double Center[3];
117  double Direction[3];
118 
119 private:
120  vtkConeSource(const vtkConeSource&); // Not implemented.
121  void operator=(const vtkConeSource&); // Not implemented.
122 };
123 
124 #endif
125 
126 
generate polygonal cone
Definition: vtkConeSource.h:43