]> SALOME platform Git repositories - modules/gui.git/blob - src/SalomeApp/SalomeApp_GLSelector.h
Salome HOME
ENV: Windows porting
[modules/gui.git] / src / SalomeApp / SalomeApp_GLSelector.h
1 #ifndef SALOMEAPP_GLSELECTOR_H
2 #define SALOMEAPP_GLSELECTOR_H
3
4 #include "SalomeApp.h"
5
6 #include <SUIT_Selector.h>
7
8 #include <GLViewer_Viewer2d.h>
9
10 class SALOMEAPP_EXPORT SalomeApp_GLSelector : public SUIT_Selector
11 {
12   Q_OBJECT
13
14 public:
15   SalomeApp_GLSelector( GLViewer_Viewer2d*, SUIT_SelectionMgr* );
16   virtual ~SalomeApp_GLSelector();
17
18   GLViewer_Viewer2d* viewer() const;
19
20   virtual QString type() const { return GLViewer_Viewer2d::Type(); }
21
22 private slots:
23   void                onSelectionChanged();
24
25 protected:
26   virtual void        getSelection( SUIT_DataOwnerPtrList& ) const;
27   virtual void        setSelection( const SUIT_DataOwnerPtrList& );
28
29 private:
30   GLViewer_Viewer2d* myViewer;
31 };
32
33 #endif