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