- void LoadElements(void);
- virtual void ParseHeader(bool exception_on_error = false)
- throw(gdcmFormatError);
- gdcmHeader(const char *filename, bool exception_on_error = false)
- throw(gdcmFileError);
- virtual ~gdcmHeader();
-
- size_t GetPixelOffset(void);
- void GetPixels(size_t, void *);
- int GetSwapCode(void) { return sw; }
-
- // TODO Swig int SetPubDict(string filename);
- // When some proprietary shadow groups are disclosed, we can set up
- // an additional specific dictionary to access extra information.
- // TODO Swig int SetShaDict(string filename);
-
- // Get the element values themselves:
- string GetPubElValByName(string TagName);
- string GetPubElValByNumber(guint16 group, guint16 element);
-
- // Getting the element value representation (VR) might be needed by caller
- // to convert the string typed content to caller's native type
- // (think of C/C++ vs Python).
-
- string GetPubElValRepByName(string TagName);
- string GetPubElValRepByNumber(guint16 group, guint16 element);
-
- TagElValueHT & GetPubElVal(void) { return PubElVals.GetTagHt(); };
- void PrintPubElVal(ostream & os = cout);
- void PrintPubDict(ostream & os = cout);
-
- // Same thing with the shadow :
- // TODO Swig string* GetShaTagNames();
- string GetShaElValByName(string TagName);
- string GetShaElValByNumber(guint16 group, guint16 element);
- string GetShaElValRepByName(string TagName);
- string GetShaElValRepByNumber(guint16 group, guint16 element);
-
- // Wrappers of the above (public is privileged over shadow) to avoid
- // bugging the caller with knowing if ElVal is from the public or shadow
- // dictionary.
- string GetElValByName(string TagName);
- string GetElValByNumber(guint16 group, guint16 element);
- string GetElValRepByName(string TagName);
- string GetElValRepByNumber(guint16 group, guint16 element);
-
- int SetPubElValByName(string content, string TagName);
- int SetPubElValByNumber(string content, guint16 group, guint16 element);
- int SetShaElValByName(string content, string ShadowTagName);
- int SetShaElValByNumber(string content, guint16 group, guint16 element);
-
- ElValSet GetPubElVals() { return(PubElVals); }
+ bool IsReadable(void);
+ bool IsImplicitVRLittleEndianTransferSyntax(void);
+ bool IsExplicitVRLittleEndianTransferSyntax(void);
+ bool IsDeflatedExplicitVRLittleEndianTransferSyntax(void);
+ bool IsExplicitVRBigEndianTransferSyntax(void);
+ bool IsJPEGBaseLineProcess1TransferSyntax(void);
+ bool IsJPEGExtendedProcess2_4TransferSyntax(void);
+ bool IsJPEGExtendedProcess3_5TransferSyntax(void);
+ bool IsJPEGSpectralSelectionProcess6_8TransferSyntax(void);
+ bool IsJPEGLossless(void);
+ bool IsDicomV3(void);
+
+ virtual void ParseHeader(bool exception_on_error = false)
+ throw(gdcmFormatError);
+ gdcmHeader(const char *filename, bool exception_on_error = false);
+ gdcmHeader( bool exception_on_error = false);
+ virtual ~gdcmHeader();
+
+ size_t GetPixelOffset(void);
+ int GetSwapCode(void) { return sw; }
+
+ // TODO Swig int SetPubDict(std::string filename);
+ // When some proprietary shadow groups are disclosed, we can set up
+ // an additional specific dictionary to access extra information.
+ // TODO Swig int SetShaDict(std::string filename);
+
+ std::string GetPubElValByName (std::string TagName);
+ std::string GetPubElValRepByName (std::string TagName);
+ std::string GetPubElValByNumber (guint16 group, guint16 element);
+ std::string GetPubElValRepByNumber(guint16 group, guint16 element);
+
+ TagElValueHT & GetPubElVal(void) { return PubElValSet.GetTagHt(); };
+ void PrintPubElVal(std::ostream & os = std::cout);
+ void PrintPubDict (std::ostream & os = std::cout);
+
+ // TODO Swig std::string* GetShaTagNames();
+ std::string GetShaElValByName (std::string TagName);
+ std::string GetShaElValRepByName (std::string TagName);
+ std::string GetShaElValByNumber (guint16 group, guint16 element);
+ std::string GetShaElValRepByNumber(guint16 group, guint16 element);
+
+ std::string GetElValByName (std::string TagName);
+ std::string GetElValRepByName (std::string TagName);
+ std::string GetElValByNumber (guint16 group, guint16 element);
+ std::string GetElValRepByNumber(guint16 group, guint16 element);
+
+ 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 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);
+
+ float GetXSpacing(void);
+ float GetYSpacing(void);
+ float GetZSpacing(void);
+
+ float GetXImagePosition(void);
+ float GetYImagePosition(void);
+ float GetZImagePosition(void);
+
+ int Write(FILE *, FileType);