0032205: Visualization - implementing new selection scheme in context - replace extra
[occt.git] / src / AIS / AIS_SelectionScheme.hxx
1 // Copyright (c) 2019 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14 #ifndef _AIS_SelectionScheme_HeaderFile
15 #define _AIS_SelectionScheme_HeaderFile
16
17 //! Sets selection schemes for interactive contexts.
18 enum AIS_SelectionScheme
19 {
20   AIS_SelectionScheme_UNKNOWN = -1, //!< undefined scheme
21   AIS_SelectionScheme_Replace = 0,  //!< clears current selection and select detected objects
22   AIS_SelectionScheme_Add,          //!< adds    detected object to current selection
23   AIS_SelectionScheme_Remove,       //!< removes detected object from the current selection
24   AIS_SelectionScheme_XOR,          //!< performs XOR for detected objects, other selected not touched
25   AIS_SelectionScheme_Clear,        //!< clears current selection
26   AIS_SelectionScheme_ReplaceExtra, //!< replace with one difference: if result of replace is an empty,
27                                     //!< and current selection contains detected element, it will be selected
28 };
29
30 #endif // _AIS_SelectionScheme_HeaderFile