b311480e |
1 | // Copyright (c) 1998-1999 Matra Datavision |
973c2be1 |
2 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
3 | // |
973c2be1 |
4 | // This file is part of Open CASCADE Technology software library. |
b311480e |
5 | // |
d5f74e42 |
6 | // This library is free software; you can redistribute it and/or modify it under |
7 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
8 | // by the Free Software Foundation, with special exception defined in the file |
9 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
10 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
11 | // |
973c2be1 |
12 | // Alternatively, this file may be used under the terms of Open CASCADE |
13 | // commercial license or contractual agreement. |
b311480e |
14 | |
f751596e |
15 | // ======================================================================= |
16 | // function : Mode |
17 | // purpose : |
18 | // ======================================================================= |
19 | inline Standard_Integer SelectMgr_Selection::Mode() const |
20 | { |
21 | return myMode; |
22 | } |
7fd59977 |
23 | |
f751596e |
24 | // ======================================================================= |
25 | // function : Init |
26 | // purpose : |
27 | // ======================================================================= |
28 | inline void SelectMgr_Selection::Init() |
29 | { |
30 | myEntityIter.Init (myEntities); |
31 | } |
7fd59977 |
32 | |
f751596e |
33 | // ======================================================================= |
34 | // function : More |
35 | // purpose : |
36 | // ======================================================================= |
7fd59977 |
37 | inline Standard_Boolean SelectMgr_Selection::More() const |
f751596e |
38 | { |
39 | return myEntityIter.More(); |
40 | } |
7fd59977 |
41 | |
f751596e |
42 | // ======================================================================= |
43 | // function : Next |
44 | // purpose : |
45 | // ======================================================================= |
46 | inline void SelectMgr_Selection::Next() |
47 | { |
48 | myEntityIter.Next(); |
49 | } |
7fd59977 |
50 | |
f751596e |
51 | // ======================================================================= |
52 | // function : Sensitive |
53 | // purpose : |
54 | // ======================================================================= |
7ab15952 |
55 | inline const Handle(SelectMgr_SensitiveEntity)& SelectMgr_Selection::Sensitive() const |
f751596e |
56 | { |
57 | return myEntityIter.Value(); |
58 | } |
7fd59977 |
59 | |
f751596e |
60 | // ======================================================================= |
61 | // function : UpdateStatus |
62 | // purpose : |
63 | // ======================================================================= |
64 | inline void SelectMgr_Selection::UpdateStatus(const SelectMgr_TypeOfUpdate theStatus) |
65 | { |
66 | myUpdateStatus = theStatus; |
67 | } |
7fd59977 |
68 | |
f751596e |
69 | // ======================================================================= |
70 | // function : UpdateStatus |
71 | // purpose : |
72 | // ======================================================================= |
7fd59977 |
73 | inline SelectMgr_TypeOfUpdate SelectMgr_Selection::UpdateStatus() const |
f751596e |
74 | { |
75 | return myUpdateStatus; |
76 | } |
77 | |
78 | // ======================================================================= |
79 | // function : UpdateBVHStatus |
80 | // purpose : |
81 | // ======================================================================= |
82 | inline void SelectMgr_Selection::UpdateBVHStatus (const SelectMgr_TypeOfBVHUpdate theStatus) |
83 | { |
84 | myBVHUpdateStatus = theStatus; |
85 | } |
86 | |
87 | // ======================================================================= |
88 | // function : BVHUpdateStatus |
89 | // purpose : |
90 | // ======================================================================= |
91 | inline SelectMgr_TypeOfBVHUpdate SelectMgr_Selection::BVHUpdateStatus() const |
92 | { |
93 | return myBVHUpdateStatus; |
94 | } |