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

Graphics/vtkDiskSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDiskSource.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 =========================================================================*/
00033 #ifndef __vtkDiskSource_h
00034 #define __vtkDiskSource_h
00035 
00036 #include "vtkPolyDataSource.h"
00037 
00038 class VTK_GRAPHICS_EXPORT vtkDiskSource : public vtkPolyDataSource 
00039 {
00040 public:
00041   static vtkDiskSource *New();
00042   vtkTypeRevisionMacro(vtkDiskSource,vtkPolyDataSource);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   vtkSetClampMacro(InnerRadius,float,0.0,VTK_LARGE_FLOAT)
00048   vtkGetMacro(InnerRadius,float);
00050 
00052 
00053   vtkSetClampMacro(OuterRadius,float,0.0,VTK_LARGE_FLOAT)
00054   vtkGetMacro(OuterRadius,float);
00056 
00058 
00059   vtkSetClampMacro(RadialResolution,int,1,VTK_LARGE_INTEGER)
00060   vtkGetMacro(RadialResolution,int);
00062 
00064 
00065   vtkSetClampMacro(CircumferentialResolution,int,3,VTK_LARGE_INTEGER)
00066   vtkGetMacro(CircumferentialResolution,int);
00068 
00069 protected:
00070   vtkDiskSource();
00071   ~vtkDiskSource() {};
00072 
00073   void Execute();
00074   float InnerRadius;
00075   float OuterRadius;
00076   int RadialResolution;
00077   int CircumferentialResolution;
00078 
00079 private:
00080   vtkDiskSource(const vtkDiskSource&);  // Not implemented.
00081   void operator=(const vtkDiskSource&);  // Not implemented.
00082 };
00083 
00084 #endif
00085 
00086