VTK
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 
44 {
45 public:
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 
106 
110  vtkSetMacro(OutputPointsPrecision,int);
111  vtkGetMacro(OutputPointsPrecision,int);
113 
114 protected:
115  vtkConeSource(int res=6);
117 
120 
121  double Height;
122  double Radius;
124  int Capping;
125  double Center[3];
126  double Direction[3];
128 
129 private:
130  vtkConeSource(const vtkConeSource&); // Not implemented.
131  void operator=(const vtkConeSource&); // Not implemented.
132 };
133 
134 #endif
135 
136 
#define VTK_DOUBLE_MAX
Definition: vtkType.h:140
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
generate polygonal cone
Definition: vtkConeSource.h:43
#define VTK_CELL_SIZE
Definition: vtkCell.h:42
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
int OutputPointsPrecision
Store zero or more vtkInformation instances.