VTK  9.1.0
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 =========================================================================*/
139 #ifndef vtkConeSource_h
140 #define vtkConeSource_h
141 
142 #include "vtkFiltersSourcesModule.h" // For export macro
143 #include "vtkPolyDataAlgorithm.h"
144 
145 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
146 
147 class VTKFILTERSSOURCES_EXPORT vtkConeSource : public vtkPolyDataAlgorithm
148 {
149 public:
151  void PrintSelf(ostream& os, vtkIndent indent) override;
152 
158  static vtkConeSource* New();
159 
161 
165  vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
166  vtkGetMacro(Height, double);
168 
170 
173  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
174  vtkGetMacro(Radius, double);
176 
178 
181  vtkSetClampMacro(Resolution, int, 0, VTK_CELL_SIZE);
182  vtkGetMacro(Resolution, int);
184 
186 
191  vtkSetVector3Macro(Center, double);
192  vtkGetVectorMacro(Center, double, 3);
194 
196 
201  vtkSetVector3Macro(Direction, double);
202  vtkGetVectorMacro(Direction, double, 3);
204 
206 
213  void SetAngle(double angle);
214  double GetAngle();
216 
218 
221  vtkSetMacro(Capping, vtkTypeBool);
222  vtkGetMacro(Capping, vtkTypeBool);
223  vtkBooleanMacro(Capping, vtkTypeBool);
225 
227 
232  vtkSetMacro(OutputPointsPrecision, int);
233  vtkGetMacro(OutputPointsPrecision, int);
235 
236 protected:
237  vtkConeSource(int res = 6);
238  ~vtkConeSource() override = default;
239 
242 
243  double Height;
244  double Radius;
247  double Center[3];
248  double Direction[3];
250 
251 private:
252  vtkConeSource(const vtkConeSource&) = delete;
253  void operator=(const vtkConeSource&) = delete;
254 };
255 
256 #endif
generate polygonal cone
vtkTypeBool Capping
~vtkConeSource() override=default
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkConeSource(int res=6)
void SetAngle(double angle)
Set the angle of the cone.
double GetAngle()
Set the angle of the cone.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int OutputPointsPrecision
static vtkConeSource * New()
Construct with default resolution 6, height 1.0, radius 0.5, and capping on.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_CELL_SIZE
Definition: vtkCell.h:129
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165