IGSTK

/build/buildd/igstk-4.2.0/Source/igstkEllipsoidObject.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Image Guided Surgery Software Toolkit
00004   Module:    $RCSfile: igstkEllipsoidObject.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 __igstkEllipsoidObject_h
00019 #define __igstkEllipsoidObject_h
00020 
00021 #include "igstkMacros.h"
00022 #include "igstkSpatialObject.h"
00023 #include "itkEllipseSpatialObject.h"
00024 
00025 namespace igstk
00026 {
00027 
00038 class EllipsoidObject 
00039 : public SpatialObject
00040 {
00041 
00042 public:
00043 
00045   igstkStandardClassTraitsMacro( EllipsoidObject, SpatialObject )
00046 
00047 public:
00048 
00050   typedef itk::EllipseSpatialObject<3>          EllipseSpatialObjectType;
00051   typedef EllipseSpatialObjectType::ArrayType   ArrayType;
00052 
00054   void SetRadius( double rx, double ry, double rz );
00055   void SetRadius( const ArrayType & radius );
00056 
00058   const ArrayType & GetRadius() const;
00059 
00060 protected:
00061 
00062   EllipsoidObject( void );
00063   ~EllipsoidObject( void );
00064 
00066   virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const; 
00067 
00068 private:
00069 
00071   EllipseSpatialObjectType::Pointer   m_EllipseSpatialObject;
00072 
00073 };
00074 
00075 } // end namespace igstk
00076 
00077 #endif // __igstkEllipsoidObject_h