MeVisLab Toolbox Reference
ml::DcmtkAccessories Class Reference

Class collecting some DICOM helper functions. More...

#include <mlDcmtkAccessories.h>

Static Public Member Functions

static bool loadDcmFile (const std::string &fName, DcmFileFormat &dcmfile, std::string *errVal=NULL)
 Will be deleted when the SRDOC and PresentationState gets converted.
 
static OFString getModality (DcmFileFormat &dcmfile, std::string *errVal=NULL)
 Will be deleted when the SRDOC and PresentationState gets converted.
 
static void tokenize (const OFString &str, std::vector< OFString > &tokens, const OFString &delimiter=" ")
 Tokenize a given string by splitting it at delimiters.
 
static std::vector< doublestringToDoubleVector (const std::string &str, const std::string &delimiters)
 Converts string to a vector<double>.
 
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 MLDICOMCachedIOTreeCache singleton.
 
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 OFString getSopClassUid (DCMTree::TreePtr &dcmTree, std::string *errVal)
 
static DCMTree::TreePtr createNewDicomTree ()
 
static DCMTree::TreePtr createEmptyDRTDoseIOD ()
 
static DCMTree::TreePtr createEmptyDRTImageIOD ()
 
static DCMTree::TreePtr createEmptyDRTStructureSetIOD ()
 
static DCMTree::TreePtr createEmptyDRTPlanIOD ()
 
static DCMTree::TreePtr createEmptyDRTIonPlanIOD ()
 
static DCMTree::TreePtr createEmptyDRTIonBeamsTreatmentRecordIOD ()
 
static DCMTree::TreePtr createEmptyDRTTreatmentSummaryRecordIOD ()
 

Detailed Description

Class collecting some DICOM helper functions.

Definition at line 104 of file mlDcmtkAccessories.h.

Member Function Documentation

◆ createEmptyDRTDoseIOD()

static DCMTree::TreePtr ml::DcmtkAccessories::createEmptyDRTDoseIOD ( )
static

◆ createEmptyDRTImageIOD()

static DCMTree::TreePtr ml::DcmtkAccessories::createEmptyDRTImageIOD ( )
static

◆ createEmptyDRTIonBeamsTreatmentRecordIOD()

static DCMTree::TreePtr ml::DcmtkAccessories::createEmptyDRTIonBeamsTreatmentRecordIOD ( )
static

◆ createEmptyDRTIonPlanIOD()

static DCMTree::TreePtr ml::DcmtkAccessories::createEmptyDRTIonPlanIOD ( )
static

◆ createEmptyDRTPlanIOD()

static DCMTree::TreePtr ml::DcmtkAccessories::createEmptyDRTPlanIOD ( )
static

◆ createEmptyDRTStructureSetIOD()

static DCMTree::TreePtr ml::DcmtkAccessories::createEmptyDRTStructureSetIOD ( )
static

◆ createEmptyDRTTreatmentSummaryRecordIOD()

static DCMTree::TreePtr ml::DcmtkAccessories::createEmptyDRTTreatmentSummaryRecordIOD ( )
static

◆ createNewDicomTree()

static DCMTree::TreePtr ml::DcmtkAccessories::createNewDicomTree ( )
static

◆ getModality() [1/2]

static OFString ml::DcmtkAccessories::getModality ( DcmFileFormat & dcmfile,
std::string * errVal = NULL )
static

Will be deleted when the SRDOC and PresentationState gets converted.

◆ getModality() [2/2]

static OFString ml::DcmtkAccessories::getModality ( DCMTree::TreePtr & dcmTree,
std::string * errVal = NULL )
static

Return the modality of a given Dicom tree fileHandle which represents a Dicom RT object.

◆ getSopClassUid()

static OFString ml::DcmtkAccessories::getSopClassUid ( DCMTree::TreePtr & dcmTree,
std::string * errVal )
static

◆ loadDcmFile()

static bool ml::DcmtkAccessories::loadDcmFile ( const std::string & fName,
DcmFileFormat & dcmfile,
std::string * errVal = NULL )
static

Will be deleted when the SRDOC and PresentationState gets converted.

◆ loadDcmTree()

static bool ml::DcmtkAccessories::loadDcmTree ( DICOMCachedIOFileHandle & fileHandle,
DCMTree::TreePtr & dcmTree,
std::string * errVal = NULL )
static

Load a Dicom Tree from the given fileHandle. The tree will be cached for further queries in the MLDICOMCachedIOTreeCache singleton.

◆ stringToDoubleVector()

static std::vector< double > ml::DcmtkAccessories::stringToDoubleVector ( const std::string & str,
const std::string & delimiters )
static

Converts string to a vector<double>.

The string is first splitted using delimiter characters and then obtained tokens are used to populate the vector.

Parameters
str- string to be converted.
delimiter- string containing string delimiters.

◆ tokenize()

static void ml::DcmtkAccessories::tokenize ( const OFString & str,
std::vector< OFString > & tokens,
const OFString & delimiter = " " )
static

Tokenize a given string by splitting it at delimiters.

The parts are pushed back into the tokens vector.

Parameters
strThe string to be split.
tokens[out]A reference to a vector of OFString. Will contain the tokens.
delimiterThe delimiter used to split the str.
Returns
True if the file could be loaded completely into memory, False else.

The documentation for this class was generated from the following file: