12#ifndef __mlDcmtkAccessories_H
13#define __mlDcmtkAccessories_H
15#ifndef __MLDcmtkAccessoriesSystem_H
21 #pragma warning( push, 3 )
22 #pragma warning ( disable: 4267 )
27#include <dcmtk/dcmsr/dsrdoc.h>
28#include <dcmtk/dcmpstat/dvpstat.h>
31 #pragma warning( pop )
35#include <boost/shared_ptr.hpp>
43#include "DCMTree_OFFIS_Defines.h"
50class DICOMCachedIOFileHandleBase;
Project global and OS specific declarations.
#define MLDCMTKACCESSORIES_EXPORT
Class collecting some DICOM helper functions.
static DCMTree::TreePtr createEmptyDRTPlanIOD()
static DCMTree::TreePtr createEmptyDRTTreatmentSummaryRecordIOD()
static OFString getModality(DCMTree::TreePtr &dcmTree, std::string *errVal=NULL)
Return the modality of a given Dicom tree fileHandle which represents a Dicom RT object.
static DCMTree::TreePtr createNewDicomTree()
static OFString getSopClassUid(DCMTree::TreePtr &dcmTree, std::string *errVal)
static DCMTree::TreePtr createEmptyDRTImageIOD()
static bool loadDcmTree(DICOMCachedIOFileHandle &fileHandle, DCMTree::TreePtr &dcmTree, std::string *errVal=NULL)
Load a Dicom Tree from the given fileHandle. The tree will be cached for further queries in the MLDIC...
static bool loadDcmFile(const std::string &fName, DcmFileFormat &dcmfile, std::string *errVal=NULL)
Will be deleted when the SRDOC and PresentationState gets converted.
static DCMTree::TreePtr createEmptyDRTStructureSetIOD()
static std::vector< double > stringToDoubleVector(const std::string &str, const std::string &delimiters)
Converts string to a vector<double>.
static DCMTree::TreePtr createEmptyDRTIonPlanIOD()
static DCMTree::TreePtr createEmptyDRTIonBeamsTreatmentRecordIOD()
static DCMTree::TreePtr createEmptyDRTDoseIOD()
static void tokenize(const OFString &str, std::vector< OFString > &tokens, const OFString &delimiter=" ")
Tokenize a given string by splitting it at delimiters.
static OFString getModality(DcmFileFormat &dcmfile, std::string *errVal=NULL)
Will be deleted when the SRDOC and PresentationState gets converted.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
@ DCM_GENERALEQUIPMENTMODULE_TYPE
@ DCM_CALCULATEDDOSEREFERENCERECORDMODULE_TYPE
@ DCM_RTIONTOLERANCETABLESMODULE_TYPE
@ DCM_ROICONTOURMODULE_TYPE
@ DCM_APPROVALMODULE_TYPE
@ DCM_IMAGEPLANEMODULE_TYPE
@ DCM_RTIONBEAMSSESSIONRECORDMODULE_TYPE
@ DCM_RTPATIENTSETUPMODULE_TYPE
@ DCM_RTBRACHYAPPLICATIONSETUPSMODULE_TYPE
@ DCM_RTPRESCRIPTIONMODULE_TYPE
@ DCM_RTIONBEAMSMODULE_TYPE
@ DCM_RTROIOBSERVATIONSMODULE_TYPE
@ DCM_RTGENERALTREATMENTRECORDMODULE_TYPE
@ DCM_MODALITYLUTMODULE_TYPE
@ DCM_CONTRASTBOLUSMODULE_TYPE
@ DCM_RTTREATMENTSUMMARYRECORDMODULE_TYPE
@ DCM_PATIENTSTUDYMODULE_TYPE
@ DCM_STRUCTURESETMODULE_TYPE
@ DCM_GENERALSTUDYMODULE_TYPE
@ DCM_FRAMEOFREFERENCEMODULE_TYPE
@ DCM_RTGENERALPLANMODULE_TYPE
@ DCM_MEASUREDDOSEREFERENCERECORDMODULE_TYPE
@ DCM_IMAGEPIXELMODULE_TYPE
@ DCM_CLINICALTRIALSERIESMODULE_TYPE
@ DCM_OVERLAYPLANEMODULE_TYPE
@ DCM_CLINICALTRIALSUBJECTMODULE_TYPE
@ DCM_MULTIFRAMEOVERLAYMODULE_TYPE
@ DCM_CLINICALTRIALSTUDYMODULE_TYPE
@ DCM_RTTREATMENTMACHINERECORDMODULE_TYPE
@ DCM_RTDOSEROIMODULE_TYPE
@ DCM_RTTOLERANCETABLESMODULE_TYPE
@ DCM_SOPCOMMONMODULE_TYPE
@ DCM_RTSERIESMODULE_TYPE
@ DCM_RTFRACTIONSCHEMEMODULE_TYPE
@ DCM_GENERALIMAGEMODULE_TYPE
@ DCM_MULTIFRAMEMODULE_TYPE
DICOMCachedIOFileHandleBase< char > DICOMCachedIOFileHandle
"Forward" to DICOMCachedIOFileHandle.