Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / OCCViewer / OCCViewer_AISSelector.h
1 //  File      : OCCViewer_AISSelector.h
2 //  Created   : Wed Mar 20 10:58:22 2002
3 //  Author    : Nicolas REJNERI
4 //  Project   : SALOME
5 //  Module    : OCCViewer
6 //  Copyright : Open CASCADE 2002
7 //  $Header$
8
9
10 #ifndef OCCViewer_AISSELECTOR_H
11 #define OCCViewer_AISSELECTOR_H
12
13 #include "QAD.h"
14 #include "OCCViewer_Selector.h"
15
16 // Open CASCADE Includes
17 #include <Quantity_NameOfColor.hxx>
18 #include <AIS_InteractiveContext.hxx>
19
20 class QAD_EXPORT OCCViewer_AISSelector : public OCCViewer_Selector
21 {
22   Q_OBJECT
23
24   void  initialize();
25   void  cleanup();
26
27 public:
28   OCCViewer_AISSelector( const Handle (AIS_InteractiveContext)& );
29   ~OCCViewer_AISSelector();
30
31 public:
32   bool  moveTo ( int, int, const Handle (V3d_View)& );
33   bool  select ( int, int, int, int, const Handle (V3d_View)& );
34   bool  shiftSelect ( int, int, int, int, const Handle (V3d_View)& );
35   bool  select ();
36   bool  shiftSelect ();
37
38   void  setContext ( const Handle (AIS_InteractiveContext)& );
39   void  setHilightColor ( Quantity_NameOfColor color );
40   void  setSelectColor ( Quantity_NameOfColor color );
41
42 protected:
43   bool  checkSelection ( AIS_StatusOfPick status, bool hadSelection, bool addTo );
44
45 protected:
46   Handle (AIS_InteractiveContext) myAISContext;   // graphic context
47   Quantity_NameOfColor            myHilightColor; // color for hilight object
48   Quantity_NameOfColor            mySelectColor; // color for selected object
49
50 };
51
52 #endif
53