Ignore:
Timestamp:
Jan 25, 2008, 2:51:33 PM (17 years ago)
Author:
garnier
Message:

avancement sur la zone de recherche

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/include/G4OpenGLQtViewer.hh

    r688 r696  
    5555class QImage;
    5656class QAction;
     57class QMouseEvent;
     58class QKeyEvent;
    5759
    5860class G4OpenGLSceneHandler;
     
    7880  void G4MouseDoubleClickEvent(QPoint p);
    7981#if QT_VERSION < 0x040000
    80   void G4MouseMoveEvent(int, int, Qt::ButtonState);
     82  void G4MouseEvent(int, int, Qt::ButtonState);
    8183#else
    82   void G4MouseMoveEvent(int, int, Qt::MouseButtons);
     84  void G4MouseEvent(int, int, Qt::MouseButtons);
    8385#endif
     86  void G4MouseRotateEvent(int, int);
     87  void G4MouseMoveEvent(int, int, int);
     88  void G4keyPressEvent (QKeyEvent * event);
    8489
    8590
     
    103108  QMenu *fContextMenu;
    104109#endif
    105   enum mouseActions {ROTATE, MOVE, ZOOM, PICK};
     110  enum mouseActions {STYLE1,STYLE2,STYLE3,STYLE4};
    106111  mouseActions fMouseAction; // 1: rotate 0:move
    107   QPoint lastPos;
     112  QPoint fLastPos;
     113  /* delta of scene translation. This delta is put in % of the scene view */
     114  float fDeltaSceneTranslation;
     115  /* delta of left right move. This delta is put in % of the scene view */
     116  float fDeltaZoom;
     117
    108118#if QT_VERSION < 0x040000
    109119  QPopupMenu *fMouseRotate;
Note: See TracChangeset for help on using the changeset viewer.