IGSTK
/build/buildd/igstk-4.4.0/Source/igstkConeObject.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Image Guided Surgery Software Toolkit
00004   Module:    $RCSfile: igstkConeObject.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-02-11 01:41:50 $
00007   Version:   $Revision: 1.5 $
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 __igstkConeObject_h
00019 #define __igstkConeObject_h
00020 
00021 #include "igstkMacros.h"
00022 #include "igstkSpatialObject.h"
00023 #include <itkGroupSpatialObject.h>
00024 
00025 namespace igstk
00026 {
00027 
00038 class ConeObject 
00039 : public SpatialObject
00040 {
00041 
00042 public:
00043 
00045   igstkStandardClassTraitsMacro( ConeObject, SpatialObject )
00046 
00047 public:
00048 
00050   igstkSetMacro(Radius,double);
00051   
00053   igstkGetMacro(Radius,double);
00054   
00056   igstkSetMacro(Height,double); 
00057 
00059   igstkGetMacro(Height,double);
00060  
00061 protected:
00062 
00063   ConeObject( void );
00064   ~ConeObject( void );
00065 
00066   ConeObject(const Self&);            //purposely not implemented
00067   void operator=(const Self&);       //purposely not implemented
00068 
00070   virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const; 
00071 
00072 private:
00073 
00075   typedef itk::GroupSpatialObject<3>     ConeSpatialObjectType;
00076 
00078   ConeSpatialObjectType::Pointer   m_ConeSpatialObject;
00079 
00080   double m_Radius;
00081   double m_Height;
00082 
00083 };
00084 
00085 } // end namespace igstk
00086 
00087 #endif // __igstkConeObject_h