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 =========================================================================*/
36 #ifndef vtkConeSource_h
37 #define vtkConeSource_h
38 
39 #include "vtkFiltersSourcesModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
42 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
43 
44 class VTKFILTERSSOURCES_EXPORT vtkConeSource : public vtkPolyDataAlgorithm
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 
55  static vtkConeSource *New();
56 
58 
62  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
63  vtkGetMacro(Height,double);
65 
67 
70  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX)
71  vtkGetMacro(Radius,double);
73 
75 
78  vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE)
79  vtkGetMacro(Resolution,int);
81 
83 
88  vtkSetVector3Macro(Center,double);
89  vtkGetVectorMacro(Center,double,3);
91 
93 
98  vtkSetVector3Macro(Direction,double);
99  vtkGetVectorMacro(Direction,double,3);
101 
103 
110  void SetAngle (double angle);
111  double GetAngle ();
113 
115 
118  vtkSetMacro(Capping,int);
119  vtkGetMacro(Capping,int);
120  vtkBooleanMacro(Capping,int);
122 
124 
129  vtkSetMacro(OutputPointsPrecision,int);
130  vtkGetMacro(OutputPointsPrecision,int);
132 
133 protected:
134  vtkConeSource(int res=6);
135  ~vtkConeSource() VTK_OVERRIDE {}
136 
138  int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
139 
140  double Height;
141  double Radius;
142  int Resolution;
143  int Capping;
144  double Center[3];
145  double Direction[3];
146  int OutputPointsPrecision;
147 
148 private:
149  vtkConeSource(const vtkConeSource&) VTK_DELETE_FUNCTION;
150  void operator=(const vtkConeSource&) VTK_DELETE_FUNCTION;
151 };
152 
153 #endif
154 
155 
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
generate polygonal cone
Definition: vtkConeSource.h:44
#define VTK_CELL_SIZE
Definition: vtkCell.h:43
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.