Changeset 608 for trunk/geant4
- Timestamp:
- Nov 15, 2007, 7:41:15 PM (17 years ago)
- Location:
- trunk/geant4
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/config/sys/Darwin-g++.gmk
r606 r608 55 55 endif 56 56 ifndef QTLIBS 57 QT3LIBS := -L$(QTHOME)/lib -lqt -mt-lqui57 QT3LIBS := -L$(QTHOME)/lib -lqt -lqui 58 58 QT4LIBS := -F$(QTHOME)/lib -framework QtCore -framework QtGui 59 59 QT4LIBS += -framework QtOpenGL -framework QtSql -framework QtXml -
trunk/geant4/interfaces/basic/include/G4UIQt.hh
r606 r608 25 25 // 26 26 // 27 // $Id: G4UIQt.hh,v 1. 4 2007/11/13 17:48:51lgarnier Exp $27 // $Id: G4UIQt.hh,v 1.6 2007/11/15 18:24:27 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 144 144 145 145 private slots : 146 void ExitSession(); 146 147 void ClearButtonCallback(); 147 148 void CommandEnteredCallback(); 148 149 void ButtonCallback(const QString&); 149 150 void HelpTreeClicCallback(); 150 #if QT_VERSION < 0x040000151 void HelpTreeDoubleClicCallback( QListViewItem*, int);152 #else153 151 void HelpTreeDoubleClicCallback( QTreeWidgetItem*, int); 154 #endif155 152 void ShowHelpCallback(); 156 153 void CommandHistoryCallback(); -
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r607 r608 25 25 // 26 26 // 27 // $Id: G4UIQt.cc,v 1. 9 2007/11/15 10:10:02lgarnier Exp $27 // $Id: G4UIQt.cc,v 1.12 2007/11/15 18:24:27 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 60 60 #include <qsignalmapper.h> 61 61 62 #include <qmainwindow.h> 62 63 #if QT_VERSION >= 0x040000 63 64 #include <qmenu.h> 64 65 #include <qlistwidget.h> 65 66 #include <qtreewidget.h> 66 #include <qmainwindow.h>67 67 #else 68 68 #include <qaction.h> … … 106 106 :fHelpDialog(NULL) 107 107 { 108 #ifdef GEANT4_QT_DEBUG 108 109 printf("G4UIQt::Initialise %d %s\n",argc,argv[0]); 110 #endif 109 111 G4Qt* interactorManager = G4Qt::getInstance (argc,argv,(char*)"Qt"); 110 112 G4UImanager* UI = G4UImanager::GetUIpointer(); … … 113 115 fMainWindow = new QMainWindow(); 114 116 117 #ifdef GEANT4_QT_DEBUG 115 118 printf("G4UIQt::Initialise after main window creation\n"); 119 #endif 116 120 #if QT_VERSION < 0x040000 117 121 fMainWindow->setCaption( tr( "G4UI Session" )); … … 132 136 fCommandHistoryArea = new QListView(); 133 137 fCommandHistoryArea->setSelectionMode(QListView::Single); 138 connect(fCommandHistoryArea, SIGNAL(selectionChanged()), SLOT(CommandHistoryCallback())); 134 139 #else 135 140 fCommandHistoryArea = new QListWidget(); 136 141 fCommandHistoryArea->setSelectionMode(QAbstractItemView::SingleSelection); 137 #endif138 142 connect(fCommandHistoryArea, SIGNAL(itemSelectionChanged()), SLOT(CommandHistoryCallback())); 143 #endif 139 144 fCommandHistoryArea->installEventFilter(this); 140 145 fCommandLabel = new QLabel("",fMainWindow); … … 200 205 // Add a quit subMenu 201 206 QPopupMenu *fileMenu = new QPopupMenu( fMainWindow); 202 fileMenu->insertItem( "&Quitter", this, SLOT( close()), CTRL+Key_Q );207 fileMenu->insertItem( "&Quitter", this, SLOT(ExitSession()), CTRL+Key_Q ); 203 208 fMainWindow->menuBar()->insertItem( QString("&File"), fileMenu ); 204 209 … … 213 218 // Add a quit subMenu 214 219 QMenu *fileMenu = fMainWindow->menuBar()->addMenu("File"); 215 fileMenu->addAction("Quitter", fMainWindow, SLOT(close()));220 fileMenu->addAction("Quitter", this, SLOT(ExitSession())); 216 221 217 222 // Add a Help menu … … 261 266 262 267 #if QT_VERSION >= 0x040000 268 #if QT_VERSION >= 0x040200 263 269 fMainWindow->setVisible(true); 270 #else 271 fMainWindow->show(); 272 #endif 264 273 #else 265 274 fMainWindow->show(); … … 269 278 270 279 280 #ifdef GEANT4_QT_DEBUG 271 281 printf("disable secondary loop\n"); 282 #endif 272 283 interactorManager->DisableSecondaryLoop (); // TO KEEP 273 284 ((QApplication*)interactorManager->GetMainInteractor())->exec(); … … 282 293 283 294 interactorManager->EnableSecondaryLoop (); 295 #ifdef GEANT4_QT_DEBUG 284 296 printf("enable secondary loop\n"); 297 #endif 285 298 return this; 286 299 } … … 326 339 if (!aState) return; 327 340 341 #ifdef GEANT4_QT_DEBUG 328 342 printf("G4UIQt::PauseSessionStart\n"); 343 #endif 329 344 if(aState=="G4_pause> ") { // TO KEEP 330 345 SecondaryLoop ("Pause, type continue to exit this state"); // TO KEEP … … 349 364 if (!aPrompt) return; 350 365 366 #ifdef GEANT4_QT_DEBUG 351 367 printf("G4UIQt::SecondaryLoop\n"); 368 #endif 352 369 G4Qt* interactorManager = G4Qt::getInstance (); // TO KEEP ? 353 370 Prompt(aPrompt); // TO KEEP … … 376 393 if (!interactorManager) return 0; 377 394 378 // printf(" **************** G4 Cout : %s\n",(char*)aString.data());379 395 #if QT_VERSION < 0x040000 380 396 fTextArea->append(QString((char*)aString.data()).simplifyWhiteSpace()); … … 895 911 ) 896 912 { 913 #ifdef GEANT4_QT_DEBUG 897 914 printf("G4UIQt::GetHelpChoice SHOULD NEVER GO HERE"); 915 #endif 898 916 return true; 899 917 } … … 905 923 ) 906 924 { 925 #ifdef GEANT4_QT_DEBUG 907 926 printf("G4UIQt::ExitHelp SHOULD NEVER GO HERE"); 927 #endif 908 928 } 909 929 … … 1040 1060 } 1041 1061 1062 /** Called when user exit session 1063 */ 1064 void G4UIQt::ExitSession ( 1065 ) 1066 { 1067 SessionTerminate(); 1068 } 1069 1042 1070 1043 1071 /** Callback call when "click on a menu entry.<br> … … 1071 1099 TerminalHelp(command); 1072 1100 } 1101 #ifdef GEANT4_QT_DEBUG 1073 1102 printf("after \n"); 1103 #endif 1074 1104 if(exitSession==true) 1075 1105 SessionTerminate(); … … 1172 1202 ) 1173 1203 { 1204 #ifdef GEANT4_QT_DEBUG 1174 1205 printf("G4UIQt::HelpTreeDoubleClicCallback"); 1206 #endif 1175 1207 HelpTreeClicCallback(); 1176 1208 fCommandArea->setText(item->text (1)); -
trunk/geant4/interfaces/basic/src/G4UIQt_moc.cc
r606 r608 3 3 ** 4 4 ** Created: Tue Nov 13 18:13:09 2007 5 ** by: The Qt MOC ($Id: G4UIQt_moc.cc,v 1. 6 2007/11/14 10:38:49lgarnier Exp $)5 ** by: The Qt MOC ($Id: G4UIQt_moc.cc,v 1.8 2007/11/15 18:24:28 lgarnier Exp $) 6 6 ** 7 7 ** WARNING! All changes made in this file will be lost! … … 19 19 #include <private/qucomextra_p.h> 20 20 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26) 21 #error "This file was generated using the moc from 3.3. 5. It"21 #error "This file was generated using the moc from 3.3.8. It" 22 22 #error "cannot be used with the include files from this version of Qt." 23 23 #error "(The moc has changed too much.)" … … 57 57 return metaObj; 58 58 QMetaObject* parentObject = QObject::staticMetaObject(); 59 static const QUMethod slot_0 = {"ClearButtonCallback", 0, 0 }; 60 static const QUMethod slot_1 = {"CommandEnteredCallback", 0, 0 }; 61 static const QUParameter param_slot_2[] = { 59 static const QUMethod slot_0 = {"ExitSession", 0, 0 }; 60 static const QUMethod slot_1 = {"ClearButtonCallback", 0, 0 }; 61 static const QUMethod slot_2 = {"CommandEnteredCallback", 0, 0 }; 62 static const QUParameter param_slot_3[] = { 62 63 { 0, &static_QUType_QString, 0, QUParameter::In } 63 64 }; 64 static const QUMethod slot_ 2 = {"ButtonCallback", 1, param_slot_2};65 static const QUMethod slot_ 3= {"HelpTreeClicCallback", 0, 0 };66 static const QUParameter param_slot_ 4[] = {67 { 0, &static_QUType_ptr, "Q TreeWidgetItem", QUParameter::In },65 static const QUMethod slot_3 = {"ButtonCallback", 1, param_slot_3 }; 66 static const QUMethod slot_4 = {"HelpTreeClicCallback", 0, 0 }; 67 static const QUParameter param_slot_5[] = { 68 { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }, 68 69 { 0, &static_QUType_int, 0, QUParameter::In } 69 70 }; 70 static const QUMethod slot_ 4 = {"HelpTreeDoubleClicCallback", 2, param_slot_4};71 static const QUMethod slot_ 5= {"ShowHelpCallback", 0, 0 };72 static const QUMethod slot_ 6= {"CommandHistoryCallback", 0, 0 };71 static const QUMethod slot_5 = {"HelpTreeDoubleClicCallback", 2, param_slot_5 }; 72 static const QUMethod slot_6 = {"ShowHelpCallback", 0, 0 }; 73 static const QUMethod slot_7 = {"CommandHistoryCallback", 0, 0 }; 73 74 static const QMetaData slot_tbl[] = { 74 { "ClearButtonCallback()", &slot_0, QMetaData::Private }, 75 { "CommandEnteredCallback()", &slot_1, QMetaData::Private }, 76 { "ButtonCallback(const QString&)", &slot_2, QMetaData::Private }, 77 { "HelpTreeClicCallback()", &slot_3, QMetaData::Private }, 78 { "HelpTreeDoubleClicCallback(QTreeWidgetItem*,int)", &slot_4, QMetaData::Private }, 79 { "ShowHelpCallback()", &slot_5, QMetaData::Private }, 80 { "CommandHistoryCallback()", &slot_6, QMetaData::Private } 75 { "ExitSession()", &slot_0, QMetaData::Private }, 76 { "ClearButtonCallback()", &slot_1, QMetaData::Private }, 77 { "CommandEnteredCallback()", &slot_2, QMetaData::Private }, 78 { "ButtonCallback(const QString&)", &slot_3, QMetaData::Private }, 79 { "HelpTreeClicCallback()", &slot_4, QMetaData::Private }, 80 { "HelpTreeDoubleClicCallback(QListViewItem*,int)", &slot_5, QMetaData::Private }, 81 { "ShowHelpCallback()", &slot_6, QMetaData::Private }, 82 { "CommandHistoryCallback()", &slot_7, QMetaData::Private } 81 83 }; 82 84 static const QUParameter param_signal_0[] = { … … 89 91 metaObj = QMetaObject::new_metaobject( 90 92 "G4UIQt", parentObject, 91 slot_tbl, 7,93 slot_tbl, 8, 92 94 signal_tbl, 1, 93 95 #ifndef QT_NO_PROPERTIES … … 120 122 { 121 123 switch ( _id - staticMetaObject()->slotOffset() ) { 122 case 0: ClearButtonCallback(); break; 123 case 1: CommandEnteredCallback(); break; 124 case 2: ButtonCallback((const QString&)static_QUType_QString.get(_o+1)); break; 125 case 3: HelpTreeClicCallback(); break; 126 #if QT_VERSION < 0x040000 127 case 4: HelpTreeDoubleClicCallback((QListViewItem*)static_QUType_ptr.get(_o+1),(int)static_QUType_int.get(_o+2)); break; 128 #else 129 case 4: HelpTreeDoubleClicCallback((QTreeWidgetItem*)static_QUType_ptr.get(_o+1),(int)static_QUType_int.get(_o+2)); break; 130 #endif 131 case 5: ShowHelpCallback(); break; 132 case 6: CommandHistoryCallback(); break; 124 case 0: ExitSession(); break; 125 case 1: ClearButtonCallback(); break; 126 case 2: CommandEnteredCallback(); break; 127 case 3: ButtonCallback((const QString&)static_QUType_QString.get(_o+1)); break; 128 case 4: HelpTreeClicCallback(); break; 129 case 5: HelpTreeDoubleClicCallback((QListViewItem*)static_QUType_ptr.get(_o+1),(int)static_QUType_int.get(_o+2)); break; 130 case 6: ShowHelpCallback(); break; 131 case 7: CommandHistoryCallback(); break; 133 132 default: 134 133 return QObject::qt_invoke( _id, _o ); … … 155 154 bool G4UIQt::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; } 156 155 #endif // QT_NO_PROPERTIES 156 157 157 158 158 #endif … … 188 188 0, // classname 189 189 0, 0, // classinfo 190 8, 10, // methods190 9, 10, // methods 191 191 0, 0, // properties 192 192 0, 0, // enums/sets … … 197 197 // slots: signature, parameters, type, tag, flags 198 198 32, 31, 31, 31, 0x08, 199 54, 31, 31, 31, 0x08, 200 79, 31, 31, 31, 0x08, 201 103, 31, 31, 31, 0x08, 202 126, 175, 31, 31, 0x08, 203 177, 31, 31, 31, 0x08, 204 196, 31, 31, 31, 0x08, 199 46, 31, 31, 31, 0x08, 200 68, 31, 31, 31, 0x08, 201 93, 31, 31, 31, 0x08, 202 117, 31, 31, 31, 0x08, 203 140, 189, 31, 31, 0x08, 204 191, 31, 31, 31, 0x08, 205 210, 31, 31, 31, 0x08, 205 206 206 207 0 // eod … … 209 210 static const char qt_meta_stringdata_G4UIQt[] = { 210 211 "G4UIQt\0myClicked(QString)\0text\0\0" 211 "ClearButtonCallback()\0CommandEnteredCallback()\0" 212 "ExitSession()\0ClearButtonCallback()\0" 213 "CommandEnteredCallback()\0" 212 214 "ButtonCallback(QString)\0HelpTreeClicCallback()\0" 213 215 "HelpTreeDoubleClicCallback(QTreeWidgetItem*,int)\0" … … 245 247 switch (_id) { 246 248 case 0: myClicked((*reinterpret_cast< const QString(*)>(_a[1]))); break; 247 case 1: ClearButtonCallback(); break; 248 case 2: CommandEnteredCallback(); break; 249 case 3: ButtonCallback((*reinterpret_cast< const QString(*)>(_a[1]))); break; 250 case 4: HelpTreeClicCallback(); break; 251 case 5: HelpTreeDoubleClicCallback((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; 252 case 6: ShowHelpCallback(); break; 253 case 7: CommandHistoryCallback(); break; 249 case 1: ExitSession(); break; 250 case 2: ClearButtonCallback(); break; 251 case 3: CommandEnteredCallback(); break; 252 case 4: ButtonCallback((*reinterpret_cast< const QString(*)>(_a[1]))); break; 253 case 5: HelpTreeClicCallback(); break; 254 case 6: HelpTreeDoubleClicCallback((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; 255 case 7: ShowHelpCallback(); break; 256 case 8: CommandHistoryCallback(); break; 254 257 } 255 _id -= 8;258 _id -= 9; 256 259 } 257 260 return _id; -
trunk/geant4/interfaces/common/src/G4Qt.cc
r606 r608 25 25 // 26 26 // 27 // $Id: G4Qt.cc,v 1. 5 2007/11/15 10:10:02lgarnier Exp $27 // $Id: G4Qt.cc,v 1.7 2007/11/15 18:24:28 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 88 88 /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ 89 89 { 90 #ifdef GEANT4_QT_DEBUG 90 91 printf("G4Qt::G4Qt try to inited Qt\n"); 92 #endif 91 93 if(QtInited==FALSE) { //Qt should be Inited once ! 94 #ifdef GEANT4_QT_DEBUG 92 95 printf("G4Qt::G4Qt inited Qt\n"); 96 #endif 93 97 #if QT_VERSION < 0x040000 94 98 qApp = new QApplication (a_argn, a_args); 95 99 // QApplication qApp(a_argn, a_args); 100 // if(&qApp == NULL) { 96 101 #else 97 102 new QApplication (a_argn, a_args); 98 103 #endif 104 if(!qApp) { 99 105 100 if(qApp==NULL) {101 106 G4cout << "G4Qt : Unable to init Qt." << G4endl; 102 107 } else { 103 108 QtInited = TRUE; 109 //#if QT_VERSION < 0x040000 110 // SetMainInteractor (&qApp); 111 //#else 104 112 SetMainInteractor (qApp); 113 //#endif 105 114 SetArguments (a_argn,a_args); 115 #ifdef GEANT4_QT_DEBUG 106 116 printf("G4Qt::G4Qt inited Qt END\n"); 117 #endif 107 118 } 108 119 } 109 if (qApp) 120 #ifdef GEANT4_QT_DEBUG 121 if (qApp) { 110 122 printf("G4Qt::qApp exist\n"); 111 else123 } else { 112 124 printf("G4Qt::qApp not exist\n"); 125 } 126 #endif 113 127 // AddDispatcher ((G4DispatchFunction)XtDispatchEvent); 114 128 } -
trunk/geant4/visualization/OpenGL/include/G4OpenGL.hh
r593 r608 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4OpenGL.hh,v 1. 5 2007/02/08 14:01:55allison Exp $27 // GEANT4 tag $Name: geant4-09-00-ref-01$26 // $Id: G4OpenGL.hh,v 1.6 2007/11/15 10:14:23 allison Exp $ 27 // GEANT4 tag $Name: $ 28 28 // 29 29 // G.Barrand. 30 31 #ifdef G4VIS_BUILD_OPENGL_DRIVER 30 32 31 33 #ifndef G4OpenGL_h … … 42 44 43 45 #endif 46 47 #endif -
trunk/geant4/visualization/OpenGL/include/G4OpenGLBitMapStore.hh
r607 r608 25 25 // 26 26 // 27 // $Id: G4OpenGLBitMapStore.hh,v 1. 1 2007/01/09 10:11:16allison Exp $28 // GEANT4 tag $Name: geant4-09-00-ref-01$27 // $Id: G4OpenGLBitMapStore.hh,v 1.2 2007/11/15 10:14:23 allison Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // … … 40 40 // glBitmap(size, size, size/2., size/2., 0., 0., circle); 41 41 42 #ifdef G4VIS_BUILD_OPENGL_DRIVER 42 43 43 44 #ifndef G4OPENGLBITMAPSTORE_HH … … 74 75 75 76 #endif 77 78 #endif -
trunk/geant4/visualization/OpenGL/src/G4OpenGLBitMapStore.cc
r607 r608 25 25 // 26 26 // 27 // $Id: G4OpenGLBitMapStore.cc,v 1. 3 2007/04/04 16:50:26allison Exp $28 // GEANT4 tag $Name: geant4-09-00-ref-01$27 // $Id: G4OpenGLBitMapStore.cc,v 1.4 2007/11/15 10:14:23 allison Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // 31 31 // John Allison 6th January 2007 32 33 #ifdef G4VIS_BUILD_OPENGL_DRIVER 32 34 33 35 #include "G4OpenGLBitMapStore.hh" … … 101 103 102 104 } // End namespace G4OpenGLBitMapStore. 105 106 #endif -
trunk/geant4/visualization/OpenGL/src/G4OpenGLImmediateQt.cc
r593 r608 25 25 // 26 26 // 27 // $Id: G4OpenGLImmediateQt.cc,v 1. 1 2007/09/28 14:44:13lgarnier Exp $27 // $Id: G4OpenGLImmediateQt.cc,v 1.2 2007/11/15 18:24:28 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 58 58 G4VViewer* G4OpenGLImmediateQt::CreateViewer 59 59 (G4VSceneHandler& scene, const G4String& name) { 60 #ifdef GEANT4_QT_DEBUG 60 61 printf("G4OpenGLImmediateQt::CreateViewer \n"); 62 #endif 61 63 G4VViewer* pView = 62 64 new G4OpenGLImmediateQtViewer … … 76 78 " new G4OpenGLImmediateQtViewer." << G4endl; 77 79 } 80 #ifdef GEANT4_QT_DEBUG 78 81 printf("G4OpenGLImmediateQt::CreateViewer END \n"); 82 #endif 79 83 return pView; 80 84 } -
trunk/geant4/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc
r606 r608 25 25 // 26 26 // 27 // $Id: G4OpenGLImmediateQtViewer.cc,v 1. 2 2007/11/13 17:48:51lgarnier Exp $27 // $Id: G4OpenGLImmediateQtViewer.cc,v 1.3 2007/11/15 18:24:28 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 53 53 54 54 G4OpenGLImmediateQtViewer::~G4OpenGLImmediateQtViewer() { 55 #ifdef GEANT4_QT_DEBUG 55 56 printf("GLWidget::~GLWidget \n"); 57 #endif 56 58 makeCurrent(); 59 #ifdef GEANT4_QT_DEBUG 57 60 printf("GLWidget::~GLWidget END\n"); 61 #endif 58 62 } 59 63 60 64 void G4OpenGLImmediateQtViewer::Initialise() { 65 #ifdef GEANT4_QT_DEBUG 61 66 printf("GLWidget::Initialise \n"); 67 #endif 68 #ifdef GEANT4_QT_DEBUG 62 69 printf("readyToPaint = false \n"); 70 #endif 63 71 readyToPaint = false; 64 72 CreateGLQtContext (); 73 #ifdef GEANT4_QT_DEBUG 65 74 printf("G4OpenGLImmediateQtViewer::Initialise () 2\n"); 75 #endif 66 76 67 77 CreateMainWindow (this); 78 #ifdef GEANT4_QT_DEBUG 68 79 printf("G4OpenGLImmediateQtViewer::Initialise () 3\n"); 80 #endif 69 81 70 82 CreateFontLists (); // FIXME Does nothing! 71 83 84 #ifdef GEANT4_QT_DEBUG 72 85 printf("readyToPaint = true \n"); 86 #endif 73 87 readyToPaint = true; 74 88 75 89 // First Draw 76 90 SetView(); 91 #ifdef GEANT4_QT_DEBUG 77 92 printf(" ClearView\n"); 93 #endif 78 94 ClearView (); //ok, put the background correct 79 95 ShowView(); … … 85 101 InitializeGLView (); 86 102 103 #ifdef GEANT4_QT_DEBUG 87 104 printf("G4OpenGLImmediateQtViewer::InitialiseGL () 1\n"); 105 #endif 88 106 89 107 // If a double buffer context has been forced upon us, ignore the … … 92 110 // clear the buffers and window. 93 111 ClearView (); 112 #ifdef GEANT4_QT_DEBUG 94 113 // printf("G4OpenGLImmediateQtViewer::InitialiseGL () 2\n"); 114 #endif 95 115 FinishView (); 96 116 … … 100 120 glDepthMask (GL_TRUE); 101 121 122 #ifdef GEANT4_QT_DEBUG 102 123 printf("G4OpenGLImmediateQtViewer::InitialiseGL -------------------------------------------------------------------------------------\n"); 124 #endif 103 125 } 104 126 … … 106 128 void G4OpenGLImmediateQtViewer::DrawView () { 107 129 130 #ifdef GEANT4_QT_DEBUG 108 131 printf("G4OpenGLImmediateQtViewer::DrawView %d %d VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV\n",WinSize_x, WinSize_y); 132 #endif 109 133 // If a double buffer context has been forced upon us, ignore the 110 134 // back buffer for this OpenGLImmediate view. … … 119 143 if(style!=G4ViewParameters::hlr && 120 144 haloing_enabled) { 145 #ifdef GEANT4_QT_DEBUG 121 146 printf("G4OpenGLImmediateQtViewer::DrawView DANS LE IF\n"); 147 #endif 122 148 123 149 HaloingFirstPass (); … … 133 159 ProcessView (); 134 160 FinishView (); 161 #ifdef GEANT4_QT_DEBUG 135 162 printf("G4OpenGLImmediateQtViewer::DrawView %d %d ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n",WinSize_x, WinSize_y); 163 #endif 136 164 readyToPaint = false; 137 165 } … … 144 172 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 145 173 { 174 #ifdef GEANT4_QT_DEBUG 146 175 printf("G4OpenGLImmediateQtViewer::FinishView VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV\n"); 176 #endif 147 177 148 178 glFlush (); 179 #ifdef GEANT4_QT_DEBUG 149 180 printf("G4OpenGLImmediateQtViewer::FinishView ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n"); 181 #endif 150 182 151 183 } … … 168 200 glOrtho(-0.5, +0.5, +0.5, -0.5, 4.0, 15.0); 169 201 glMatrixMode(GL_MODELVIEW); 202 #ifdef GEANT4_QT_DEBUG 170 203 printf("G4OpenGLImmediateQtViewer::resizeGL ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n"); 204 #endif 171 205 } 172 206 … … 183 217 } 184 218 nbPaint++; 219 #ifdef GEANT4_QT_DEBUG 185 220 printf("\n\nG4OpenGLImmediateQtViewer::paintGL VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV %d ready %d\n",nbPaint,readyToPaint); 221 #endif 186 222 WinSize_x = (G4int) width(); 187 223 WinSize_y = (G4int) height(); … … 190 226 191 227 SetView(); 228 #ifdef GEANT4_QT_DEBUG 192 229 // // printf("before ClearView\n"); 230 #endif 231 #ifdef GEANT4_QT_DEBUG 193 232 printf(" ClearView\n"); 233 #endif 194 234 195 235 ClearView (); //ok, put the background correct … … 198 238 199 239 240 #ifdef GEANT4_QT_DEBUG 200 241 printf("G4OpenGLImmediateQtViewer::paintGL ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %d ready %d\n\n\n",nbPaint,readyToPaint); 242 #endif 201 243 } 202 244 -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r606 r608 25 25 // 26 26 // 27 // $Id: G4OpenGLQtViewer.cc,v 1. 6 2007/11/14 11:49:00lgarnier Exp $27 // $Id: G4OpenGLQtViewer.cc,v 1.7 2007/11/15 18:24:28 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 82 82 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 83 83 { 84 #ifdef GEANT4_QT_DEBUG 84 85 printf("G4OpenGLQtViewer::SetView ++++++++++++++++++++\n"); 86 #endif 85 87 // if(!fHDC) return; 86 88 // if(!fHGLRC) return; … … 88 90 // fWindow->makeCurrent(); 89 91 G4OpenGLViewer::SetView (); 92 #ifdef GEANT4_QT_DEBUG 90 93 printf("G4OpenGLQtViewer::SetView --------------------\n"); 94 #endif 91 95 } 92 96 … … 102 106 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 103 107 { 108 #ifdef GEANT4_QT_DEBUG 104 109 printf("G4OpenGLQtViewer::ShowView +++++++++++++++++++++\n"); 110 #endif 105 111 glFlush (); 106 112 if (!GLWindow) { … … 112 118 GLWindow->activateWindow(); 113 119 #endif 120 #ifdef GEANT4_QT_DEBUG 114 121 printf("G4OpenGLQtViewer::ShowView -----------------------\n"); 122 #endif 115 123 } 116 124 // // Empty the Windows message queue : … … 130 138 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 131 139 { 140 #ifdef GEANT4_QT_DEBUG 132 141 printf("G4OpenGLQtViewer::CreateGLQtContext \n"); 142 #endif 133 143 } 134 144 … … 143 153 144 154 if(fWindow) return; //Done. 155 #ifdef GEANT4_QT_DEBUG 145 156 printf("G4OpenGLQtViewer::CreateMainWindow glWidget\n"); 157 #endif 146 158 147 159 // launch Qt if not … … 163 175 ++it; 164 176 if ((found== false) && (widget->inherits("QMainWindow"))) { 177 #ifdef GEANT4_QT_DEBUG 165 178 printf("G4OpenGLQtViewer::CreateMainWindow case Qapp exist\n"); 179 #endif 166 180 GLWindow = new QDialog(widget,0,FALSE,Qt::WStyle_Title | Qt::WStyle_SysMenu | Qt::WStyle_MinMax ); 167 181 found = true; … … 172 186 foreach (QWidget *widget, QApplication::allWidgets()) { 173 187 if ((found== false) && (widget->inherits("QMainWindow"))) { 188 #ifdef GEANT4_QT_DEBUG 174 189 printf("G4OpenGLQtViewer::CreateMainWindow case Qapp exist\n"); 190 #endif 175 191 GLWindow = new QDialog(widget,Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint); 176 192 found = true; … … 180 196 181 197 if (found==false) { 198 #ifdef GEANT4_QT_DEBUG 182 199 printf("G4OpenGLQtViewer::CreateMainWindow case Qapp exist, but not found\n"); 200 #endif 183 201 GLWindow = new QDialog(); 184 202 } 185 203 } else { 204 #ifdef GEANT4_QT_DEBUG 186 205 printf("G4OpenGLQtViewer::CreateMainWindow case Qapp exist\n"); 206 #endif 187 207 GLWindow = new QDialog(); 188 208 } … … 222 242 223 243 if(!fWindow) return; 244 #ifdef GEANT4_QT_DEBUG 224 245 printf("G4OpenGLQtViewer::CreateMainWindow glWidget END\n"); 246 #endif 225 247 226 248 if (!fContextMenu) … … 246 268 ,fMouseAction(true) 247 269 { 270 #ifdef GEANT4_QT_DEBUG 248 271 printf("G4OpenGLQtViewer::G4OpenGLQtViewer \n"); 272 #endif 249 273 } 250 274 … … 255 279 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 256 280 { 281 #ifdef GEANT4_QT_DEBUG 257 282 printf("G4OpenGLQtViewer::~G4OpenGLQtViewer \n"); 283 #endif 258 284 delete fContextMenu; 259 285 } … … 758 784 759 785 updateQWidget(); 786 #ifdef GEANT4_QT_DEBUG 760 787 printf("G4OpenGLQtViewer::toggleDrawingAction\n"); 788 #endif 761 789 } 762 790 … … 782 810 fVP.SetRepStyle (style); 783 811 812 #ifdef GEANT4_QT_DEBUG 784 813 printf("G4OpenGLQtViewer::toggleRepresentation 3%d\n",check); 814 #endif 785 815 updateQWidget(); 816 #ifdef GEANT4_QT_DEBUG 786 817 printf("G4OpenGLQtViewer::toggleRepresentation 4%d\n",check); 818 #endif 787 819 } 788 820 … … 842 874 843 875 updateQWidget(); 876 #ifdef GEANT4_QT_DEBUG 844 877 printf("G4OpenGLQtViewer::toggleRepresentation %d\n",check); 878 #endif 845 879 } 846 880 … … 859 893 updateQWidget(); 860 894 895 #ifdef GEANT4_QT_DEBUG 861 896 printf("G4OpenGLQtViewer::toggleRepresentation %d\n",check); 897 #endif 862 898 } 863 899 … … 875 911 updateQWidget(); 876 912 913 #ifdef GEANT4_QT_DEBUG 877 914 printf("G4OpenGLQtViewer::toggleRepresentation %d\n",check); 915 #endif 878 916 } 879 917 … … 885 923 GLWindow->setWindowState(GLWindow->windowState() ^ Qt::WindowFullScreen); 886 924 925 #ifdef GEANT4_QT_DEBUG 887 926 printf("G4OpenGLQtViewer::toggleRepresentation %d\n",check); 927 #endif 888 928 } 889 929 … … 899 939 } 900 940 941 #ifdef GEANT4_QT_DEBUG 901 942 printf("G4OpenGLQtViewer::toggleRepresentation %d\n",check); 943 #endif 902 944 } 903 945 904 946 905 947 void G4OpenGLQtViewer::actionControlPanels() { 948 #ifdef GEANT4_QT_DEBUG 906 949 printf("G4OpenGLQtViewer::actionControlPanels \n"); 950 #endif 907 951 } 908 952 909 953 void G4OpenGLQtViewer::actionExitG4() { 954 #ifdef GEANT4_QT_DEBUG 910 955 printf("G4OpenGLQtViewer::actionExitG4() \n"); 956 #endif 911 957 } 912 958 … … 950 996 #if QT_VERSION < 0x040000 951 997 nomFich += "."+selectedFilter->lower(); 998 #ifdef GEANT4_QT_DEBUG 952 999 printf("G4OpenGLQtViewer::name %s\n",nomFich.ascii()); 1000 #endif 953 1001 #else 954 1002 nomFich += "."+selectedFilter->toLower(); 1003 #ifdef GEANT4_QT_DEBUG 955 1004 printf("G4OpenGLQtViewer::name %s\n",nomFich.toStdString().c_str()); 1005 #endif 956 1006 #endif 957 1007 G4OpenGLQtExportDialog* exportDialog= new G4OpenGLQtExportDialog(GLWindow,nomFich,fWindow->height(),fWindow->width()); … … 963 1013 964 1014 // rescaleImage(exportDialog->getWidth(),exportDialog->getHeight());// re-scale image 1015 #ifdef GEANT4_QT_DEBUG 965 1016 printf("rescaling\n"); 1017 #endif 966 1018 QGLWidget* glResized = fWindow; 967 1019 fWindow->renderPixmap (exportDialog->getWidth()*2,exportDialog->getHeight()*2 ).save("/Users/laurentgarnier/Desktop/zzz.jpg","jpg"); … … 969 1021 // image = pixmap.toImage(); 970 1022 // glResized->resize(exportDialog->getWidth()*2,exportDialog->getHeight()*2); 1023 #ifdef GEANT4_QT_DEBUG 971 1024 printf("rescaling after\n"); 1025 #endif 972 1026 // image = glResized->grabFrameBuffer(); 973 1027 … … 980 1034 // grabFrameBuffer() :: Returns an image of the frame buffer. If withAlpha is true the alpha channel is included. 981 1035 image.save(nomFich,0,exportDialog->getSliderValue()); 1036 #ifdef GEANT4_QT_DEBUG 982 1037 printf("saving jpeg quality : %d\n",exportDialog->getSliderValue()); 1038 #endif 983 1039 } else if (nomFich.endsWith(".eps")) { 984 1040 generateEPS(nomFich,exportDialog->getNbColor(),image); … … 992 1048 nomFich.endsWith(".xpm")) { 993 1049 image.save(nomFich,0,exportDialog->getSliderValue()); 1050 #ifdef GEANT4_QT_DEBUG 994 1051 printf("saving ELSE\n"); 1052 #endif 995 1053 } else { 996 1054 G4cerr << "This version of G4UI Could not generate the selected format" << G4endl; … … 1001 1059 } 1002 1060 1061 #ifdef GEANT4_QT_DEBUG 1003 1062 printf("G4OpenGLQtViewer::actionCreateEPS() \n"); 1063 #endif 1004 1064 } 1005 1065 … … 1102 1162 } else if (mButtons & Qt::RightButton) { 1103 1163 // NEVER DONE BECAUSE OF MOUSE MENU 1164 #ifdef GEANT4_QT_DEBUG 1104 1165 // printf("G4OpenGLQtViewer::mouseMoveEvent Right \n"); 1166 #endif 1105 1167 // setXRotation(xRot + dy/2); 1106 1168 // setZRotation(zRot + dx/2); … … 1135 1197 ,int aHeight 1136 1198 ){ 1199 #ifdef GEANT4_QT_DEBUG 1137 1200 printf("should rescale \n"); 1201 #endif 1138 1202 } 1139 1203 … … 1151 1215 { 1152 1216 // FIXME 1217 #ifdef GEANT4_QT_DEBUG 1153 1218 printf("saving EPS\n"); 1219 #endif 1154 1220 1155 1221 FILE* fp; … … 1244 1310 */ 1245 1311 } else if (depth == 8) { 1312 #ifdef GEANT4_QT_DEBUG 1246 1313 printf("has 8 bit\n"); 1314 #endif 1247 1315 for(int y=height-1; y >=0 ; y--) { 1248 1316 const uchar * s = aImage.scanLine(y); … … 1267 1335 #else 1268 1336 bool alpha = aImage.hasAlphaChannel(); 1337 #ifdef GEANT4_QT_DEBUG 1269 1338 printf("has else %d alpha %d\n",depth,alpha); 1339 #endif 1270 1340 for(int y=height-1; y >=0 ; y--) { 1271 1341 QRgb * s = (QRgb*)(aImage.scanLine(y)); -
trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredQt.cc
r599 r608 25 25 // 26 26 // 27 // $Id: G4OpenGLStoredQt.cc,v 1. 2 2007/11/09 15:03:22lgarnier Exp $27 // $Id: G4OpenGLStoredQt.cc,v 1.3 2007/11/15 18:24:28 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 48 48 { 49 49 G4OpenGLViewerMessenger::GetInstance(); 50 #ifdef GEANT4_QT_DEBUG 50 51 printf("G4OpenGLStoredQt::Create \n"); 52 #endif 51 53 } 52 54 … … 59 61 G4VViewer* G4OpenGLStoredQt::CreateViewer 60 62 (G4VSceneHandler& scene, const G4String& name) { 63 #ifdef GEANT4_QT_DEBUG 61 64 printf("G4OpenGLStoredQt::CreateViewer \n"); 65 #endif 62 66 G4VViewer* pView = 63 67 new G4OpenGLStoredQtViewer … … 77 81 " new G4OpenGLStoredQtViewer." << G4endl; 78 82 } 83 #ifdef GEANT4_QT_DEBUG 79 84 printf("G4OpenGLStoredQt::CreateViewer END \n"); 85 #endif 80 86 return pView; 81 87 } -
trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc
r606 r608 25 25 // 26 26 // 27 // $Id: G4OpenGLStoredQtViewer.cc,v 1. 5 2007/11/14 18:58:59lgarnier Exp $27 // $Id: G4OpenGLStoredQtViewer.cc,v 1.6 2007/11/15 18:24:28 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 57 57 58 58 G4OpenGLStoredQtViewer::~G4OpenGLStoredQtViewer() { 59 #ifdef GEANT4_QT_DEBUG 59 60 printf("GLWidget::~GLWidget \n"); 61 #endif 60 62 makeCurrent(); 61 63 // this is connect to the Dialog for deleting it properly 62 64 // when close event. 63 65 // ((QDialog*)window())->reject(); 66 #ifdef GEANT4_QT_DEBUG 64 67 printf("GLWidget::~GLWidget END\n"); 68 #endif 65 69 } 66 70 67 71 void G4OpenGLStoredQtViewer::Initialise() { 72 #ifdef GEANT4_QT_DEBUG 68 73 printf("GLWidget::Initialise \n"); 74 #endif 69 75 readyToPaint = false; 70 76 CreateGLQtContext (); 77 #ifdef GEANT4_QT_DEBUG 71 78 printf("G4OpenGLStoredQtViewer::Initialise () 2\n"); 72 79 #endif 73 80 CreateMainWindow (this); 81 #ifdef GEANT4_QT_DEBUG 74 82 printf("G4OpenGLStoredQtViewer::Initialise () 3\n"); 75 83 #endif 76 84 CreateFontLists (); // FIXME Does nothing! 77 85 86 #ifdef GEANT4_QT_DEBUG 78 87 printf("readyToPaint = true \n"); 88 #endif 79 89 readyToPaint = true; 80 90 81 91 // First Draw 82 92 SetView(); 93 #ifdef GEANT4_QT_DEBUG 83 94 printf(" ClearView\n"); 95 #endif 84 96 ClearView (); //ok, put the background correct 85 97 ShowView(); … … 91 103 InitializeGLView (); 92 104 105 #ifdef GEANT4_QT_DEBUG 93 106 printf("G4OpenGLStoredQtViewer::InitialiseGL () 1\n"); 107 #endif 94 108 95 109 // clear the buffers and window. … … 103 117 hasToRepaint =true; 104 118 119 #ifdef GEANT4_QT_DEBUG 105 120 printf("G4OpenGLStoredQtViewer::InitialiseGL -------------------------------------------------------------------------------------\n"); 121 #endif 106 122 } 107 123 … … 109 125 void G4OpenGLStoredQtViewer::DrawView () { 110 126 127 #ifdef GEANT4_QT_DEBUG 111 128 printf("G4OpenGLStoredQtViewer::DrawView %d %d VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV\n",WinSize_x, WinSize_y); 112 129 printf("G4OpenGLStoredQtViewer::DrawView Dialog adress : %d\n",GLWindow); 130 #endif 113 131 G4ViewParameters::DrawingStyle style = GetViewParameters().GetDrawingStyle(); 114 132 … … 131 149 if(style!=G4ViewParameters::hlr && 132 150 haloing_enabled) { 151 #ifdef GEANT4_QT_DEBUG 133 152 printf("G4OpenGLStoredQtViewer::DrawView DANS LE IF\n"); 153 #endif 134 154 135 155 HaloingFirstPass (); … … 143 163 144 164 } else { 165 #ifdef GEANT4_QT_DEBUG 145 166 printf("*************************** CASE 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n"); 167 #endif 146 168 147 169 // If kernel visit was needed, drawing and FinishView will already 148 170 // have been done, so... 149 171 if (!kernelVisitWasNeeded) { 172 #ifdef GEANT4_QT_DEBUG 150 173 printf("*************************** CASE 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n"); 174 #endif 151 175 DrawDisplayLists (); 152 176 FinishView (); 153 177 } else { 178 #ifdef GEANT4_QT_DEBUG 154 179 printf("*************************** CASE 3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n"); 180 #endif 155 181 // However, union cutaways are implemented in DrawDisplayLists, so make 156 182 // an extra pass... … … 160 186 DrawDisplayLists (); 161 187 FinishView (); 188 #ifdef GEANT4_QT_DEBUG 162 189 printf("*************************** CASE 4 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n"); 190 #endif 163 191 } else { // ADD TO AVOID KernelVisit=1 and nothing to display 164 192 DrawDisplayLists (); … … 168 196 } 169 197 198 #ifdef GEANT4_QT_DEBUG 170 199 printf("G4OpenGLStoredQtViewer::DrawView %d %d ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n",WinSize_x, WinSize_y); 200 #endif 171 201 hasToRepaint =true; 172 202 } … … 179 209 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 180 210 { 211 #ifdef GEANT4_QT_DEBUG 181 212 printf("G4OpenGLStoredQtViewer::FinishView VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV\n"); 213 #endif 182 214 183 215 glFlush (); 184 216 swapBuffers (); 217 #ifdef GEANT4_QT_DEBUG 185 218 printf("G4OpenGLStoredQtViewer::FinishView ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n"); 219 #endif 186 220 187 221 } … … 205 239 WinSize_y = (G4int) aHeight; 206 240 241 #ifdef GEANT4_QT_DEBUG 207 242 printf("G4OpenGLStoredQtViewer::resizeGL ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %d %d=%d %d=%d\n",hasToRepaint,width(),aWidth,height(),aHeight); 243 #endif 208 244 } 209 245 … … 213 249 { 214 250 if (!readyToPaint) { 251 #ifdef GEANT4_QT_DEBUG 215 252 printf("G4OpenGLStoredQtViewer::paintGL ============ Not ready %d\n",readyToPaint); 253 #endif 216 254 readyToPaint= true; 217 255 return; … … 222 260 if ( !hasToRepaint) { 223 261 if (((WinSize_x == (G4int)width())) &&(WinSize_y == (G4int) height())) { 262 #ifdef GEANT4_QT_DEBUG 224 263 printf("G4OpenGLStoredQtViewer::paintGL ============ Dont repaint\n"); 264 #endif 225 265 return; 226 266 } 227 267 } 228 268 nbPaint++; 269 #ifdef GEANT4_QT_DEBUG 229 270 printf("G4OpenGLStoredQtViewer::paintGL VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV %d ready %d\n",nbPaint,readyToPaint); 271 #endif 230 272 WinSize_x = (G4int) width(); 231 273 WinSize_y = (G4int) height(); … … 238 280 239 281 // // printf("before ClearView\n"); 282 #ifdef GEANT4_QT_DEBUG 240 283 printf(" ClearView\n"); 284 #endif 241 285 242 286 ClearView (); //ok, put the background correct … … 245 289 hasToRepaint =false; 246 290 291 #ifdef GEANT4_QT_DEBUG 247 292 printf("G4OpenGLStoredQtViewer::paintGL ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %d ready %d\n",nbPaint,readyToPaint); 293 #endif 248 294 } 249 295 250 296 void G4OpenGLStoredQtViewer::mousePressEvent(QMouseEvent *event) 251 297 { 298 #ifdef GEANT4_QT_DEBUG 252 299 printf("G4OpenGLStoredQtViewer::mousePressEvent\n"); 300 #endif 253 301 G4MousePressEvent(event->pos()); 254 302 } … … 256 304 void G4OpenGLStoredQtViewer::mouseMoveEvent(QMouseEvent *event) 257 305 { 306 #ifdef GEANT4_QT_DEBUG 258 307 printf("G4OpenGLStoredQtViewer::mouseMoveEvent\n"); 308 #endif 259 309 #if QT_VERSION < 0x040000 260 310 G4MouseMoveEvent(event->x(),event->y(),event->button()); -
trunk/geant4/visualization/OpenGL/src/G4OpenGLViewerMessenger.cc
r599 r608 25 25 // 26 26 // 27 // $Id: G4OpenGLViewerMessenger.cc,v 1.1 0 2007/11/10 14:51:28allison Exp $27 // $Id: G4OpenGLViewerMessenger.cc,v 1.11 2007/11/15 10:14:23 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 30 #ifdef G4VIS_BUILD_OPENGL_DRIVER 29 31 30 32 #include "G4OpenGLViewerMessenger.hh" … … 381 383 382 384 } 385 386 #endif
Note: See TracChangeset
for help on using the changeset viewer.