X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRLEFrame.h;h=adac8f923b5b0fe9b1cd9df833e736bfa16f5c8f;hb=1fe405b2347a5f78d5ecc67d2d81f53bd9c7541d;hp=735ffffe749c6eab5c55c7088075240b107f7c35;hpb=2bb60efea83f2bfa1823f27b2a5536a0e6cfd8c0;p=gdcm.git diff --git a/src/gdcmRLEFrame.h b/src/gdcmRLEFrame.h index 735ffffe..adac8f92 100644 --- a/src/gdcmRLEFrame.h +++ b/src/gdcmRLEFrame.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmRLEFrame.h,v $ Language: C++ - Date: $Date: 2004/12/03 10:21:54 $ - Version: $Revision: 1.9 $ + Date: $Date: 2005/01/26 11:42:02 $ + Version: $Revision: 1.12 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -21,6 +21,7 @@ #define GDCMRLEFRAME_H #include "gdcmCommon.h" + #include namespace gdcm @@ -43,15 +44,21 @@ namespace gdcm */ class GDCM_EXPORT RLEFrame { -friend class Document; -friend class PixelReadConvert; - unsigned int NumberFragments; - long Offset[15]; - long Length[15]; public: RLEFrame() { NumberFragments = 0; } - void Print( std::string indent = "", std::ostream &os = std::cout ); - + void Print( std::ostream &os = std::cout, std::string indent = "" ); + + void SetNumberOfFragments(unsigned int number) { NumberFragments = number; }; + unsigned int GetNumberOfFragments() { return NumberFragments; }; + void SetOffset(unsigned int id,long offset); + long GetOffset(unsigned int id); + void SetLength(unsigned int id,long length); + long GetLength(unsigned int id); + +private: + unsigned int NumberFragments; + long Offset[15]; + long Length[15]; }; } // end namespace gdcm //-----------------------------------------------------------------------------