OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
coVRIntersectionInteractorManager.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef CO_VR_INTERSECTION_INTERACTOR_MANAGER
9 #define CO_VR_INTERSECTION_INTERACTOR_MANAGER
10 
13 #include <list>
14 
15 namespace opencover
16 {
17 
18 class coVRIntersectionInteractor;
19 
21 {
22 public:
25 
26  void add(coVRIntersectionInteractor *);
27  void remove(coVRIntersectionInteractor *);
28  void enableCycleThroughInteractors();
29  void disableCycleThroughInteractors();
30  void cycleThroughInteractors(bool forward = true);
31 
33 
35  {
36  return currentIntersectionInteractor;
37  }
38 
39 private:
40  // list of all interactions
41  std::list<coVRIntersectionInteractor *> allIntersectionInteractors;
42  std::list<coVRIntersectionInteractor *>::iterator allIntersectionInteractorsIt;
43  coVRIntersectionInteractor *currentIntersectionInteractor;
44  bool wait_;
45 };
46 }
47 #endif
Definition: coVRIntersectionInteractorManager.h:20
coVRIntersectionInteractor * getCurrentIntersectionInteractor()
Definition: coVRIntersectionInteractorManager.h:34
Definition: coVRIntersectionInteractor.h:55