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 =========================================================================*/
31 #ifndef __vtkCylinderSource_h
32 #define __vtkCylinderSource_h
33 
34 #include "vtkPolyDataAlgorithm.h"
35 
36 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
37 
39 {
40 public:
41  static vtkCylinderSource *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
48  vtkGetMacro(Height,double);
50 
52 
53  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX)
54  vtkGetMacro(Radius,double);
56 
58 
59  vtkSetVector3Macro(Center,double);
60  vtkGetVectorMacro(Center,double,3);
62 
64 
65  vtkSetClampMacro(Resolution,int,2,VTK_CELL_SIZE)
66  vtkGetMacro(Resolution,int);
68 
70 
72  vtkSetMacro(Capping,int);
73  vtkGetMacro(Capping,int);
74  vtkBooleanMacro(Capping,int);
76 
77 protected:
78  vtkCylinderSource(int res=6);
80 
82  double Height;
83  double Radius;
84  double Center[3];
86  int Capping;
87 
88 private:
89  vtkCylinderSource(const vtkCylinderSource&); // Not implemented.
90  void operator=(const vtkCylinderSource&); // Not implemented.
91 };
92 
93 #endif
#define VTK_GRAPHICS_EXPORT
generate a cylinder centered at origin
#define VTK_DOUBLE_MAX
Definition: vtkType.h:133
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_CELL_SIZE
Definition: vtkCell.h:42
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:37
Store zero or more vtkInformation instances.