Ignore:
Timestamp:
Oct 15, 2008, 2:48:57 PM (16 years ago)
Author:
garnier
Message:

see history

File:
1 edited

Legend:

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

    r863 r866  
    2525//
    2626//
    27 // $Id: G4OpenGLQtViewer.cc,v 1.24 2008/06/20 13:55:06 lgarnier Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4OpenGLQtViewer.cc,v 1.26 2008/10/07 03:39:47 lgarnier Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030//
     
    167167void G4OpenGLQtViewer::CreateMainWindow (
    168168 QGLWidget* glWidget
     169 ,QString name
    169170)
    170171//////////////////////////////////////////////////////////////////////////////
     
    235236
    236237#if QT_VERSION < 0x040000
    237   GLWindow->setCaption( tr( "QGl Viewer" ));
     238  GLWindow->setCaption(name );
    238239#else
    239240  GLWindow->setLayout(mainLayout);
    240   GLWindow->setWindowTitle(tr("QGl Viewer"));
    241 #endif
    242   GLWindow->resize(300, 300);
     241  GLWindow->setWindowTitle( name);
     242#endif
     243  GLWindow->resize(fVP.GetWindowSizeHintX(), fVP.GetWindowSizeHintY());
    243244  GLWindow->move(900,300);
    244245  GLWindow->show();
     
    10571058  } else  if (fMouseAction == STYLE3) { //pick
    10581059    G4cout << "Click and pick " << G4endl;
     1060  } else {
     1061    G4cout << "Move camera point of view with mouse" << G4endl;
     1062    G4cout << "Press left/right arrows to move volume left/right" << G4endl;
     1063    G4cout << "Press up/down arrows to move volume up/down" << G4endl;
     1064    G4cout << "Press ALT+up/down arrows to move volume toward/forward" << G4endl;
     1065    G4cout << "Press SHIFT+left/right arrows to rotate volume left/right" << G4endl;
     1066    G4cout << "Press SHIFT+up/down arrows to rotate volume up/down" << G4endl;
     1067    G4cout << "Press +/- to zoom into volume" << G4endl;
     1068    G4cout << "Press ALT+/- to slow/speed auto rotation/move" << G4endl;
     1069    G4cout << "In video mode : " << G4endl;
     1070    G4cout << " Press SPACE to Start/Pause video recording " << G4endl;
     1071    G4cout << " Press RETURN to Stop video recording " << G4endl;
    10591072  }
    10601073
     
    18851898#else
    18861899    bool alpha = aImage.hasAlphaChannel();
     1900#endif
    18871901    for(int y=height-1; y >=0 ; y--) {
    18881902      QRgb * s = (QRgb*)(aImage.scanLine(y));
     
    19041918      fprintf (fp, "\n");
    19051919    }
    1906 #endif
    19071920
    19081921  }
     
    27692782
    27702783  setRecordingInfos("Parameter file "+fParameterFileName+" generated in "+fMovieTempFolderPath);
    2771   printf("Parameter file %s  generated in %s\n",fParameterFileName.toStdString().c_str(),fMovieTempFolderPath.toStdString().c_str());
    27722784  setRecordingStatus(READY_TO_ENCODE);
    27732785  return true;
Note: See TracChangeset for help on using the changeset viewer.