Ignore:
Timestamp:
May 14, 2009, 6:24:00 PM (15 years ago)
Author:
garnier
Message:

avant cvs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc

    r1041 r1042  
    8484fPrintSizeX(-1),
    8585fPrintSizeY(-1),
    86 fPrintFilename ("G4OpenGL.eps"),
     86fPrintFilename ("G4OpenGL"),
    8787fPrintFilenameIndex(0),
    8888fPointSize (0),
     
    503503    G4cerr << "Error while saving file... "<<getRealPrintFilename().c_str()<< G4endl;
    504504  } else {
    505     G4cout << "File "<<fPrintFilename.c_str()<<" has been saved " << G4endl;
     505    G4cout << "File "<<getRealPrintFilename().c_str()<<" has been saved " << G4endl;
    506506  }
    507507
     
    691691
    692692void 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
    693697  if (name != "") {
    694698    fPrintFilename = name;
     
    704708
    705709std::string G4OpenGLViewer::getRealPrintFilename() {
    706   std:: string temp = fPrintFilename;
     710  std::string temp = fPrintFilename;
    707711  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;
    709717  }
    710718  temp += ".eps";
     719#ifdef G4DEBUG_VIS_OGL
     720  printf("G4OpenGLViewer::getRealPrintFilename :%s --%d\n",temp.c_str(),fPrintFilenameIndex);
     721#endif
    711722  return temp;
    712723}
Note: See TracChangeset for help on using the changeset viewer.