VTK
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 =========================================================================*/
34 #ifndef vtkCylinderSource_h
35 #define vtkCylinderSource_h
36 
37 #include "vtkFiltersSourcesModule.h" // For export macro
38 #include "vtkPolyDataAlgorithm.h"
39 
40 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
41 
42 class VTKFILTERSSOURCES_EXPORT vtkCylinderSource : public vtkPolyDataAlgorithm
43 {
44 public:
45  static vtkCylinderSource *New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
53  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
54  vtkGetMacro(Height,double);
56 
58 
61  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX)
62  vtkGetMacro(Radius,double);
64 
66 
69  vtkSetVector3Macro(Center,double);
70  vtkGetVectorMacro(Center,double,3);
72 
74 
77  vtkSetClampMacro(Resolution,int,2,VTK_CELL_SIZE)
78  vtkGetMacro(Resolution,int);
80 
82 
85  vtkSetMacro(Capping,vtkTypeBool);
86  vtkGetMacro(Capping,vtkTypeBool);
87  vtkBooleanMacro(Capping,vtkTypeBool);
89 
91 
96  vtkSetMacro(OutputPointsPrecision,int);
97  vtkGetMacro(OutputPointsPrecision,int);
99 
100 protected:
101  vtkCylinderSource(int res=6);
102  ~vtkCylinderSource() override {}
103 
105  double Height;
106  double Radius;
107  double Center[3];
111 
112 private:
113  vtkCylinderSource(const vtkCylinderSource&) = delete;
114  void operator=(const vtkCylinderSource&) = delete;
115 };
116 
117 #endif
generate a cylinder centered at origin
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_CELL_SIZE
Definition: vtkCell.h:43
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.