IGSTK
/tmp/buildd/igstk-4.4.0/Source/igstkCylinderObject.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Image Guided Surgery Software Toolkit
00004   Module:    $RCSfile: igstkCylinderObject.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-02-11 01:41:50 $
00007   Version:   $Revision: 1.9 $
00008 
00009   Copyright (c) ISC  Insight Software Consortium.  All rights reserved.
00010   See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __igstkCylinderObject_h
00019 #define __igstkCylinderObject_h
00020 
00021 #include "igstkMacros.h"
00022 #include "igstkSpatialObject.h"
00023 #include <itkCylinderSpatialObject.h>
00024 
00025 namespace igstk
00026 {
00027 
00037 class CylinderObject 
00038 : public SpatialObject
00039 {
00040 
00041 public:
00042 
00044   igstkStandardClassTraitsMacro( CylinderObject, SpatialObject )
00045 
00046 public:
00047 
00049   typedef itk::CylinderSpatialObject     CylinderSpatialObjectType;
00050 
00052   void SetRadius( double radius );
00053   
00055   double GetRadius() const;
00056   
00058   void SetHeight( double height );
00059   
00061   double GetHeight() const;
00062   
00063 protected:
00064 
00065   CylinderObject( void );
00066   ~CylinderObject( void );
00067 
00069   virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const; 
00070 
00071 private:
00072 
00074   CylinderSpatialObjectType::Pointer   m_CylinderSpatialObject;
00075 
00076 };
00077 
00078 } // end namespace igstk
00079 
00080 #endif // __igstkCylinderObject_h