MeVisLab Toolbox Reference
ml::DcmtkMLConverters Class Reference

The tool function class DcmtkMLConverters. More...

#include <mlDcmtkMLConverters.h>

Static Public Member Functions

static bool convertDRTStructureSetIODBaseToCSOList (CSOList &csoList, DRTStructureSetIODBase &rtStruct, std::string *errVal=NULL, progress_callback_t progressCB=NULL, void *userData=NULL)
 Converts an RTStruct object to a CSOList object and returns true on success, false otherwise. More...
 
static bool convertDRTStructureSetROISequenceToCSOList (CSOList &csoList, DcmDRTStructureSetROISequenceInterface *structureSetROISequence, DcmDRTROIContourSequenceInterface *roiContourSequence, DcmDRTRTROIObservationsSequenceInterface *rtRoiObservationSeq, DcmDRTRTDoseROISequenceInterface *rtDoseROISequencePtr=NULL, std::string *errVal=NULL, progress_callback_t progressCB=NULL, void *userData=NULL)
 Converts an RTStruct object to a CSOList object and returns true on success, false otherwise. More...
 
static bool convertCSOListToDRTStructureSetIODBase (CSOList &csoList, DRTStructureSetIODBase &rtStruct, std::string *errVal=NULL, progress_callback_t progressCB=NULL, void *userData=NULL)
 Converts a CSOList object to RTStruct object and returns true on success, false otherwise. More...
 
static MultiFileVolumecreateVolumeReferenceFromFile (DICOMCachedIOFileHandle filename, std::string *errVal)
 Converts an image object to RTDose object and returns true on success, false otherwise. More...
 
static void constructNewSMFTreeFor (MultiFileVolume &newVolume, std::string filename, std::string *errVal, DCMTree::StructuredMFPtr altSmfPtr)
 
static void fillImageWithPixelData (MultiFileVolume &newVolume, DCMTree::TreePtr treePtr, std::string *errVal)
 
static RTBasecreateRTBaseFromDCMTreeRefCounted (DicomTree *refCountedDCMTree, bool cloneNonConstTree=true, bool alsoUseConstClones=false)
 Checks the reference counted input tree for a valid RT SOP class UID and creates and returns a corresponding RTBase object. More...
 
template<typename RT_OBJ_TYPE >
static RT_OBJ_TYPE * createTypedRTObjectFromBase (Base *basePtrVal, bool cloneNonConstTree=true, bool alsoUseConstClones=false)
 Tries to get a DicomTree from basePtrVal and to convert it to an RT object of type RT_OBJ_TYPE. More...
 

Detailed Description

The tool function class DcmtkMLConverters.

Definition at line 46 of file mlDcmtkMLConverters.h.

Member Function Documentation

◆ constructNewSMFTreeFor()

static void ml::DcmtkMLConverters::constructNewSMFTreeFor ( MultiFileVolume newVolume,
std::string  filename,
std::string *  errVal,
DCMTree::StructuredMFPtr  altSmfPtr 
)
static

◆ convertCSOListToDRTStructureSetIODBase()

static bool ml::DcmtkMLConverters::convertCSOListToDRTStructureSetIODBase ( CSOList csoList,
DRTStructureSetIODBase rtStruct,
std::string *  errVal = NULL,
progress_callback_t  progressCB = NULL,
void *  userData = NULL 
)
static

Converts a CSOList object to RTStruct object and returns true on success, false otherwise.

◆ convertDRTStructureSetIODBaseToCSOList()

static bool ml::DcmtkMLConverters::convertDRTStructureSetIODBaseToCSOList ( CSOList csoList,
DRTStructureSetIODBase rtStruct,
std::string *  errVal = NULL,
progress_callback_t  progressCB = NULL,
void *  userData = NULL 
)
static

Converts an RTStruct object to a CSOList object and returns true on success, false otherwise.

◆ convertDRTStructureSetROISequenceToCSOList()

static bool ml::DcmtkMLConverters::convertDRTStructureSetROISequenceToCSOList ( CSOList csoList,
DcmDRTStructureSetROISequenceInterface structureSetROISequence,
DcmDRTROIContourSequenceInterface roiContourSequence,
DcmDRTRTROIObservationsSequenceInterface rtRoiObservationSeq,
DcmDRTRTDoseROISequenceInterface rtDoseROISequencePtr = NULL,
std::string *  errVal = NULL,
progress_callback_t  progressCB = NULL,
void *  userData = NULL 
)
static

Converts an RTStruct object to a CSOList object and returns true on success, false otherwise.

Also takes into account DRTRTDoseROISequence which is specific to RTDoseIOD.

◆ createRTBaseFromDCMTreeRefCounted()

static RTBase* ml::DcmtkMLConverters::createRTBaseFromDCMTreeRefCounted ( DicomTree refCountedDCMTree,
bool  cloneNonConstTree = true,
bool  alsoUseConstClones = false 
)
static

Checks the reference counted input tree for a valid RT SOP class UID and creates and returns a corresponding RTBase object.

On invalid input pointers or SOPClassUIDs NULL is returned. If a duplicate of non constant input trees shall be created then pass cloneNonConstTree = true. By default the created RTBase object only makes use of a non constant input tree (i.e. constant input trees are not converted); if a duplicate for modifications is needed then pass alsoUseConstClones=true.

◆ createTypedRTObjectFromBase()

template<typename RT_OBJ_TYPE >
static RT_OBJ_TYPE* ml::DcmtkMLConverters::createTypedRTObjectFromBase ( Base basePtrVal,
bool  cloneNonConstTree = true,
bool  alsoUseConstClones = false 
)
inlinestatic

Tries to get a DicomTree from basePtrVal and to convert it to an RT object of type RT_OBJ_TYPE.

On failure NULL is returned, otherwise the created object. For cloneNonConstTree and alsoUseConstClones see createRTBaseFromDCMTreeRefCounted.

Definition at line 122 of file mlDcmtkMLConverters.h.

◆ createVolumeReferenceFromFile()

static MultiFileVolume* ml::DcmtkMLConverters::createVolumeReferenceFromFile ( DICOMCachedIOFileHandle  filename,
std::string *  errVal 
)
static

Converts an image object to RTDose object and returns true on success, false otherwise.

Converts a given DICOM filename to a MultiFileVolume which is later used to create a MLImage.

◆ fillImageWithPixelData()

static void ml::DcmtkMLConverters::fillImageWithPixelData ( MultiFileVolume newVolume,
DCMTree::TreePtr  treePtr,
std::string *  errVal 
)
static

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