Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GDCMFILEDERIVATION_H
00016 #define GDCMFILEDERIVATION_H
00017
00018 #include "gdcmFile.h"
00019
00020 namespace gdcm
00021 {
00022
00023 class FileDerivationInternals;
00024 class DataSet;
00038 class GDCM_EXPORT FileDerivation
00039 {
00040 public:
00041 FileDerivation();
00042 ~FileDerivation();
00043
00048 bool AddReference(const char *referencedsopclassuid, const char *referencedsopinstanceuid);
00049
00050
00051
00052
00054 void SetPurposeOfReferenceCodeSequenceCodeValue(unsigned int codevalue);
00055
00056
00057
00058
00060 void SetDerivationCodeSequenceCodeValue(unsigned int codevalue);
00061
00063 void SetDerivationDescription( const char *dd );
00064
00066 bool Derive();
00067
00069 void SetFile(const File& f) { F = f; }
00070 File &GetFile() { return *F; }
00071 const File &GetFile() const { return *F; }
00072
00073 protected:
00074 bool AddDerivationDescription();
00075 bool AddSourceImageSequence();
00076 bool AddPurposeOfReferenceCodeSequence(DataSet &ds);
00077
00078 private:
00079 SmartPointer<File> F;
00080 FileDerivationInternals *Internals;
00081 };
00082
00090 }
00091
00092 #endif //GDCMFILEDERIVATION_H
00093