12#ifndef __mlDcmtkMLConverters_H
13#define __mlDcmtkMLConverters_H
30#define SEQUENCES_ITEM_INTERFACES_IMPLEMENTED
34typedef void (*progress_callback_t)(
MLdouble progress,
void* userData);
50#ifdef SEQUENCES_ITEM_INTERFACES_IMPLEMENTED
56 progress_callback_t progressCB =
NULL,
57 void* userData =
NULL);
68 progress_callback_t progressCB =
NULL,
69 void* userData =
NULL);
77 progress_callback_t progressCB =
NULL,
78 void* userData =
NULL);
121 template <
typename RT_OBJ_TYPE>
Class representing general ML objects that support import/export via strings (setPersistentState() an...
A CSOList comprises a number of CSOs and CSOGroups and is the central object for contour segmentation...
Base object class for passing DRTStructureSetIOD objects between MeVisLab modules.
Class to provide access to DRTROIContourSequence.
Class to provide access to DRTRTDoseROISequence.
Class to provide access to DRTRTROIObservationsSequence.
Class to provide access to DRTStructureSetROISequence.
The tool function class DcmtkMLConverters.
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.
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.
static MultiFileVolume * createVolumeReferenceFromFile(DICOMCachedIOFileHandle filename, std::string *errVal)
Converts an image object to RTDose object and returns true on success, false otherwise.
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.
static void fillImageWithPixelData(MultiFileVolume &newVolume, DCMTree::TreePtr treePtr, std::string *errVal)
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.
static RTBase * createRTBaseFromDCMTreeRefCounted(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 corres...
static void constructNewSMFTreeFor(MultiFileVolume &newVolume, std::string filename, std::string *errVal, DCMTree::StructuredMFPtr altSmfPtr)
The DicomTree class can be used to transport a DCMTree::Const_TreePtr as a ml::RefCountedBase object.
Management class used by DirectDicomImport to create, represent and describe volumes composed of mult...
DcmtkBase derived base object class for base objects that wrap RT related objects.
Base object class for passing DRTStructureSetIOD objects between MeVisLab modules.
Class to provide access to DRTROIContourSequence.
Class to provide access to DRTRTDoseROISequence.
Class to provide access to DRTRTROIObservationsSequence.
Class to provide access to DRTStructureSetROISequence.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::shared_ptr< StructuredMF > StructuredMFPtr
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree