gdcmPresentationContextGenerator.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 GDCMPRESENTATIONCONTEXTGENERATOR_H
#define GDCMPRESENTATIONCONTEXTGENERATOR_H
#include "gdcmDirectory.h"
#include "gdcmPresentationContext.h"
namespace gdcm
{
class TransferSyntax;
class File;
class GDCM_EXPORT PresentationContextGenerator
{
public:
PresentationContextGenerator();
// Set MergeMode
// Default mode, each pair AbstractSyntax/TransferSyntax are only merged when
// exactly identical
void SetMergeModeToAbstractSyntax();
// Set MergeMode
// Merge is done on a per AbstractSyntax basis. Any new TransferSyntax for a
// given AbstractSyntax is merge to the existing PresentationContext referring
// to that AbstractSyntax
void SetMergeModeToTransferSyntax();
bool GenerateFromUID(UIDs::TSName asname);
bool GenerateFromFilenames(const Directory::FilenamesType &files);
bool AddFromFile(const File &file);
typedef std::vector<PresentationContext> PresentationContextArrayType;
typedef PresentationContextArrayType::size_type SizeType;
PresentationContextArrayType const &GetPresentationContexts() { return PresContext; }
void SetDefaultTransferSyntax( const TransferSyntax &ts );
protected:
bool AddPresentationContext( const char *absyn, const char *ts );
const char *GetDefaultTransferSyntax() const;
private:
std::vector<PresentationContext> PresContext;
static std::string DefaultTransferSyntax;
};
} // end namespace gdcm
#endif //GDCMPRESENTATIONCONTEXTGENERATOR_H
gdcm::Directory::FilenamesType
std::vector< FilenameType > FilenamesType
Definition gdcmDirectory.h:49
gdcm::File
a DICOM File
Definition gdcmFile.h:34
gdcm::PresentationContextGenerator::SetMergeModeToAbstractSyntax
void SetMergeModeToAbstractSyntax()
gdcm::PresentationContextGenerator::PresentationContextArrayType
std::vector< PresentationContext > PresentationContextArrayType
Definition gdcmPresentationContextGenerator.h:81
gdcm::PresentationContextGenerator::GenerateFromUID
bool GenerateFromUID(UIDs::TSName asname)
Generate the PresentationContext array from a UID (eg. VerificationSOPClass).
gdcm::PresentationContextGenerator::PresentationContextGenerator
PresentationContextGenerator()
gdcm::PresentationContextGenerator::GenerateFromFilenames
bool GenerateFromFilenames(const Directory::FilenamesType &files)
gdcm::PresentationContextGenerator::SetMergeModeToTransferSyntax
void SetMergeModeToTransferSyntax()
gdcm::PresentationContextGenerator::GetDefaultTransferSyntax
const char * GetDefaultTransferSyntax() const
gdcm::PresentationContextGenerator::AddFromFile
bool AddFromFile(const File &file)
gdcm::PresentationContextGenerator::SetDefaultTransferSyntax
void SetDefaultTransferSyntax(const TransferSyntax &ts)
Not implemented for now. GDCM internally uses Implicit Little Endian.
gdcm::PresentationContextGenerator::GetPresentationContexts
PresentationContextArrayType const & GetPresentationContexts()
Definition gdcmPresentationContextGenerator.h:83
gdcm::PresentationContextGenerator::SizeType
PresentationContextArrayType::size_type SizeType
Definition gdcmPresentationContextGenerator.h:82
gdcm::PresentationContextGenerator::AddPresentationContext
bool AddPresentationContext(const char *absyn, const char *ts)
gdcm::TransferSyntax
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
gdcm::UIDs::TSName
TSName
Definition gdcmUIDs.h:501
gdcmDirectory.h
gdcmPresentationContext.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21