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 =========================================================================*/
33 #ifndef vtkCylinderSource_h
34 #define vtkCylinderSource_h
35 
36 #include "vtkFiltersSourcesModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
39 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
40 
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
51  vtkGetMacro(Height,double);
53 
55 
56  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX)
57  vtkGetMacro(Radius,double);
59 
61 
62  vtkSetVector3Macro(Center,double);
63  vtkGetVectorMacro(Center,double,3);
65 
67 
68  vtkSetClampMacro(Resolution,int,2,VTK_CELL_SIZE)
69  vtkGetMacro(Resolution,int);
71 
73 
75  vtkSetMacro(Capping,int);
76  vtkGetMacro(Capping,int);
77  vtkBooleanMacro(Capping,int);
79 
81 
85  vtkSetMacro(OutputPointsPrecision,int);
86  vtkGetMacro(OutputPointsPrecision,int);
88 
89 protected:
92 
94  double Height;
95  double Radius;
96  double Center[3];
98  int Capping;
100 
101 private:
102  vtkCylinderSource(const vtkCylinderSource&); // Not implemented.
103  void operator=(const vtkCylinderSource&); // Not implemented.
104 };
105 
106 #endif
vtkCylinderSource::New
static vtkCylinderSource * New()
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkCylinderSource::Radius
double Radius
Definition: vtkCylinderSource.h:95
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkFiltersSourcesModule.h
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkCell.h
vtkCylinderSource::Capping
int Capping
Definition: vtkCylinderSource.h:98
vtkPolyDataAlgorithm.h
vtkCylinderSource::Height
double Height
Definition: vtkCylinderSource.h:94
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
VTK_CELL_SIZE
#define VTK_CELL_SIZE
Definition: vtkCell.h:45
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkCylinderSource::Resolution
int Resolution
Definition: vtkCylinderSource.h:97
vtkgl::res
GLuint res
Definition: vtkgl.h:16902
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCylinderSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkCylinderSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkCylinderSource.h:99
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkCylinderSource
generate a cylinder centered at origin
Definition: vtkCylinderSource.h:42
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkCylinderSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44