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
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkCylinderSource::Radius
double Radius
Definition: vtkCylinderSource.h:106
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCell.h
vtkPolyDataAlgorithm.h
vtkCylinderSource::Height
double Height
Definition: vtkCylinderSource.h:105
VTK_CELL_SIZE
#define VTK_CELL_SIZE
Definition: vtkCell.h:43
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkCylinderSource::Resolution
int Resolution
Definition: vtkCylinderSource.h:108
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCylinderSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkCylinderSource.h:110
vtkCylinderSource
generate a cylinder centered at origin
Definition: vtkCylinderSource.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkCylinderSource::~vtkCylinderSource
~vtkCylinderSource() override
Definition: vtkCylinderSource.h:102
vtkCylinderSource::Capping
vtkTypeBool Capping
Definition: vtkCylinderSource.h:109
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44