VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simRemoteEntityNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 
13 
15 #include <vl/globalObjectDesignator.h>
16 #include <readerWriter/rwString.h>
17 
18 
19 class DtReflectedObject;
20 
31 {
32 protected:
35 
36 public:
37 
39  DtSimRemoteEntityNetInterface(const DtString& name, DtVrfObject* simObject,
40  DtReaderWriterRegistry* parentRegistry = 0, bool publishObject = true);
41 
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
52 
55 
58  virtual bool init();
59 
61  virtual void onTick();
62 
66  virtual void updateFromReflectedObject() = 0;
67 
70  virtual void setupFromNetworkRepository();
71 
79  virtual void setReflectedObject(DtReflectedObject* reflectedObject);
80 
84  virtual bool isValidReflectedObject(DtReflectedObject*) const;
85 
88  virtual const DtReflectedObject* reflectedObject() const;
89  virtual DtReflectedObject* reflectedObject();
90 
92  virtual bool isLocal() const { return false; }
93 
94  virtual bool isAggregate() const = 0;
95 
98  virtual void setUpdateReceived(bool updateReceived);
99 
101  virtual bool updateReceived() const;
102 
106  static const DtSimRemoteEntityNetInterface * isRemoteEntityNetInterface(const
107  DtSimObjectNetInterface * objNetInterface);
108 
109  static DtSimRemoteEntityNetInterface* isRemoteEntityNetInterface(
110  DtSimObjectNetInterface* objNetInterface);
111 
112  static void reflectedObjectUpdateCallbackFunction(DtReflectedObject* obj,
113  void* userData);
114 
116  virtual void updateUUIDIfNeeded();
117 
118 #if DtHLA
119  virtual RTI::ObjectClassHandle objectClassHandle() const;
121 #endif
122 
123 protected:
124 
128 
132 
133 };
virtual bool init()
Derived classes that need to perform virtual construction my override this function as desired...
Definition: simObjectNetInterface.h:66
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual RTI::ObjectClassHandle objectClassHandle() const =0
Returns the HLA object class handle of the published or reflected object.
virtual void onTick()=0
Depending on the whether or not the entity is local or remote, this will cause the VR-Link network re...
Definition: readerWriterRegistry.h:39
bool myUpdateReceived
Set to true by post-update callback; set to false after update has been processed.
Definition: simRemoteEntityNetInterface.h:131
Class Description: DtSimEntityNetInterface.
Definition: simEntityNetInterface.h:36
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:37
DtReflectedObject * myReflectedObject
Pointer to the VR-Link Reflected Object (may be a DtReflectedEntity, DtReflectedExtAggregate, etc.
Definition: simRemoteEntityNetInterface.h:127
virtual bool isLocal() const
This network interface is for local entities.
Definition: simRemoteEntityNetInterface.h:92
Derived from DtSimEntityNetInterface, DtSimRemoteEntityNetInterface provides an interface between the...
Definition: simRemoteEntityNetInterface.h:30
const DtSimEntityNetInterface & operator=(const DtSimEntityNetInterface &orig)
assignment operator

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)