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.  
  | 
|   | 
| 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< double >  | stringToDoubleVector (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 () | 
|   | 
Class collecting some DICOM helper functions. 
Definition at line 104 of file mlDcmtkAccessories.h.
 
◆ createEmptyDRTDoseIOD()
◆ createEmptyDRTImageIOD()
◆ createEmptyDRTIonBeamsTreatmentRecordIOD()
◆ createEmptyDRTIonPlanIOD()
◆ createEmptyDRTPlanIOD()
◆ createEmptyDRTStructureSetIOD()
◆ createEmptyDRTTreatmentSummaryRecordIOD()
◆ createNewDicomTree()
◆ getModality() [1/2]
◆ getModality() [2/2]
Return the modality of a given Dicom tree fileHandle which represents a Dicom RT object. 
 
 
◆ getSopClassUid()
◆ loadDcmFile()
◆ 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()
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: