VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stopFreezeInteraction.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #if DtTENA
11 
12 #pragma once
13 
14 #include <vlTena/interaction.h>
15 #include <vlpi/entityIdentifier.h>
16 #include <vlutil/vlTime.h>
17 
18 namespace MAKVrExchange
19 {
20 
21  namespace DtTenaBroker
22  {
23 
24  class DtStopFreezeInteraction;
25 
27  typedef void (*DtStopFreezeInteractionCb)(DtStopFreezeInteraction* inter, void* usr);
28 
32  class DT_DLL_VLTENA DtStopFreezeInteraction : public DtInteraction
33  {
34  public:
35 
38  static DtInteraction* create();
39 
41  DtStopFreezeInteraction();
42 
44  virtual ~DtStopFreezeInteraction();
45 
47  DtStopFreezeInteraction(const DtStopFreezeInteraction& orig);
48 
50  DtStopFreezeInteraction& operator=(const DtStopFreezeInteraction& orig);
51 
53  virtual void setSenderId(const DtEntityIdentifier& id);
54 
56  virtual const DtEntityIdentifier& senderId() const;
57 
59  virtual void setReceiverId(const DtEntityIdentifier& id);
60 
62  virtual const DtEntityIdentifier& receiverId() const;
63 
65  virtual void setRealWorldTime(const DtTime time);
66 
68  virtual DtTime realWorldTime() const;
69 
71  virtual void setRequestId(int id);
72 
74  virtual int requestId() const;
75 
77  virtual DtStopReason reason() const;
78 
80  virtual void setReason(DtStopReason reason);
81 
83  virtual bool reflectWhenFrozen() const;
84 
86  virtual void setReflectWhenFrozen(bool flag);
87 
89  virtual bool runClockWhenFrozen() const;
90 
92  virtual void setRunClockWhenFrozen(bool flag);
93 
95  virtual bool updateWhenFrozen() const;
96 
98  virtual void setUpdateWhenFrozen(bool flag);
99 
101  virtual const char* name() const;
102 
104  virtual void printData() const;
105 
107  virtual void printDataToStream(std::ostream& stream) const;
108 
111  static void addCallback(DtExerciseConn* conn,
112  DtStopFreezeInteractionCb cb, void* usr);
113 
116  static void removeCallback(DtExerciseConn* conn,
117  DtStopFreezeInteractionCb cb, void* usr);
118 
119  protected:
120 
121  DtEntityIdentifier myOrigEnt;
122  DtEntityIdentifier myReceiveEnt;
123  int myRequestId;
124  DtStopReason myReason;
125  DtTime myRealTime;
126  bool myReflect;
127  bool myUpdate;
128  bool myRunClock;
129 
130  };
131 
132  }
133 }
134 
135 #endif // DtTENA

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)