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;
32 //! Enable or disable selection in the viewer
33 virtual void enableSelection(bool isEnabled) = 0;
35 //! Returns true if selection is enabled
36 virtual bool isSelectionEnabled() const = 0;
38 //! Enable or disable multiselection in the viewer
39 virtual void enableMultiselection(bool isEnable) = 0;
41 //! Returns true if multiselection is enabled
42 virtual bool isMultiSelectionEnabled() const = 0;
45 void lastViewClosed();
49 void mousePress(QMouseEvent* theEvent);
50 void mouseRelease(QMouseEvent* theEvent);
51 void mouseDoubleClick(QMouseEvent* theEvent);
52 void mouseMove(QMouseEvent* theEvent);
53 void keyPress(QKeyEvent* theEvent);
54 void keyRelease(QKeyEvent* theEvent);