VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtSimRemoteEnvironmentalNetInterface Class Reference

File: remEnvNetIf.h. More...

Inheritance diagram for DtSimRemoteEnvironmentalNetInterface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtSimRemoteEnvironmentalNetInterface (const DtString &name, DtVrfObject *simObject, DtReaderWriterRegistry *parentRegistry=0, bool publishObject=true)
 read/writable contructor
 DtSimRemoteEnvironmentalNetInterface (const DtSimRemoteEnvironmentalNetInterface &orig, DtReaderWriterRegistry *parentRegistry=0)
 copy constructor
const
DtSimRemoteEnvironmentalNetInterface
operator= (const DtSimRemoteEnvironmentalNetInterface &orig)
 assignment operator
virtual ~DtSimRemoteEnvironmentalNetInterface ()
 destructor
virtual bool init ()
 override of base class init().
virtual void onTick ()
 override of base class onTick(), calls updateFromReflectedObject()
virtual void updateFromReflectedObject ()
 this will copy from the reflected environment process and associated network state repository to the local state repository
virtual
DtReflectedEnvironmentProcess * 
reflectedObject () const
 returns the pointer to the VR-Link reflected entity being used to represent this remote entity
virtual void setupFromNetworkRepository ()
 initializes parts of the local repository from the network state rep.
virtual void setReflectedObject (DtReflectedEnvironmentProcess *reflectedObject)
 A reflected object must always be supplied.
virtual bool isLocal () const
 Is this network interface for a local (true) or remote (false) object? Local network interfaces should implement this function to return true.
virtual DtString type () const
 Returns the type of net interface object.
virtual void setUpdateReceived (bool updateReceived)
 Setting update received to true will cause updateFromRemoteObject() to be called on the next tick.
virtual bool updateReceived () const
 Check to see if an update has been received from the network.

Static Public Member Functions

static
DtSimRemoteEnvironmentalNetInterface
isRemoteEnvironmentalNetInterface (const DtSimObjectNetInterface *objNetInterface)
 This function will return the objNetInterface passed in, cast to a DtSimIndividualRemoteEntityNetInterface*, provided the objNetInterface is indeed an individual remote entity network interface.
static void reflectedObjectUpdateCallbackFunction (DtReflectedObject *obj, void *userData)
static DtSimObjectNetInterfacecreator (const DtString &name, DtVrfObject *simObject, DtReaderWriterRegistry *parentRegistry, bool publishObject)

Protected Member Functions

 DtSimRemoteEnvironmentalNetInterface ()
 default constructor
virtual void updateLocalGeometry (DtVrfObjectStateRepository *localState)
 put the data INTO the local state repository
virtual void updateLocalBoundingGeometry (DtVrfObjectStateRepository *localState)
virtual void updateLocalObjectState (DtVrfObjectStateRepository *localState)
virtual void updateLocalObjectType (DtVrfObjectStateRepository *localState)
virtual void updateLocalModelType (DtVrfObjectStateRepository *localState)

Protected Attributes

DtReflectedEnvironmentProcess * myReflectedObject
 Pointer to the VR-Link Reflected Object.
bool myUpdateReceived
 Set to true by post-update callback; set to false after update has been processed.

Detailed Description

File: remEnvNetIf.h.

Class: DtSimRemoteEnvironmentalNetInterface Class Description: DtSimRemoteEnvironmentalNetInterface

Derived from DtSimEnvironmentalNetInterface, DtSimRemoteEnvironmentalNetInterface provides an interface between the local representation of a remote environmental object and it's network (VR-Link) representation (DtReflectedEnvironmentProcess and DtEnvironmentProcessRepository).


Constructor & Destructor Documentation

default constructor

DtSimRemoteEnvironmentalNetInterface::DtSimRemoteEnvironmentalNetInterface ( const DtString name,
DtVrfObject simObject,
DtReaderWriterRegistry parentRegistry = 0,
bool  publishObject = true 
)

read/writable contructor

copy constructor

destructor


Member Function Documentation

const DtSimRemoteEnvironmentalNetInterface& DtSimRemoteEnvironmentalNetInterface::operator= ( const DtSimRemoteEnvironmentalNetInterface orig)

assignment operator

override of base class init().

Registers for post update callbacks on reflected object.

Reimplemented from DtSimEnvironmentalNetInterface.

Reimplemented in DtVrfRemoteEnvironmentalNetInterface.

this will copy from the reflected environment process and associated network state repository to the local state repository

virtual DtReflectedEnvironmentProcess* DtSimRemoteEnvironmentalNetInterface::reflectedObject ( ) const [virtual]

returns the pointer to the VR-Link reflected entity being used to represent this remote entity

initializes parts of the local repository from the network state rep.

This needs to be done after the call to setReflectedObject()

virtual void DtSimRemoteEnvironmentalNetInterface::setReflectedObject ( DtReflectedEnvironmentProcess *  reflectedObject) [virtual]

A reflected object must always be supplied.

This function also sets the network state repository pointer (myBaseNetworkState) to the repository created by this reflected object

virtual bool DtSimRemoteEnvironmentalNetInterface::isLocal ( ) const [inline, virtual]

Is this network interface for a local (true) or remote (false) object? Local network interfaces should implement this function to return true.

Remote network interfaces should implement this to return true.

Implements DtSimObjectNetInterface.

Returns the type of net interface object.

Strings are defined in netIfTypes.h.

Implements DtSimObjectNetInterface.

Reimplemented in DtVrfRemoteEnvironmentalNetInterface, DtRemoteTacticalSmokeNetInterface, and DtGlobalEnvironmentRemoteNetInterface.

virtual void DtSimRemoteEnvironmentalNetInterface::setUpdateReceived ( bool  updateReceived) [virtual]

Setting update received to true will cause updateFromRemoteObject() to be called on the next tick.

Check to see if an update has been received from the network.

This function will return the objNetInterface passed in, cast to a DtSimIndividualRemoteEntityNetInterface*, provided the objNetInterface is indeed an individual remote entity network interface.

static void DtSimRemoteEnvironmentalNetInterface::reflectedObjectUpdateCallbackFunction ( DtReflectedObject *  obj,
void *  userData 
) [static]
static DtSimObjectNetInterface* DtSimRemoteEnvironmentalNetInterface::creator ( const DtString name,
DtVrfObject simObject,
DtReaderWriterRegistry parentRegistry,
bool  publishObject 
) [static]

put the data INTO the local state repository

Reimplemented in DtRemoteTacticalSmokeNetInterface, and DtGlobalEnvironmentRemoteNetInterface.


Member Data Documentation

DtReflectedEnvironmentProcess* DtSimRemoteEnvironmentalNetInterface::myReflectedObject [protected]

Pointer to the VR-Link Reflected Object.

Set to true by post-update callback; set to false after update has been processed.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)