Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00044 #ifndef __vtkDiskSource_h
    00045 #define __vtkDiskSource_h
    00046
    00047 #include "vtkPolyDataSource.h"
    00048
    00049 class VTK_GRAPHICS_EXPORT vtkDiskSource : public vtkPolyDataSource
    00050 {
    00051 public:
    00052   static vtkDiskSource *New();
    00053   vtkTypeRevisionMacro(vtkDiskSource,vtkPolyDataSource);
    00054   void PrintSelf(ostream& os, vtkIndent indent);
    00055
    00057
    00058   vtkSetClampMacro(InnerRadius,float,0.0,VTK_LARGE_FLOAT)
    00059   vtkGetMacro(InnerRadius,float);
    00061
    00063
    00064   vtkSetClampMacro(OuterRadius,float,0.0,VTK_LARGE_FLOAT)
    00065   vtkGetMacro(OuterRadius,float);
    00067
    00069
    00070   vtkSetClampMacro(RadialResolution,int,1,VTK_LARGE_INTEGER)
    00071   vtkGetMacro(RadialResolution,int);
    00073
    00075
    00076   vtkSetClampMacro(CircumferentialResolution,int,3,VTK_LARGE_INTEGER)
    00077   vtkGetMacro(CircumferentialResolution,int);
    00079
    00080 protected:
    00081   vtkDiskSource();
    00082   ~vtkDiskSource() {};
    00083
    00084   void Execute();
    00085   float InnerRadius;
    00086   float OuterRadius;
    00087   int RadialResolution;
    00088   int CircumferentialResolution;
    00089
    00090 private:
    00091   vtkDiskSource(const vtkDiskSource&);  // Not implemented.
    00092   void operator=(const vtkDiskSource&);  // Not implemented.
    00093 };
    00094
    00095 #endif
    00096
    00097