X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRLEFrame.h;h=21b2dd30c1ec01fc09d3fd65d8124cb6cc49bd98;hb=4beda181275414e5cba990113f8d16424b2c09e6;hp=3eb74aacd308ef5c19ec6a3566590d3b591c301e;hpb=d65508e83c169bde30eecaed0ca1c5ce6d0eebcb;p=gdcm.git diff --git a/src/gdcmRLEFrame.h b/src/gdcmRLEFrame.h index 3eb74aac..21b2dd30 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/10/06 22:31:31 $ - Version: $Revision: 1.2 $ + Date: $Date: 2004/12/03 20:16:58 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -22,31 +22,38 @@ #include "gdcmCommon.h" +#include + +namespace gdcm +{ /** * \brief Utility class for summerizing the informations of a SINGLE RLE - * frame of an "Encapsulated RLE Compressed Image" (see PS-3.3 annex G). + * frame of an "Encapsulated RLE Compressed Image" (refer to + * PS 3.5-2003 annex G). * This information is a mix of: - * - the RLE Header (see PS-3.3 section G5) and + * - the RLE Header (see PS 3.5-2003 section G5) and * - the lengths of each RLE segment [ which can be decuded from * both the above RLE Header and the itemlength of the frame). * * Each instance of this class (they can be as many instances for - * a given gdcmDocument as they are frames and they are collected in - * a \ref gdcmRLEFramesInfo ) describes : + * a given Document as they are frames and they are collected in + * a \ref RLEFramesInfo ) describes : * - the total number of segments (up to 15), * - the offsets of each segment of the frame, * - the (corresponding) lengths of each segment of the frame. */ -class GDCM_EXPORT gdcmRLEFrame +class GDCM_EXPORT RLEFrame { -friend class gdcmDocument; -friend class gdcmFile; - int NumberFragments; +friend class Document; +friend class PixelReadConvert; + unsigned int NumberFragments; long Offset[15]; long Length[15]; - gdcmRLEFrame() { NumberFragments = 0; } +public: + RLEFrame() { NumberFragments = 0; } + void Print( std::string indent = "", std::ostream &os = std::cout ); }; - +} // end namespace gdcm //----------------------------------------------------------------------------- #endif