1 #ifndef XGUI_SALOMEVIEWER_H
2 #define XGUI_SALOMEVIEWER_H
7 #include <AIS_InteractiveContext.hxx>
8 #include <V3d_View.hxx>
14 * A Base object for definition of connector object to
15 * Salome Viewer. Reimplemented in NewGeom_SalomeViewer class
17 class XGUI_EXPORT XGUI_SalomeViewer: public QObject
21 XGUI_SalomeViewer(QObject* theParent):QObject(theParent) {}
23 //! Returns AIS_InteractiveContext from current OCCViewer
24 virtual Handle(AIS_InteractiveContext) AISContext() const = 0;
26 //! Retrurns V3d_Vioewer from current viewer
27 virtual Handle(V3d_Viewer) v3dViewer() const = 0;
29 //! Returns Vsd_View object from currently active view window
30 virtual Handle(V3d_View) activeView() const = 0;
33 void lastViewClosed();
37 void mousePress(QMouseEvent* theEvent);
38 void mouseRelease(QMouseEvent* theEvent);
39 void mouseDoubleClick(QMouseEvent* theEvent);
40 void mouseMove(QMouseEvent* theEvent);
41 void keyPress(QKeyEvent* theEvent);
42 void keyRelease(QKeyEvent* theEvent);