VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEventLoop.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtEventLoop_H_
11 #define DtEventLoop_H_
12 
13 #include <vrvCore/vrvCore.h>
15 
16 class DtTimedSection;
17 
18 namespace makVrv
19 {
20  class DtDe;
21 
25  {
26 
27  public:
29  typedef void (*RunFunction)(DtDe&);
30 
31  public:
32 
36  static void runOnce(DtDe&);
37 
42  static DtEventLoop* create(DtDe& theIG);
43 
45  virtual ~DtEventLoop();
46 
52  void setAlternateRunFunction(RunFunction aFunction);
53 
56  void run();
57 
58 
59  protected:
60 
62  DtEventLoop(DtDe& de);
63 
67  void defaultRun();
68 
69  protected:
70 
73  RunFunction myRunnerFunction;
74 
75  };
76 
80  {
81 
82  public:
83 
86  static DtEventLoopCreator& instance(DtDe& theIG);
87 
89  static void registerInstance(DtDe& theIG, DtEventLoopCreator* anInstance);
90 
92  virtual DtEventLoop* create(DtDe& theIG) = 0;
93 
94  };
95 }
96 
97 #endif
98 
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Contains makVrv::DtVirtualBaseClass class.
The abstract DtEventLoop creator for the abstract DtEventLoops class.
Definition: DtEventLoop.h:79
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtDe & myDe
Definition: DtEventLoop.h:71
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
RunFunction myRunnerFunction
Definition: DtEventLoop.h:73
The abstract DtEventLoop class.
Definition: DtEventLoop.h:24
DtTimedSection * myTimer
Definition: DtEventLoop.h:72
Contains DLL export macros.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)