1 // SALOME OCCViewer : build OCC Viewer into Salome desktop
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : OCCViewer_AISSelector.h
25 // Author : Nicolas REJNERI
29 #ifndef OCCViewer_AISSELECTOR_H
30 #define OCCViewer_AISSELECTOR_H
33 #include "OCCViewer_Selector.h"
35 // Open CASCADE Includes
36 #include <Quantity_NameOfColor.hxx>
37 #include <AIS_InteractiveContext.hxx>
39 class QAD_EXPORT OCCViewer_AISSelector : public OCCViewer_Selector
47 OCCViewer_AISSelector( const Handle (AIS_InteractiveContext)& );
48 ~OCCViewer_AISSelector();
51 bool moveTo ( int, int, const Handle (V3d_View)& );
52 bool select ( int, int, int, int, const Handle (V3d_View)& );
53 bool shiftSelect ( int, int, int, int, const Handle (V3d_View)& );
57 void setContext ( const Handle (AIS_InteractiveContext)& );
58 void setHilightColor ( Quantity_NameOfColor color );
59 void setSelectColor ( Quantity_NameOfColor color );
62 bool checkSelection ( AIS_StatusOfPick status, bool hadSelection, bool addTo );
65 Handle (AIS_InteractiveContext) myAISContext; // graphic context
66 Quantity_NameOfColor myHilightColor; // color for hilight object
67 Quantity_NameOfColor mySelectColor; // color for selected object