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 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00035 #ifndef __vtkCylinderSource_h 00036 #define __vtkCylinderSource_h 00037 00038 #include "vtkPolyDataSource.h" 00039 00040 #include "vtkCell.h" // Needed for VTK_CELL_SIZE 00041 00042 class VTK_GRAPHICS_EXPORT vtkCylinderSource : public vtkPolyDataSource 00043 { 00044 public: 00045 static vtkCylinderSource *New(); 00046 vtkTypeRevisionMacro(vtkCylinderSource,vtkPolyDataSource); 00047 void PrintSelf(ostream& os, vtkIndent indent); 00048 00050 00051 vtkSetClampMacro(Height,float,0.0,VTK_LARGE_FLOAT) 00052 vtkGetMacro(Height,float); 00054 00056 00057 vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT) 00058 vtkGetMacro(Radius,float); 00060 00062 00063 vtkSetVector3Macro(Center,float); 00064 vtkGetVectorMacro(Center,float,3); 00066 00068 00069 vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE) 00070 vtkGetMacro(Resolution,int); 00072 00074 00075 vtkSetMacro(Capping,int); 00076 vtkGetMacro(Capping,int); 00077 vtkBooleanMacro(Capping,int); 00079 00080 protected: 00081 vtkCylinderSource(int res=6); 00082 ~vtkCylinderSource() {}; 00083 00084 void Execute(); 00085 float Height; 00086 float Radius; 00087 float Center[3]; 00088 int Resolution; 00089 int Capping; 00090 00091 private: 00092 vtkCylinderSource(const vtkCylinderSource&); // Not implemented. 00093 void operator=(const vtkCylinderSource&); // Not implemented. 00094 }; 00095 00096 #endif 00097 00098