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 =========================================================================*/
46 #ifndef vtkCylinderSource_h
47 #define vtkCylinderSource_h
48 
49 #include "vtkFiltersSourcesModule.h" // For export macro
50 #include "vtkPolyDataAlgorithm.h"
51 
52 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
53 
54 class VTKFILTERSSOURCES_EXPORT vtkCylinderSource : public vtkPolyDataAlgorithm
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
65  vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
66  vtkGetMacro(Height, double);
68 
70 
73  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
74  vtkGetMacro(Radius, double);
76 
78 
81  vtkSetVector3Macro(Center, double);
82  vtkGetVectorMacro(Center, double, 3);
84 
86 
89  vtkSetClampMacro(Resolution, int, 3, VTK_CELL_SIZE);
90  vtkGetMacro(Resolution, int);
92 
94 
97  vtkSetMacro(Capping, vtkTypeBool);
98  vtkGetMacro(Capping, vtkTypeBool);
99  vtkBooleanMacro(Capping, vtkTypeBool);
101 
103 
108  vtkSetMacro(OutputPointsPrecision, int);
109  vtkGetMacro(OutputPointsPrecision, int);
111 
112 protected:
113  vtkCylinderSource(int res = 6);
114  ~vtkCylinderSource() override = default;
115 
117  double Height;
118  double Radius;
119  double Center[3];
123 
124 private:
125  vtkCylinderSource(const vtkCylinderSource&) = delete;
126  void operator=(const vtkCylinderSource&) = delete;
127 };
128 
129 #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.
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:49
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:52
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165