MeVisLab Toolbox Reference
DCMTree_Lib.h File Reference
#include <utility>
#include <map>
#include <vector>
#include <string>
#include <boost/smart_ptr.hpp>
#include "DCMTree_Defines.h"
#include "DCMTree_Serialization.h"

Go to the source code of this file.

Classes

struct  DCMTree::PixelData
 Contains pixel data which is either shared/ref counted or a direct pointer. More...
 
struct  DCMTree::Date
 Date class for DCMTree library. More...
 
struct  DCMTree::Time
 Time class for DCMTree library. More...
 

Namespaces

namespace  DCMTree
 class to dump a DCMTree dicom message into a human readable file this class could be used as a starter to write a DCMTree::Writer subclass
 
namespace  DCMTree_Serialization
 

Typedefs

typedef boost::shared_ptr< TagDCMTree::TagPtr
 shared-pointer to tag

 
typedef boost::shared_ptr< const TagDCMTree::Const_TagPtr
 
typedef boost::shared_ptr< MFPixelTagDCMTree::MFPixelTagPtr
 shared-pointer to multi-frame tag

 
typedef boost::shared_ptr< const MFPixelTagDCMTree::Const_MFPixelTagPtr
 
typedef boost::shared_ptr< TreeDCMTree::TreePtr
 shared pointer to a DCMTree::Tree
 
typedef boost::shared_ptr< const TreeDCMTree::Const_TreePtr
 
typedef boost::shared_ptr< MessageDCMTree::MessagePtr
 
typedef boost::shared_ptr< const MessageDCMTree::Const_MessagePtr
 
typedef boost::shared_ptr< TagInfoDCMTree::TagInfoPtr
 shared pointer to a DCMTree::TagInfo
 
typedef boost::shared_ptr< const TagInfoDCMTree::Const_TagInfoPtr
 
typedef std::vector< TreePtrDCMTree::TreePtrVector
 a vector of TreePtr - used for sequences
 
typedef boost::shared_ptr< ValueDCMTree::ValuePtr
 shared-pointer to a tag-value
 
typedef boost::shared_ptr< const ValueDCMTree::Const_ValuePtr
 
typedef boost::shared_array< unsigned charDCMTree::pixel_cont_t
 
typedef boost::shared_ptr< ExceptionDCMTree::ExceptionPtr
 shared-pointer to a DCMTree::Exception
 
typedef boost::shared_ptr< const ExceptionDCMTree::Const_ExceptionPtr
 
typedef boost::shared_ptr< TagIdDCMTree::TagIdPtr
 
typedef std::pair< TagIdPtr, TagIdPtrDCMTree::TagIdPtrPair
 
typedef unsigned int DCMTree::RawTagId
 
typedef std::vector< TagIdDCMTree::TagIdVector
 a vector of TagIds
 
typedef boost::shared_ptr< TagIdVectorDCMTree::TagIdVectorPtr
 a shared-pointer to a vector of TagIds
 
typedef boost::shared_ptr< const TagIdVectorDCMTree::Const_TagIdVectorPtr
 
typedef std::map< TagId, TagPtrDCMTree::TagPtrMap
 a map from tag-id to TagPtr
 
typedef std::map< TagId, Const_TagPtrDCMTree::Const_TagPtrMap
 
typedef boost::shared_ptr< Const_TagPtrMapDCMTree::Const_TagPtrMapPtr
 
typedef boost::shared_ptr< ReaderDCMTree::ReaderPtr
 a shared-pointer to DCMTree::Reader
 
typedef boost::shared_ptr< const ReaderDCMTree::Const_ReaderPtr
 
typedef boost::shared_ptr< StructuredMFDCMTree::StructuredMFPtr
 
typedef boost::shared_ptr< const StructuredMFDCMTree::Const_StructuredMFPtr
 
typedef std::pair< unsigned, unsignedDCMTree::TagValueMultiplicity
 the multiplicity of a tag, first=min second=max
 
typedef std::pair< Date, TimeDCMTree::DateTime
 DateTime.
 
typedef std::vector< VrDCMTree::VrVector
 

Enumerations

enum  DCMTree::Vr {
  DCMTree::AE , DCMTree::AS , DCMTree::CS , DCMTree::DA ,
  DCMTree::DS , DCMTree::DT , DCMTree::IS , DCMTree::LO ,
  DCMTree::LT , DCMTree::PN , DCMTree::SH , DCMTree::ST ,
  DCMTree::TM , DCMTree::UT , DCMTree::UI , DCMTree::SS ,
  DCMTree::US , DCMTree::AT , DCMTree::SL , DCMTree::UL ,
  DCMTree::FL , DCMTree::FD , DCMTree::OB , DCMTree::OW ,
  DCMTree::OL , DCMTree::OF , DCMTree::SQ , DCMTree::UN ,
  DCMTree::UR , DCMTree::OD , DCMTree::UC , DCMTree::VRCOUNT
}
 DICOM VR. More...
 
enum  DCMTree::VRCType {
  DCMTree::TY_String , DCMTree::TY_Date , DCMTree::TY_DateTime , DCMTree::TY_Time ,
  DCMTree::TY_Float , DCMTree::TY_Double , DCMTree::TY_Seq , DCMTree::TY_Int ,
  DCMTree::TY_UInt , DCMTree::TY_Short , DCMTree::TY_UShort , DCMTree::TY_Bin ,
  DCMTree::TY_Att
}
 vr interpretation in C++ More...
 
enum  DCMTree::ErrorCode { DCMTree::NoError , DCMTree::MissingTag , DCMTree::InvalidData , DCMTree::WritingDataFailed }
 Error codes used for logging warnings and errors. More...
 
enum  DCMTree::TransferSyntax {
  DCMTree::INVALID_TRANSFER_SYNTAX , DCMTree::IMPLICIT_LITTLE_ENDIAN , DCMTree::EXPLICIT_LITTLE_ENDIAN , DCMTree::EXPLICIT_BIG_ENDIAN ,
  DCMTree::IMPLICIT_BIG_ENDIAN , DCMTree::DEFLATED_EXPLICIT_LITTLE_ENDIAN , DCMTree::RLE , DCMTree::JPEG_BASELINE ,
  DCMTree::JPEG_EXTENDED_2_4 , DCMTree::JPEG_EXTENDED_3_5 , DCMTree::JPEG_SPEC_NON_HIER_6_8 , DCMTree::JPEG_SPEC_NON_HIER_7_9 ,
  DCMTree::JPEG_FULL_PROG_NON_HIER_10_12 , DCMTree::JPEG_FULL_PROG_NON_HIER_11_13 , DCMTree::JPEG_LOSSLESS_NON_HIER_14 , DCMTree::JPEG_LOSSLESS_NON_HIER_15 ,
  DCMTree::JPEG_EXTENDED_HIER_16_18 , DCMTree::JPEG_EXTENDED_HIER_17_19 , DCMTree::JPEG_SPEC_HIER_20_22 , DCMTree::JPEG_SPEC_HIER_21_23 ,
  DCMTree::JPEG_FULL_PROG_HIER_24_26 , DCMTree::JPEG_FULL_PROG_HIER_25_27 , DCMTree::JPEG_LOSSLESS_HIER_28 , DCMTree::JPEG_LOSSLESS_HIER_29 ,
  DCMTree::JPEG_LOSSLESS_HIER_14 , DCMTree::JPEG_2000_LOSSLESS_ONLY , DCMTree::JPEG_2000 , DCMTree::JPEG_LS_LOSSLESS ,
  DCMTree::JPEG_LS_LOSSY , DCMTree::MPEG2_MPML , DCMTree::JPEG_2000_MC_LOSSLESS_ONLY , DCMTree::JPEG_2000_MC
}
 DICOM transfer syntaxes. More...
 
enum  DCMTree::TagSelector { DCMTree::AllTags , DCMTree::NonRoot , DCMTree::Owned }
 constants selecting a tag subset in a chain of incrementally modified DICOM trees. More...
 

Functions

DCMTREE_EXPORT bool DCMTree::isType (Vr vr, VRCType vrctype)
 defines the mapping of vr to VRCType
 
TransferSyntax DCMTree::defaultTransferSyntax ()
 
DCMTREE_EXPORT std::string DCMTree::toString (const Vr vr)
 convert a vr to a readable string
 
DCMTREE_EXPORT Vr DCMTree::toVr (const std::string &vrstr)
 convert a string to a vr
 
DCMTREE_EXPORT bool DCMTree::isValidVrStr (const std::string &vrstr)
 check if the given string could be a valid/known vr
 
DCMTREE_EXPORT std::string DCMTree::toString (const TransferSyntax syntax)
 convert a transfer-syntax to a readable string JPEG_LOSSLESS_NON_HIER_14 -> "JPEG_LOSSLESS_NON_HIER_14"
 
DCMTREE_EXPORT std::string DCMTree::toString (const TagValueMultiplicity &mult)
 convert a multiplicity into a readable string
 
void DCMTree_Serialization::serializeX (Sink &sink, const DCMTree::TransferSyntax &syntax)
 
void DCMTree_Serialization::deserializeX (Source &source, DCMTree::TransferSyntax &syntax)
 
void DCMTree_Serialization::serializeX (Sink &sink, const DCMTree::Vr &vr)
 
void DCMTree_Serialization::deserializeX (Source &source, DCMTree::Vr &vr)