- Timestamp:
- Aug 14, 2007, 12:27:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredQtViewer.hh
r533 r561 25 25 // 26 26 // 27 // $Id: G4OpenGLStoredQtViewer.hh,v 1. 7 2007/06/25 21:18:06 $27 // $Id: G4OpenGLStoredQtViewer.hh,v 1.9 2007/06/25 21:17:46 $ 28 28 // GEANT4 tag $Name: geant4-08-01-patch-01 $ 29 29 // … … 34 34 #ifdef G4VIS_BUILD_OPENGLQT_DRIVER 35 35 36 #ifndef G4O PENGLSTOREDQTVIEWER_HH37 #define G4O PENGLSTOREDQTVIEWER_HH36 #ifndef G4OpenGLSTOREDQTVIEWER_HH 37 #define G4OpenGLSTOREDQTVIEWER_HH 38 38 39 39 #include "G4VViewer.hh" 40 40 #include "G4OpenGLStoredViewer.hh" 41 41 #include "G4OpenGLQtViewer.hh" 42 #include <QGLWidget> 43 #include <QApplication> 44 #include <QMouseEvent> 45 #include <QContextMenuEvent> 42 46 43 47 class G4OpenGLStoredSceneHandler; 44 48 45 49 class G4OpenGLStoredQtViewer: 46 public G4OpenGLQtViewer, public G4OpenGLStoredViewer{50 public G4OpenGLQtViewer, public G4OpenGLStoredViewer, public QGLWidget { 47 51 48 52 public: 49 53 G4OpenGLStoredQtViewer (G4OpenGLStoredSceneHandler& scene, 50 const G4String& name = ""); 54 const G4String& name = ""); 55 ~G4OpenGLStoredQtViewer (); 51 56 void Initialise (); 57 void initializeGL (); 52 58 void DrawView (); 53 59 void FinishView (); 60 void resizeGL(int width,int height); 61 void paintGL(); 62 void updateQWidget(); 63 64 protected: 65 void mousePressEvent(QMouseEvent *event); 66 void mouseMoveEvent(QMouseEvent *event); 67 void contextMenuEvent(QContextMenuEvent *e); 68 69 private : 70 bool hasToRepaint; 71 bool readyToPaint; 72 int nbPaint; 54 73 }; 55 74 … … 57 76 58 77 #endif 59
Note: See TracChangeset
for help on using the changeset viewer.