Changeset 866 for trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc
- Timestamp:
- Oct 15, 2008, 2:48:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r863 r866 25 25 // 26 26 // 27 // $Id: G4OpenGLQtViewer.cc,v 1.2 4 2008/06/20 13:55:06lgarnier 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: $ 29 29 // 30 30 // … … 167 167 void G4OpenGLQtViewer::CreateMainWindow ( 168 168 QGLWidget* glWidget 169 ,QString name 169 170 ) 170 171 ////////////////////////////////////////////////////////////////////////////// … … 235 236 236 237 #if QT_VERSION < 0x040000 237 GLWindow->setCaption( tr( "QGl Viewer" ));238 GLWindow->setCaption(name ); 238 239 #else 239 240 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()); 243 244 GLWindow->move(900,300); 244 245 GLWindow->show(); … … 1057 1058 } else if (fMouseAction == STYLE3) { //pick 1058 1059 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; 1059 1072 } 1060 1073 … … 1885 1898 #else 1886 1899 bool alpha = aImage.hasAlphaChannel(); 1900 #endif 1887 1901 for(int y=height-1; y >=0 ; y--) { 1888 1902 QRgb * s = (QRgb*)(aImage.scanLine(y)); … … 1904 1918 fprintf (fp, "\n"); 1905 1919 } 1906 #endif1907 1920 1908 1921 } … … 2769 2782 2770 2783 setRecordingInfos("Parameter file "+fParameterFileName+" generated in "+fMovieTempFolderPath); 2771 printf("Parameter file %s generated in %s\n",fParameterFileName.toStdString().c_str(),fMovieTempFolderPath.toStdString().c_str());2772 2784 setRecordingStatus(READY_TO_ENCODE); 2773 2785 return true;
Note: See TracChangeset
for help on using the changeset viewer.