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) VTK_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,int);
86  vtkGetMacro(Capping,int);
87  vtkBooleanMacro(Capping,int);
89 
91 
96  vtkSetMacro(OutputPointsPrecision,int);
97  vtkGetMacro(OutputPointsPrecision,int);
99 
100 protected:
101  vtkCylinderSource(int res=6);
102  ~vtkCylinderSource() VTK_OVERRIDE {}
103 
105  double Height;
106  double Radius;
107  double Center[3];
108  int Resolution;
109  int Capping;
110  int OutputPointsPrecision;
111 
112 private:
113  vtkCylinderSource(const vtkCylinderSource&) VTK_DELETE_FUNCTION;
114  void operator=(const vtkCylinderSource&) VTK_DELETE_FUNCTION;
115 };
116 
117 #endif
generate a cylinder centered at origin
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163
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()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.