VTK  9.2.6
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=========================================================================*/
146#ifndef vtkCylinderSource_h
147#define vtkCylinderSource_h
148
149#include "vtkFiltersSourcesModule.h" // For export macro
150#include "vtkPolyDataAlgorithm.h"
151
152#include "vtkCell.h" // Needed for VTK_CELL_SIZE
153
154class VTKFILTERSSOURCES_EXPORT vtkCylinderSource : public vtkPolyDataAlgorithm
155{
156public:
159 void PrintSelf(ostream& os, vtkIndent indent) override;
160
162
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 vtkSetVector3Macro(Center, double);
182 vtkGetVectorMacro(Center, double, 3);
184
186
189 vtkSetClampMacro(Resolution, int, 3, VTK_CELL_SIZE);
190 vtkGetMacro(Resolution, int);
192
194
197 vtkSetMacro(Capping, vtkTypeBool);
198 vtkGetMacro(Capping, vtkTypeBool);
199 vtkBooleanMacro(Capping, vtkTypeBool);
201
203
208 vtkSetMacro(OutputPointsPrecision, int);
209 vtkGetMacro(OutputPointsPrecision, int);
211
212protected:
213 vtkCylinderSource(int res = 6);
214 ~vtkCylinderSource() override = default;
215
217 double Height;
218 double Radius;
219 double Center[3];
223
224private:
225 vtkCylinderSource(const vtkCylinderSource&) = delete;
226 void operator=(const vtkCylinderSource&) = delete;
227};
228
229#endif
generate a polygonal cylinder centered at the origin
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkCylinderSource() override=default
static vtkCylinderSource * New()
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: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