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;
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);
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 ?
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);
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