X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRLEFrame.h;h=84d3966b2c4f74dd325e83bb1bdf0fc4978f46fa;hb=3ba8c03aa6cb08add6599a1ec7b2b693a967db62;hp=f65894261e4f6c0265fc048379467abf2c755b32;hpb=01b26529fd830405f78ca1dc1fd7d2d7558a8a6e;p=gdcm.git diff --git a/src/gdcmRLEFrame.h b/src/gdcmRLEFrame.h index f6589426..84d3966b 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/08 08:42:11 $ - Version: $Revision: 1.3 $ + Date: $Date: 2004/10/22 13:56:46 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -21,7 +21,10 @@ #define GDCMRLEFRAME_H #include "gdcmCommon.h" +#include +namespace gdcm +{ /** * \brief Utility class for summerizing the informations of a SINGLE RLE * frame of an "Encapsulated RLE Compressed Image" (refer to @@ -32,22 +35,24 @@ * 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 PixelConvert; + 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