1 // File : OCCViewer_AISSelector.h
2 // Created : Wed Mar 20 10:58:22 2002
3 // Author : Nicolas REJNERI
6 // Copyright : Open CASCADE 2002
10 #ifndef OCCViewer_AISSELECTOR_H
11 #define OCCViewer_AISSELECTOR_H
14 #include "OCCViewer_Selector.h"
16 // Open CASCADE Includes
17 #include <Quantity_NameOfColor.hxx>
18 #include <AIS_InteractiveContext.hxx>
20 class QAD_EXPORT OCCViewer_AISSelector : public OCCViewer_Selector
28 OCCViewer_AISSelector( const Handle (AIS_InteractiveContext)& );
29 ~OCCViewer_AISSelector();
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)& );
38 void setContext ( const Handle (AIS_InteractiveContext)& );
39 void setHilightColor ( Quantity_NameOfColor color );
40 void setSelectColor ( Quantity_NameOfColor color );
43 bool checkSelection ( AIS_StatusOfPick status, bool hadSelection, bool addTo );
46 Handle (AIS_InteractiveContext) myAISContext; // graphic context
47 Quantity_NameOfColor myHilightColor; // color for hilight object
48 Quantity_NameOfColor mySelectColor; // color for selected object