VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simIndividualLocalEntityNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
18 
22 
35 {
36 protected:
39 
40 public:
43  DtVrfObject* vrfObject,
44  DtReaderWriterRegistry* parentRegistry = 0,
45  bool publishObject = true);
46 
50  DtReaderWriterRegistry * parentRegistry = 0);
51 
55 
58 
60  virtual void updateNet();
61 
64  virtual void updatePublisher();
65 
71  virtual bool createPublisher(const DtEntityIdentifier& id = DtEntityIdentifier::nullId());
72 
74  void destroyPublisher();
75 
77  virtual DtObjectPublisher* publisher();
78 
88  virtual bool setEntityPublisher(DtVrfExtEntityPublisher * publisher);
89 
93  virtual void setupNetworkRepository();
94 
96  virtual DtVrfExtEntityPublisher * entityPublisher() const;
97 
100  virtual DtExtEntityStateRepository * individualNetworkState() const;
101 
107  virtual DtVrfObjectStateRepository * individualLocalState() const;
108 
110  virtual void updateUuid();
111 
112  virtual bool isAggregate() const { return false; }
113 
116  virtual DtString type() const;
117 
118 #if DtHLA
119  virtual RTI::ObjectClassHandle objectClassHandle() const;
121 #endif
122 
127  isIndividualLocalEntityNetInterface(const DtSimObjectNetInterface *
128  objNetInterface);
129 
130  static DtSimObjectNetInterface * creator(const DtString & name,
131  DtVrfObject* vrfObject,
132  DtReaderWriterRegistry * parentRegistry,
133  bool publishObject);
134 
135 protected:
136 
137  virtual bool updateVrfDataAsSeenByRemote();
138 
142  virtual void updateArtPartsNetState();
143 
144  virtual void updateDIGuyState();
145 
146  virtual bool checkMovementFrozen() const;
147 
148 
149 protected:
150 
152 
155 
159 
160 };
Class Description: DtSimLocalEntityNetInterface.
Definition: simLocalEntityNetInterface.h:39
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 updateNet()
Cause any necessary data to be send to the network.
Definition: readerWriterRegistry.h:39
Description: This repository holds all information that is common to all the forms of all entity/aggr...
Definition: vrfObjectStateRepository.h:87
virtual DtString type() const =0
Returns the type of net interface object.
virtual DtObjectPublisher * publisher()=0
Returns the publisher used by this net interface.
virtual bool createPublisher(const DtEntityIdentifier &id=DtEntityIdentifier::nullId())=0
Called by init() to create a VR-Link publisher, deriving classes create the type of publisher needed ...
DtTime myTimeLastAnimationSent
Definition: simIndividualLocalEntityNetInterface.h:154
virtual void updatePublisher()=0
This will copy from the local state repository to the specific type of publisher created in deriving ...
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
This class extends DtVrfEntityPublisher to support the publishing of VR-Forces state properties as ex...
Definition: vrfExtEntityPublisher.h:15
DtExtEntityStateRepository class extends the DtExtEntityBaseStateRepository to be able to handle exte...
Definition: extEntityStateRepository.h:25
Class Description: DtSimIndividualLocalEntityNetInterface.
Definition: simIndividualLocalEntityNetInterface.h:33
virtual void destroyPublisher()=0
Called by the destructor (and also by setPublisher() in some cases), deletes a publisher.
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:37
DtTime myTimeLastCharacterTypeSent
Definition: simIndividualLocalEntityNetInterface.h:153
static DtTime theDiGuyCustomPduThreshold
Definition: simIndividualLocalEntityNetInterface.h:156
virtual void updateUuid()=0
Updates the UUID to be published to the network.
bool myPublishDIGuy
Definition: simIndividualLocalEntityNetInterface.h:158
const DtSimLocalEntityNetInterface & operator=(const DtSimLocalEntityNetInterface &orig)
assignment operator; see note on copy constructor above.
virtual void setupNetworkRepository()=0
Initializes parts of the network repository created by the publisher This needs to be done after the ...
bool myFirstTick
Definition: simIndividualLocalEntityNetInterface.h:157
virtual bool isAggregate() const
Definition: simIndividualLocalEntityNetInterface.h:112
DtVrfExtEntityPublisher * myEntityPublisher
Definition: simIndividualLocalEntityNetInterface.h:151

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)