GDCM 3.2.1

gdcmFileDerivation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMFILEDERIVATION_H
15#define GDCMFILEDERIVATION_H
16
17#include "gdcmFile.h"
18
19 namespace gdcm
20{
21
22 class FileDerivationInternals;
23 class DataSet;
39 class GDCM_EXPORT FileDerivation
40{
41 public:
42 FileDerivation();
43 ~FileDerivation();
44
49 bool AddReference(const char *referencedsopclassuid, const char *referencedsopinstanceuid);
50
51 // CID 7202 Source Image Purposes of Reference
52 // {"DCM",121320,"Uncompressed predecessor"},
53
55 void SetPurposeOfReferenceCodeSequenceCodeValue(unsigned int codevalue);
56
57 // CID 7203 Image Derivation
58 // { "DCM",113040,"Lossy Compression" },
59
61 void SetDerivationCodeSequenceCodeValue(unsigned int codevalue);
62
64 void SetDerivationDescription( const char *dd );
65
69 void SetAppendDerivationHistory(bool b);
70
72 bool Derive();
73
75 void SetFile(const File& f) { F = f; }
76 File &GetFile() { return *F; }
77 const File &GetFile() const { return *F; }
78
79 protected:
80 bool AddDerivationDescription();
81 bool AddSourceImageSequence();
82 bool AddPurposeOfReferenceCodeSequence(DataSet &ds);
83
84 private:
85 SmartPointer<File> F;
86 FileDerivationInternals *Internals;
87};
88
94
95
96} // end namespace gdcm
97
98#endif //GDCMFILEDERIVATION_H
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements)
Definition gdcmDataSet.h:56
gdcm::FileDerivation::AddPurposeOfReferenceCodeSequence
bool AddPurposeOfReferenceCodeSequence(DataSet &ds)
gdcm::FileDerivation::AddReference
bool AddReference(const char *referencedsopclassuid, const char *referencedsopinstanceuid)
gdcm::FileDerivation::GetFile
const File & GetFile() const
Definition gdcmFileDerivation.h:77
gdcm::FileDerivation::SetDerivationDescription
void SetDerivationDescription(const char *dd)
Specify the Derivation Description. Eg "lossy conversion".
gdcm::FileDerivation::SetPurposeOfReferenceCodeSequenceCodeValue
void SetPurposeOfReferenceCodeSequenceCodeValue(unsigned int codevalue)
Specify the Purpose Of Reference Code Value. Eg. 121320.
gdcm::FileDerivation::SetAppendDerivationHistory
void SetAppendDerivationHistory(bool b)
gdcm::FileDerivation::~FileDerivation
~FileDerivation()
gdcm::FileDerivation::GetFile
File & GetFile()
Definition gdcmFileDerivation.h:76
gdcm::FileDerivation::FileDerivation
FileDerivation()
gdcm::FileDerivation::Derive
bool Derive()
Change.
gdcm::FileDerivation::AddSourceImageSequence
bool AddSourceImageSequence()
gdcm::FileDerivation::AddDerivationDescription
bool AddDerivationDescription()
gdcm::FileDerivation::SetDerivationCodeSequenceCodeValue
void SetDerivationCodeSequenceCodeValue(unsigned int codevalue)
Specify the Derivation Code Sequence Code Value. Eg 113040.
gdcm::FileDerivation::SetFile
void SetFile(const File &f)
Set/Get File.
Definition gdcmFileDerivation.h:75
gdcm::File
a DICOM File
Definition gdcmFile.h:34
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcmFile.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21