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
39
40#include "vtkCell.h" // Needed for VTK_CELL_SIZE
41
42class VTKFILTERSSOURCES_EXPORT vtkCylinderSource : public vtkPolyDataAlgorithm
43{
44public:
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
100protected:
102 ~vtkCylinderSource() VTK_OVERRIDE {}
103
105 double Height;
106 double Radius;
107 double Center[3];
111
112private:
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
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCylinderSource * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
#define VTK_CELL_SIZE
Definition: vtkCell.h:43
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163