Class collecting some DICOM helper functions.
More...
#include <mlDcmtkAccessories.h>
|
static bool | loadDcmFile (const std::string &fName, DcmFileFormat &dcmfile, std::string *errVal=NULL) |
| Will be deleted when the SRDOC and PresentationState gets converted. More...
|
|
static OFString | getModality (DcmFileFormat &dcmfile, std::string *errVal=NULL) |
| Will be deleted when the SRDOC and PresentationState gets converted. More...
|
|
static void | tokenize (const OFString &str, std::vector< OFString > &tokens, const OFString &delimiter=" ") |
| Tokenize a given string by splitting it at delimiters. More...
|
|
static std::vector< double > | stringToDoubleVector (const std::string &str, const std::string &delimiters) |
| Converts string to a vector<double>. More...
|
|
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. More...
|
|
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. More...
|
|
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 () |
|
Class collecting some DICOM helper functions.
Definition at line 104 of file mlDcmtkAccessories.h.
◆ createEmptyDRTDoseIOD()
◆ createEmptyDRTImageIOD()
◆ createEmptyDRTIonBeamsTreatmentRecordIOD()
static DCMTree::TreePtr ml::DcmtkAccessories::createEmptyDRTIonBeamsTreatmentRecordIOD |
( |
| ) |
|
|
static |
◆ createEmptyDRTIonPlanIOD()
◆ createEmptyDRTPlanIOD()
◆ createEmptyDRTStructureSetIOD()
◆ createEmptyDRTTreatmentSummaryRecordIOD()
static DCMTree::TreePtr ml::DcmtkAccessories::createEmptyDRTTreatmentSummaryRecordIOD |
( |
| ) |
|
|
static |
◆ createNewDicomTree()
◆ getModality() [1/2]
static OFString ml::DcmtkAccessories::getModality |
( |
DcmFileFormat & |
dcmfile, |
|
|
std::string * |
errVal = NULL |
|
) |
| |
|
static |
◆ 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 |
◆ loadDcmTree()
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
-
str | The string to be split. |
tokens[out] | A reference to a vector of OFString. Will contain the tokens. |
delimiter | The 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: