X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmHeader.h;h=33abf811398f7ed07c4417bf5c358d81488c226d;hb=32c5a738ac4315aaca9c331a58900a3e91ee39ee;hp=2ad78057816677f7b428910537e2bded92137654;hpb=c9cba2121fd1226c229ae97686ee2f2d8b158647;p=gdcm.git diff --git a/src/gdcmHeader.h b/src/gdcmHeader.h index 2ad78057..33abf811 100644 --- a/src/gdcmHeader.h +++ b/src/gdcmHeader.h @@ -1,11 +1,12 @@ -// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.h,v 1.28 2003/06/20 14:17:47 jpr Exp $ +// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.h,v 1.34 2003/07/07 10:26:14 regrain Exp $ #ifndef GDCMHEADER_H #define GDCMHEADER_H #include #include "gdcmCommon.h" -#include "gdcmUtil.h" +#include "gdcmVR.h" +#include "gdcmTS.h" #include "gdcmException.h" #include "gdcmDictSet.h" #include "gdcmElValue.h" @@ -105,6 +106,7 @@ protected: FileType filetype; gdcmElValue * GetElValueByNumber(guint16 group, guint16 element); + int CheckIfExistByNumber(guint16 Group, guint16 Elem ); guint16 SwapShort(guint16); // needed by gdcmFile guint32 SwapLong(guint32); // for JPEG Files :-( @@ -131,6 +133,8 @@ public: gdcmHeader(const char *filename, bool exception_on_error = false); gdcmHeader( bool exception_on_error = false); virtual ~gdcmHeader(); + + std::string GetFileName(void) {return filename;} size_t GetPixelOffset(void); int GetSwapCode(void) { return sw; } @@ -162,20 +166,25 @@ public: int SetPubElValByName (std::string content, std::string TagName); int SetShaElValByName (std::string content, std::string ShadowTagName); + int SetPubElValByNumber(std::string content, guint16 group, guint16 element); - int SetShaElValByNumber(std::string content, guint16 group, guint16 element); int SetPubElValLengthByNumber(guint32 lgr, guint16 group, guint16 element); int ReplaceOrCreateByNumber(std::string Value, guint16 Group, guint16 Elem); - int ReplaceOrCreateByNumber(char * Value, guint16 Group, guint16 Elem); + int ReplaceOrCreateByNumber( char * Value, guint16 Group, guint16 Elem); int GetXSize(void); int GetYSize(void); int GetZSize(void); int GetBitsStored(void); int GetSamplesPerPixel(void); + +/* ================ COMMENT OUT after unfreeze + int GetPlanarConfiguration(void); + ======================================= */ + int GetPixelSize(void); std::string GetPixelType(void);