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 "vtkPolyDataAlgorithm.h"
39 
40 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
41 
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
51  static vtkConeSource *New();
52 
54 
56  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
57  vtkGetMacro(Height,double);
59 
61 
62  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX)
63  vtkGetMacro(Radius,double);
65 
67 
68  vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE)
69  vtkGetMacro(Resolution,int);
71 
73 
76  vtkSetVector3Macro(Center,double);
77  vtkGetVectorMacro(Center,double,3);
79 
81 
84  vtkSetVector3Macro(Direction,double);
85  vtkGetVectorMacro(Direction,double,3);
87 
89 
93  void SetAngle (double angle);
94  double GetAngle ();
96 
98 
99  vtkSetMacro(Capping,int);
100  vtkGetMacro(Capping,int);
101  vtkBooleanMacro(Capping,int);
103 
104 protected:
105  vtkConeSource(int res=6);
107 
110 
111  double Height;
112  double Radius;
114  int Capping;
115  double Center[3];
116  double Direction[3];
117 
118 private:
119  vtkConeSource(const vtkConeSource&); // Not implemented.
120  void operator=(const vtkConeSource&); // Not implemented.
121 };
122 
123 #endif
124 
125 
#define VTK_GRAPHICS_EXPORT
#define VTK_DOUBLE_MAX
Definition: vtkType.h:133
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
generate polygonal cone
Definition: vtkConeSource.h:42
#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:37
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.