![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsReadDICOM.hpp 00003 00004 ReadDICOM class (hpp file). 00005 00006 SUKITTI PUNAK (05/19/2008) 00007 UPDATE (05/19/2008) 00008 ******************************************************************************/ 00009 #ifndef TAPs_READ_DICOM_HPP 00010 #define TAPs_READ_DICOM_HPP 00011 00012 #include "../Core/TAPsStdLib.hpp" 00013 00014 BEGIN_NAMESPACE_TAPs 00015 //============================================================================= 00016 template <typename T> 00017 class ReadDICOM { 00018 //============================================================================= 00019 public: 00020 // Member Functions ------------------------------------------------------- 00022 friend std::ostream & operator<< ( std::ostream &output, ReadDICOM<T> const &obj ) 00023 { 00024 output << obj.StrInfo(); 00025 return output; 00026 } 00027 //------------------------------------------------------------------------- 00029 ReadDICOM ( std::string const & fileName ); 00030 ~ReadDICOM (); 00031 //------------------------------------------------------------------------- 00033 virtual std::string StrInfo () const; 00034 //------------------------------------------------------------------------- 00036 inline ReadDICOM<T> & operator= ( ReadDICOM<T> const &v ); 00037 //------------------------------------------------------------------------- 00039 inline bool operator== ( ReadDICOM<T> const &v ) const; 00040 inline bool operator< ( ReadDICOM<T> const &v ) const; 00041 inline bool operator>= ( ReadDICOM<T> const &v ) const; 00042 inline bool operator> ( ReadDICOM<T> const &v ) const; 00043 inline bool operator<= ( ReadDICOM<T> const &v ) const; 00044 //------------------------------------------------------------------------- 00051 static inline int Dominate ( ReadDICOM<T> const &a, ReadDICOM<T> const &b ); 00052 // Data Members ----------------------------------------------------------- 00053 //============================================================================= 00054 protected: 00055 // Member Functions ------------------------------------------------------- 00056 // Data Members ----------------------------------------------------------- 00057 T m_tX, m_tY, m_tZ; 00058 //============================================================================= 00059 private: 00060 // Member Functions ------------------------------------------------------- 00061 // Data Members ----------------------------------------------------------- 00062 //============================================================================= 00063 }; // END CLASS ReadDICOM 00064 //============================================================================= 00065 //----------------------------------------------------------------------------- 00067 typedef ReadDICOM<int> ReadDICOMi; 00068 typedef ReadDICOM<float> ReadDICOMf; 00069 typedef ReadDICOM<double> ReadDICOMd; 00070 //============================================================================= 00071 END_NAMESPACE_TAPs 00072 //----------------------------------------------------------------------------- 00073 // Include definition if TAPs_USE_EXPORT is not defined 00074 //#if !defined( TAPs_USE_EXPORT ) 00075 #include "TAPsReadDICOM.cpp" 00076 //#endif 00077 //----------------------------------------------------------------------------- 00078 #endif 00079 //34567890123456789012345678901234567890123456789012345678901234567890123456789 00080 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----