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=========================================================================*/
30
31#ifndef vtkCylinderSource_h
32#define vtkCylinderSource_h
33
34#include "vtkFiltersSourcesModule.h" // For export macro
36
37#include "vtkCell.h" // Needed for VTK_CELL_SIZE
38
39class VTKFILTERSSOURCES_EXPORT vtkCylinderSource : public vtkPolyDataAlgorithm
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
50 vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
51 vtkGetMacro(Height, double);
53
55
58 vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
59 vtkGetMacro(Radius, double);
61
63
66 vtkSetVector3Macro(Center, double);
67 vtkGetVectorMacro(Center, double, 3);
69
71
74 vtkSetClampMacro(Resolution, int, 3, VTK_CELL_SIZE);
75 vtkGetMacro(Resolution, int);
77
79
82 vtkSetMacro(Capping, vtkTypeBool);
83 vtkGetMacro(Capping, vtkTypeBool);
84 vtkBooleanMacro(Capping, vtkTypeBool);
86
88
93 vtkSetMacro(OutputPointsPrecision, int);
94 vtkGetMacro(OutputPointsPrecision, int);
96
97protected:
98 vtkCylinderSource(int res = 6);
99 ~vtkCylinderSource() override = default;
100
102 double Height;
103 double Radius;
104 double Center[3];
108
109private:
110 vtkCylinderSource(const vtkCylinderSource&) = delete;
111 void operator=(const vtkCylinderSource&) = delete;
112};
113
114#endif
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:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_CELL_SIZE
Definition vtkCell.h:40
#define VTK_DOUBLE_MAX
Definition vtkType.h:165