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 =========================================================================*/
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:
39  static vtkCylinderSource *New();
41  void PrintSelf(ostream& os, vtkIndent indent) VTK_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,int);
80  vtkGetMacro(Capping,int);
81  vtkBooleanMacro(Capping,int);
83 
85 
90  vtkSetMacro(OutputPointsPrecision,int);
91  vtkGetMacro(OutputPointsPrecision,int);
93 
94 protected:
95  vtkCylinderSource(int res=6);
96  ~vtkCylinderSource() VTK_OVERRIDE {}
97 
99  double Height;
100  double Radius;
101  double Center[3];
103  int Capping;
105 
106 private:
107  vtkCylinderSource(const vtkCylinderSource&) VTK_DELETE_FUNCTION;
108  void operator=(const vtkCylinderSource&) VTK_DELETE_FUNCTION;
109 };
110 
111 #endif
generate a cylinder centered at origin
#define VTK_DOUBLE_MAX
Definition: vtkType.h:167
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:40
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
~vtkCylinderSource() override
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.