VTK  9.0.2
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 =========================================================================*/
28 #ifndef vtkCylinderSource_h
29 #define vtkCylinderSource_h
30 
31 #include "vtkFiltersSourcesModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
34 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
35 
36 class VTKFILTERSSOURCES_EXPORT vtkCylinderSource : public vtkPolyDataAlgorithm
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
48  vtkGetMacro(Height, double);
50 
52 
55  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
56  vtkGetMacro(Radius, double);
58 
60 
63  vtkSetVector3Macro(Center, double);
64  vtkGetVectorMacro(Center, double, 3);
66 
68 
71  vtkSetClampMacro(Resolution, int, 2, VTK_CELL_SIZE);
72  vtkGetMacro(Resolution, int);
74 
76 
79  vtkSetMacro(Capping, vtkTypeBool);
80  vtkGetMacro(Capping, vtkTypeBool);
81  vtkBooleanMacro(Capping, vtkTypeBool);
83 
85 
90  vtkSetMacro(OutputPointsPrecision, int);
91  vtkGetMacro(OutputPointsPrecision, int);
93 
94 protected:
95  vtkCylinderSource(int res = 6);
96  ~vtkCylinderSource() override {}
97 
99  double Height;
100  double Radius;
101  double Center[3];
105 
106 private:
107  vtkCylinderSource(const vtkCylinderSource&) = delete;
108  void operator=(const vtkCylinderSource&) = delete;
109 };
110 
111 #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
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:34
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:40
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165