X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmFile.h;h=cfd5d662a13f985c549d3a8709c302ba5fb5f599;hb=713a45d76c97b5b97a7ea5a68ea1fcf56321e4f0;hp=d7d8a6566e3b2b654c0476fa33b3f82df1e18ed2;hpb=0ad9dae4659b21bfd5c834c1af724eab4dcdf4f6;p=gdcm.git diff --git a/src/gdcmFile.h b/src/gdcmFile.h index d7d8a656..cfd5d662 100644 --- a/src/gdcmFile.h +++ b/src/gdcmFile.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.h,v $ Language: C++ - Date: $Date: 2005/01/23 10:12:34 $ - Version: $Revision: 1.99 $ + Date: $Date: 2005/01/28 17:01:30 $ + Version: $Revision: 1.101 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,6 +23,8 @@ namespace gdcm { +class RLEFramesInfo; +class JPEGFragmentsInfo; //----------------------------------------------------------------------------- // Dicom Part 3.3 Compliant @@ -91,7 +93,6 @@ enum ModalityType { */ //----------------------------------------------------------------------------- - class GDCM_EXPORT File : public Document { protected: @@ -166,17 +167,31 @@ public: /// Accessor to \ref File::NumPixel uint16_t GetNumPixel() { return NumPixel; } + /// Replace patient's specific information by 'anonymous' + bool AnonymizeFile(); + bool Write(std::string fileName, FileType filetype); + /// returns the RLE info + RLEFramesInfo *GetRLEInfo() { return RLEInfo; } + /// Returns the JPEG Fragments info + JPEGFragmentsInfo *GetJPEGInfo() { return JPEGInfo; } + +protected: /// Initialize DICOM File when none void InitializeDefaultFile(); -protected: - /// Replace patient's specific information by 'anonymous' - bool AnonymizeFile(); + /// Store the RLE frames info obtained during parsing of pixels. + RLEFramesInfo *RLEInfo; + /// Store the JPEG fragments info obtained during parsing of pixels. + JPEGFragmentsInfo *JPEGInfo; private: - + void ComputeRLEInfo(); + void ComputeJPEGFragmentInfo(); + void ReadAndSkipEncapsulatedBasicOffsetTable(); + bool ReadTag(uint16_t, uint16_t); + uint32_t ReadTagLength(uint16_t, uint16_t); }; } // end namespace gdcm