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

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 =========================================================================*/
00043 #ifndef __vtkCylinderSource_h
00044 #define __vtkCylinderSource_h
00045 
00046 #include "vtkPolyDataSource.h"
00047 
00048 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
00049 
00050 class VTK_GRAPHICS_EXPORT vtkCylinderSource : public vtkPolyDataSource 
00051 {
00052 public:
00053   static vtkCylinderSource *New();
00054   vtkTypeRevisionMacro(vtkCylinderSource,vtkPolyDataSource);
00055   void PrintSelf(ostream& os, vtkIndent indent);
00056 
00058 
00059   vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
00060   vtkGetMacro(Height,double);
00062 
00064 
00065   vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX)
00066   vtkGetMacro(Radius,double);
00068 
00070 
00071   vtkSetVector3Macro(Center,double);
00072   vtkGetVectorMacro(Center,double,3);
00074 
00076 
00077   vtkSetClampMacro(Resolution,int,2,VTK_CELL_SIZE)
00078   vtkGetMacro(Resolution,int);
00080 
00082 
00083   vtkSetMacro(Capping,int);
00084   vtkGetMacro(Capping,int);
00085   vtkBooleanMacro(Capping,int);
00087 
00088 protected:
00089   vtkCylinderSource(int res=6);
00090   ~vtkCylinderSource() {};
00091 
00092   void Execute();
00093   double Height;
00094   double Radius;
00095   double Center[3];
00096   int Resolution;
00097   int Capping;
00098 
00099 private:
00100   vtkCylinderSource(const vtkCylinderSource&);  // Not implemented.
00101   void operator=(const vtkCylinderSource&);  // Not implemented.
00102 };
00103 
00104 #endif
00105 
00106