0028987: Visualization, SelectMgr_SelectableObject - move out iterator from object
[occt.git] / src / SelectMgr / SelectMgr_Selection.lxx
1 // Copyright (c) 1998-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
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
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.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 // =======================================================================
16 // function : Mode
17 // purpose  :
18 // =======================================================================
19 inline Standard_Integer SelectMgr_Selection::Mode() const
20 {
21   return myMode;
22 }
23
24 // =======================================================================
25 // function : Init
26 // purpose  :
27 // =======================================================================
28 inline void SelectMgr_Selection::Init()
29 {
30   myEntityIter.Init (myEntities);
31 }
32
33 // =======================================================================
34 // function : More
35 // purpose  :
36 // =======================================================================
37 inline Standard_Boolean SelectMgr_Selection::More() const
38 {
39   return myEntityIter.More();
40 }
41
42 // =======================================================================
43 // function : Next
44 // purpose  :
45 // =======================================================================
46 inline void SelectMgr_Selection::Next()
47 {
48   myEntityIter.Next();
49 }
50
51 // =======================================================================
52 // function : Sensitive
53 // purpose  :
54 // =======================================================================
55 inline const Handle(SelectMgr_SensitiveEntity)& SelectMgr_Selection::Sensitive() const
56 {
57   return myEntityIter.Value();
58 }
59
60 // =======================================================================
61 // function : UpdateStatus
62 // purpose  :
63 // =======================================================================
64 inline void SelectMgr_Selection::UpdateStatus(const SelectMgr_TypeOfUpdate theStatus)
65 {
66   myUpdateStatus = theStatus;
67 }
68
69 // =======================================================================
70 // function : UpdateStatus
71 // purpose  :
72 // =======================================================================
73 inline SelectMgr_TypeOfUpdate SelectMgr_Selection::UpdateStatus() const
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 }