VTK  9.2.5
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 =========================================================================*/
145 #ifndef vtkConeSource_h
146 #define vtkConeSource_h
147 
148 #include "vtkFiltersSourcesModule.h" // For export macro
149 #include "vtkPolyDataAlgorithm.h"
150 
151 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
152 
153 class VTKFILTERSSOURCES_EXPORT vtkConeSource : public vtkPolyDataAlgorithm
154 {
155 public:
157  void PrintSelf(ostream& os, vtkIndent indent) override;
158 
164  static vtkConeSource* New();
165 
167 
171  vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
172  vtkGetMacro(Height, double);
174 
176 
179  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
180  vtkGetMacro(Radius, double);
182 
184 
187  vtkSetClampMacro(Resolution, int, 0, VTK_CELL_SIZE);
188  vtkGetMacro(Resolution, int);
190 
192 
197  vtkSetVector3Macro(Center, double);
198  vtkGetVectorMacro(Center, double, 3);
200 
202 
207  vtkSetVector3Macro(Direction, double);
208  vtkGetVectorMacro(Direction, double, 3);
210 
212 
219  void SetAngle(double angle);
220  double GetAngle();
222 
224 
227  vtkSetMacro(Capping, vtkTypeBool);
228  vtkGetMacro(Capping, vtkTypeBool);
229  vtkBooleanMacro(Capping, vtkTypeBool);
231 
233 
238  vtkSetMacro(OutputPointsPrecision, int);
239  vtkGetMacro(OutputPointsPrecision, int);
241 
242 protected:
243  vtkConeSource(int res = 6);
244  ~vtkConeSource() override = default;
245 
248 
249  double Height;
250  double Radius;
253  double Center[3];
254  double Direction[3];
256 
257 private:
258  vtkConeSource(const vtkConeSource&) = delete;
259  void operator=(const vtkConeSource&) = delete;
260 };
261 
262 #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:119
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:132
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165