555 G4cout <<
" DicomFileMgr::Dumping To Text File " <<
G4endl;
556 if( theCTFiles.size() != 0 ) {
557 std::ofstream fout(theFileOutName);
560 fout << theMaterials.size() << std::endl;
561 std::map<G4double,G4String>::const_iterator ite;
563 for(ite = theMaterials.begin(); ite != theMaterials.end(); ite++, ii++){
564 fout << ii <<
" \"" << (*ite).second <<
"\"" << std::endl;
567 fout << theMaterialsDensity.size() << std::endl;
568 std::map<G4double,G4String>::const_iterator ite;
570 for(ite = theMaterialsDensity.begin(); ite != theMaterialsDensity.end(); ite++, ii++){
571 fout << ii <<
" \"" << (*ite).second <<
"\"" << std::endl;
576 for( mdct::const_iterator itect = theCTFiles.begin(); itect != theCTFiles.end(); itect++ ) {
577 (*itect).second->DumpMateIDsToTextFile(fout);
579 for( mdct::const_iterator itect = theCTFiles.begin(); itect != theCTFiles.end(); itect++ ) {
580 (*itect).second->DumpDensitiesToTextFile(fout);
582 for( mdct::const_iterator itect = theCTFiles.begin(); itect != theCTFiles.end(); itect++ ) {
583 (*itect).second->BuildStructureIDs();
584 (*itect).second->DumpStructureIDsToTextFile(fout);
588 for(
size_t i1 = 0; i1 < dfs.size(); i1++ ){
589 std::vector<DicomROI*> rois = dfs[i1]->GetROIs();
590 for(
size_t i2 = 0; i2 < rois.size(); i2++ ){
591 fout << rois[i2]->GetNumber()+1 <<
" \"" << rois[i2]->GetName() <<
"\"" <<
G4endl;
596 if( thePETFiles.size() != 0 ) {
597 std::ofstream fout(theFileOutName);
600 for( mdpet::const_iterator itect = thePETFiles.begin(); itect != thePETFiles.end(); itect++ ) {
601 (*itect).second->DumpActivitiesToTextFile(fout);
605 for(
size_t i1 = 0; i1 < thePlanFiles.size(); i1++ ){
606 thePlanFiles[i1]->DumpToFile();
std::vector< DicomFileStructure * > GetStructFiles() const
G4GLOB_DLL std::ostream G4cout
void DumpHeaderToTextFile(std::ofstream &fout)