Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkCylinderSource.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkCylinderSource.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00031 #ifndef __vtkCylinderSource_h 00032 #define __vtkCylinderSource_h 00033 00034 #include "vtkPolyDataSource.h" 00035 00036 #include "vtkCell.h" // Needed for VTK_CELL_SIZE 00037 00038 class VTK_GRAPHICS_EXPORT vtkCylinderSource : public vtkPolyDataSource 00039 { 00040 public: 00041 static vtkCylinderSource *New(); 00042 vtkTypeRevisionMacro(vtkCylinderSource,vtkPolyDataSource); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00047 vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX) 00048 vtkGetMacro(Height,double); 00050 00052 00053 vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX) 00054 vtkGetMacro(Radius,double); 00056 00058 00059 vtkSetVector3Macro(Center,double); 00060 vtkGetVectorMacro(Center,double,3); 00062 00064 00065 vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE) 00066 vtkGetMacro(Resolution,int); 00068 00070 00071 vtkSetMacro(Capping,int); 00072 vtkGetMacro(Capping,int); 00073 vtkBooleanMacro(Capping,int); 00075 00076 protected: 00077 vtkCylinderSource(int res=6); 00078 ~vtkCylinderSource() {}; 00079 00080 void Execute(); 00081 double Height; 00082 double Radius; 00083 double Center[3]; 00084 int Resolution; 00085 int Capping; 00086 00087 private: 00088 vtkCylinderSource(const vtkCylinderSource&); // Not implemented. 00089 void operator=(const vtkCylinderSource&); // Not implemented. 00090 }; 00091 00092 #endif 00093 00094