Changeset 1042 for trunk/source/visualization/OpenGL
- Timestamp:
- May 14, 2009, 6:24:00 PM (15 years ago)
- Location:
- trunk/source/visualization/OpenGL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/include/G4OpenGLViewer.hh
r1041 r1042 114 114 G4int fPrintSizeY; 115 115 G4String fPrintFilename; 116 G4intfPrintFilenameIndex;116 int fPrintFilenameIndex; 117 117 unsigned int fWinSize_x, fWinSize_y; 118 118 G4float fPointSize; -
trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc
r1041 r1042 84 84 fPrintSizeX(-1), 85 85 fPrintSizeY(-1), 86 fPrintFilename ("G4OpenGL .eps"),86 fPrintFilename ("G4OpenGL"), 87 87 fPrintFilenameIndex(0), 88 88 fPointSize (0), … … 503 503 G4cerr << "Error while saving file... "<<getRealPrintFilename().c_str()<< G4endl; 504 504 } else { 505 G4cout << "File "<< fPrintFilename.c_str()<<" has been saved " << G4endl;505 G4cout << "File "<<getRealPrintFilename().c_str()<<" has been saved " << G4endl; 506 506 } 507 507 … … 691 691 692 692 void G4OpenGLViewer::setPrintFilename(G4String name,G4bool inc) { 693 #ifdef G4DEBUG_VIS_OGL 694 printf("G4OpenGLViewer::setPrintFilename :%s Inc:%d\n",name.c_str(),inc); 695 #endif 696 693 697 if (name != "") { 694 698 fPrintFilename = name; … … 704 708 705 709 std::string G4OpenGLViewer::getRealPrintFilename() { 706 std:: 710 std::string temp = fPrintFilename; 707 711 if (fPrintFilenameIndex != -1) { 708 temp +="_"+fPrintFilenameIndex; 712 temp += std::string("_"); 713 std::ostringstream os; 714 os << fPrintFilenameIndex; 715 std::string nb_str = os.str(); 716 temp += nb_str; 709 717 } 710 718 temp += ".eps"; 719 #ifdef G4DEBUG_VIS_OGL 720 printf("G4OpenGLViewer::getRealPrintFilename :%s --%d\n",temp.c_str(),fPrintFilenameIndex); 721 #endif 711 722 return temp; 712 723 }
Note: See TracChangeset
for help on using the changeset viewer.