VTK  9.1.0
vtkCylinderSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCylinderSource.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 =========================================================================*/
137 #ifndef vtkCylinderSource_h
138 #define vtkCylinderSource_h
139 
140 #include "vtkFiltersSourcesModule.h" // For export macro
141 #include "vtkPolyDataAlgorithm.h"
142 
143 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
144 
145 class VTKFILTERSSOURCES_EXPORT vtkCylinderSource : public vtkPolyDataAlgorithm
146 {
147 public:
150  void PrintSelf(ostream& os, vtkIndent indent) override;
151 
153 
156  vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
157  vtkGetMacro(Height, double);
159 
161 
164  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
165  vtkGetMacro(Radius, double);
167 
169 
172  vtkSetVector3Macro(Center, double);
173  vtkGetVectorMacro(Center, double, 3);
175 
177 
180  vtkSetClampMacro(Resolution, int, 3, VTK_CELL_SIZE);
181  vtkGetMacro(Resolution, int);
183 
185 
188  vtkSetMacro(Capping, vtkTypeBool);
189  vtkGetMacro(Capping, vtkTypeBool);
190  vtkBooleanMacro(Capping, vtkTypeBool);
192 
194 
199  vtkSetMacro(OutputPointsPrecision, int);
200  vtkGetMacro(OutputPointsPrecision, int);
202 
203 protected:
204  vtkCylinderSource(int res = 6);
205  ~vtkCylinderSource() override = default;
206 
208  double Height;
209  double Radius;
210  double Center[3];
214 
215 private:
216  vtkCylinderSource(const vtkCylinderSource&) = delete;
217  void operator=(const vtkCylinderSource&) = delete;
218 };
219 
220 #endif
generate a cylinder centered at origin
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCylinderSource * New()
~vtkCylinderSource() override=default
vtkCylinderSource(int res=6)
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