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) 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,vtkTypeBool);
119  vtkGetMacro(Capping,vtkTypeBool);
120  vtkBooleanMacro(Capping,vtkTypeBool);
122 
124 
129  vtkSetMacro(OutputPointsPrecision,int);
130  vtkGetMacro(OutputPointsPrecision,int);
132 
133 protected:
134  vtkConeSource(int res=6);
135  ~vtkConeSource() override {}
136 
139 
140  double Height;
141  double Radius;
144  double Center[3];
145  double Direction[3];
147 
148 private:
149  vtkConeSource(const vtkConeSource&) = delete;
150  void operator=(const vtkConeSource&) = delete;
151 };
152 
153 #endif
154 
155 
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
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()
int vtkTypeBool
Definition: vtkABI.h:69
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int OutputPointsPrecision
vtkTypeBool Capping
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.