gdcmFileDerivation.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMFILEDERIVATION_H
#define GDCMFILEDERIVATION_H
#include "gdcmFile.h"
namespace gdcm
{
class FileDerivationInternals;
class DataSet;
class GDCM_EXPORT FileDerivation
{
public:
FileDerivation();
~FileDerivation();
bool AddReference(const char *referencedsopclassuid, const char *referencedsopinstanceuid);
// CID 7202 Source Image Purposes of Reference
// {"DCM",121320,"Uncompressed predecessor"},
void SetPurposeOfReferenceCodeSequenceCodeValue(unsigned int codevalue);
// CID 7203 Image Derivation
// { "DCM",113040,"Lossy Compression" },
void SetDerivationCodeSequenceCodeValue(unsigned int codevalue);
void SetDerivationDescription( const char *dd );
void SetAppendDerivationHistory(bool b);
bool Derive();
void SetFile(const File& f) { F = f; }
File &GetFile() { return *F; }
const File &GetFile() const { return *F; }
protected:
bool AddDerivationDescription();
bool AddSourceImageSequence();
bool AddPurposeOfReferenceCodeSequence(DataSet &ds);
private:
SmartPointer<File> F;
FileDerivationInternals *Internals;
};
} // end namespace gdcm
#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