Ignore:
Timestamp:
Oct 30, 2008, 5:47:35 PM (16 years ago)
Author:
garnier
Message:

Update in code, try to mutualise everything between Stored and immediate Qt Viewers

Location:
trunk/source/visualization/OpenGL/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/include/G4OpenGLImmediateQtViewer.hh

    r850 r873  
    6262  void updateQWidget();
    6363
    64 private :
    65   int readyToPaint;
    66   int nbPaint;
     64protected:
     65  void wheelEvent(QWheelEvent *event);
     66  void mousePressEvent(QMouseEvent *event);
     67  void mouseMoveEvent(QMouseEvent *event);
     68  void mouseDoubleClickEvent(QMouseEvent *event);
     69  void mouseReleaseEvent(QMouseEvent *event);
     70  void contextMenuEvent(QContextMenuEvent *e);
     71  void keyPressEvent (QKeyEvent * event);
    6772};
    6873
  • trunk/source/visualization/OpenGL/include/G4OpenGLQtViewer.hh

    r866 r873  
    106106  void CreateGLQtContext ();
    107107  virtual void CreateMainWindow (QGLWidget*,QString);
    108   void manageContextMenuEvent(QContextMenuEvent *e);
    109 #if QT_VERSION < 0x040000
    110   void G4MousePressEvent(QPoint);
    111 #else
    112   void G4MousePressEvent(QPoint);
    113 #endif
     108  void G4resizeGL(int, int);
     109  void G4manageContextMenuEvent(QContextMenuEvent *e);
     110  void G4MousePressEvent(QMouseEvent *event);
    114111  void G4MouseReleaseEvent();
    115   void G4MouseDoubleClickEvent(QPoint p);
    116 #if QT_VERSION < 0x040000
    117   void G4MouseMoveEvent(int, int, Qt::ButtonState);
    118 #else
    119   void G4MouseMoveEvent(int, int, Qt::MouseButtons);
    120 #endif
     112  void G4MouseDoubleClickEvent();
     113  void G4MouseMoveEvent(QMouseEvent *event);
    121114  void G4wheelEvent (QWheelEvent * event);
    122115  void G4keyPressEvent (QKeyEvent * event);
     
    124117  void rotateQtCamera(float, float);
    125118  void moveScene(float, float, float,bool);
     119  void FinishView();
    126120
    127121
     
    140134  float fDeltaRotationAngleY;
    141135  float fDeltaRotationAngleZ;
     136
     137  bool hasToRepaint;
     138  bool readyToPaint;
     139  bool zoomAction;
     140  QPoint beginZoom;
     141  QPoint endZoom;
    142142
    143143private:
  • trunk/source/visualization/OpenGL/include/G4OpenGLStoredQtViewer.hh

    r850 r873  
    5959  void initializeGL ();
    6060  void DrawView ();
    61   void FinishView ();
    6261  void resizeGL(int width,int height);
    6362  void paintGL();
     
    7372  void keyPressEvent (QKeyEvent * event);
    7473
    75 private :
    76   bool hasToRepaint;
    77   bool readyToPaint;
    78   bool zoomAction;
    79   int nbPaint;
    80   QPoint beginZoom;
    81   QPoint endZoom;
    8274  //  QImage glBufferImage;
    8375};
Note: See TracChangeset for help on using the changeset viewer.