VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEventView.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtEventView.h,v $ $Revision: 1.10 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtEventView_H_
14 #define DtEventView_H_
15 
16 #include <vrvCore/vrvCore.h>
17 #include <vrvCore/DtDe.h>
19 #include <vrvCore/DtDataBank.h>
20 
21 #include <boost/bind.hpp>
22 
23 namespace makVrv
24 {
25  class DtSimEntry;
26 
30  {
31 
32  public:
33 
35  virtual ~DtBaseEventView();
36 
37  protected :
38 
41 
42  };
43 
44 
45  template <class EventType>
47  {
48  public:
49 
53 
56  static void release(DtSimData&);
57 
60 
61  virtual ~DtEventSignaler();
62 
64  boost::signal<void (const EventType&)> signal_eventTriggered;
65 
66  protected:
67 
70  void onEventTriggered(const DtSimEventEntry& entry);
71 
74 
77 
78  protected:
79 
81  unsigned int myReferenceCount;
82  };
83 
86  template<class EventType>
88  {
89 
90  public:
91 
93  DtEventView(DtDe& de);
94 
96  virtual ~DtEventView();
97 
99  boost::signal<void (const EventType&)> signal_eventTriggered;
100 
101  protected:
102 
105  void onEventTriggered(const EventType& entry);
106 
109 
112 
114  };
115 
116 }
117 
118 #define DtEventView_INL_
119 #include <vrvCore/DtEventView.inl>
120 #undef DtEventView_INL_
121 
122 #endif
123 
boost::signal< void(const EventType &)> signal_eventTriggered
Emit the event&#39;s state.
Definition: DtEventView.h:99
Virtual base class.
Definition: DtVirtualBaseClass.h:22
DtEventSignaler(DtSimData &)
CTOR.
The DtSimData is the repository for simulation specific, read only data.
Definition: DtSimData.h:31
A DtSimEventEntry is an entry for a event like an interaction.
Definition: DtSimEventEntry.h:25
static DtEventSignaler & instance(DtSimData &)
Get the Event view for a particular class from the Sim data object.
void connectToEventTriggeredSignal()
Connects to DtSimData::signal_simEventTriggered.
Contains makVrv::DtDe class.
virtual ~DtEventView()
DTOR.
void disconnectFromEventTriggeredSignal()
Disconnects from DtSimData::signal_simEventTriggered.
void disconnectFromEventTriggeredSignal()
Disconnects from DtSimData::signal_simEventTriggered.
Contains makVrv::DtSimEventEntry class.
unsigned int myReferenceCount
Definition: DtEventView.h:81
void connectToEventTriggeredSignal()
Connects to DtSimData::signal_simEventTriggered.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Definition: DtEventView.h:46
A DtBaseEventView is a the base class for all DtEventView&#39;s.
Definition: DtEventView.h:29
DtDe & myDe
Definition: DtEventView.h:113
static void release(DtSimData &)
Called whenever the signaler is no longer needed, Internally the instance reference is decreased...
DtSimData & mySimData
Definition: DtEventView.h:80
DtEventView(DtDe &de)
CTOR.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
void onEventTriggered(const DtSimEventEntry &entry)
This will get called by the DtSimEntry when the state for this event received.
boost::signal< void(const EventType &)> signal_eventTriggered
Emit the event&#39;s state.
Definition: DtEventView.h:64
A DtEventView is a the interface to event state information.
Definition: DtEventView.h:87
Contains makVrv::DtDataBank class.
void onEventTriggered(const EventType &entry)
This will get called by the DtSimEntry when the state for this event received.
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)