X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeader.h;h=5e43f564460f3fec9966d1ef1766e0a9ccad7f7a;hb=a1f0a28f71d3813042483bfa4cf07b00f3462d7c;hp=a7d2241f24910756636b3add714a71f59833a615;hpb=a92be72817889f80324ce6f29ad69c0412d31024;p=gdcm.git diff --git a/src/gdcmHeader.h b/src/gdcmHeader.h index a7d2241f..5e43f564 100644 --- a/src/gdcmHeader.h +++ b/src/gdcmHeader.h @@ -47,9 +47,9 @@ private: gdcmDict* RefShaDict; /// ELement VALueS parsed with the PUBlic dictionary. - gdcmElValSet PubElVals; + gdcmElValSet PubElValSet; /// ELement VALueS parsed with the SHAdow dictionary. - gdcmElValSet ShaElVals; + gdcmElValSet ShaElValSet; /// Refering underlying filename. string filename; FILE * fp; @@ -79,8 +79,8 @@ private: void CheckSwap(void); void InitVRDict(void); void SwitchSwapToBigEndian(void); + // CLEAN ME: NewManualElValToPubDict is NOT called any more. gdcmElValue* NewManualElValToPubDict(string NewTagName, string VR); - void AddAndDefaultElements(void); void SetMaxSizeLoadElementValue(long); gdcmDictEntry * GetDictEntryByKey(guint16, guint16); @@ -109,16 +109,9 @@ private: bool IsJPEGSpectralSelectionProcess6_8TransferSyntax(void); bool IsJPEGLossless(void); + bool IsDicomV3(void); protected: - // FIXME: is this enum still necessary ?? - enum FileType { - Unknown = 0, - TrueDicom, - ExplicitVR, - ImplicitVR, - ACR, - ACR_LIBIDO}; // CLEANME FileType filetype; int write(ostream&); int anonymize(ostream&); // FIXME : anonymize should be a friend ? @@ -144,9 +137,9 @@ public: string GetPubElValRepByName(string TagName); string GetPubElValRepByNumber(guint16 group, guint16 element); - TagElValueHT & GetPubElVal(void) { return PubElVals.GetTagHt(); }; + TagElValueHT & GetPubElVal(void) { return PubElValSet.GetTagHt(); }; void PrintPubElVal(ostream & os = cout); - void PrintPubDict(ostream & os = cout); + void PrintPubDict (ostream & os = cout); // TODO Swig string* GetShaTagNames(); string GetShaElValByName(string TagName); @@ -164,9 +157,14 @@ public: int SetShaElValByName(string content, string ShadowTagName); int SetShaElValByNumber(string content, guint16 group, guint16 element); - int SetPubElValLengthByNumber(guint32 lgr, guint16 group, guint16 element); - - gdcmElValSet GetPubElVals() { return(PubElVals); } + int SetPubElValLengthByNumber(guint32 lgr, guint16 group, guint16 element); + int ReplaceOrCreateByNumber(string Value, guint16 Group, guint16 Elem); + int GetXSize(void); + int GetYSize(void); + int GetZSize(void); + string GetPixelType(void); + int Write(FILE *, FileType); + }; #endif