VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtTemporaryAgentManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtTemporaryAgentManager.h,v $ $Revision: 1.14 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtTemporaryEffectsManager_H_
14 #define DtTemporaryEffectsManager_H_
15 
16 #include <vrvCore/vrvCore.h>
17 
18 #include <list>
19 #include <boost/signals.hpp>
20 
21 #include <matrix/vlVector.h>
22 
23 namespace makVrv
24 {
25 
26  class DtAgent;
27  class DtAgentManagerInterface;
28 
36  {
37  public:
38 
40  DtTemporaryAgentManager(double currentTime);
41 
43  virtual ~DtTemporaryAgentManager();
44 
51  virtual void takeAgent(DtAgent* agent, double lifeTime,
52  double deleteDelay = 0.0);
53 
55  void clearAll();
56 
58  virtual void tick(double currentTime);
59 
61  boost::signal<void (DtAgent*)> signal_agentTimedOut;
62 
63  protected:
65  {
67  double timeToDelete;
68  };
69 
70  typedef std::list<AgentParameters> AgentCollection;
71  typedef AgentCollection::iterator iterator;
72  typedef AgentCollection::const_iterator const_iterator;
73 
74  inline iterator begin() { return myAgents.begin(); }
75  inline const_iterator begin() const { return myAgents.begin(); }
76 
77  inline iterator end() { return myAgents.end(); }
78  inline const_iterator end() const { return myAgents.end(); }
79 
81  double myLastTime;
82  };
83 }
84 
85 #endif
86 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)