VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrf::DtUnderwaterAcousticsLocalNetInterface Class Reference

Class Description: DtUnderwaterAcousticsLocalNetInterface.

Publishes emitter found in the DtUnderwaterAcousticsStateComponent passed in

There is a unified publisher in VR-Link, so, even though both of these types are added, if there are both acoustic and underwater propulsion going on, the active sonar publisher will do the unified publishing and the underwater acoustics will do nothing

Inheritance diagram for makVrf::DtUnderwaterAcousticsLocalNetInterface:
Inheritance graph
[legend]

Public Member Functions

 DtUnderwaterAcousticsLocalNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objectManager, bool publishObject=true)
 
virtual ~DtUnderwaterAcousticsLocalNetInterface ()
 
virtual bool init (const DtStateComponent *)
 
virtual DtString type () const
 
virtual bool isLocal () const
 
virtual bool wantsToCreatePublisher () const
 
- Public Member Functions inherited from makVrf::DtLocalStateComponentNetInterface
 DtLocalStateComponentNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objectManager, bool publishObject=true)
 
virtual ~DtLocalStateComponentNetInterface ()
 
virtual bool isUnit () const
 
virtual bool isEntity () const
 
virtual bool isEnvironmental () const
 
virtual void onTick ()
 
bool publishObject () const
 
virtual bool shouldPublish () const
 
- Public Member Functions inherited from makVrf::DtStateComponentNetInterface
 DtStateComponentNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objectManager, bool publishObject=true)
 
virtual ~DtStateComponentNetInterface ()
 
virtual void tick ()
 
- Public Member Functions inherited from makVrf::DtSimObjectNetInterface
 DtSimObjectNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *, bool publishObject=true)
 
virtual ~DtSimObjectNetInterface ()
 
virtual bool init (const DtEntityIdentifier &id=DtEntityIdentifier())
 
virtual int maxNameLength () const
 
virtual void toBeRemoved ()
 
virtual void parallelTick ()
 
virtual void forceUpdate ()
 

Static Public Member Functions

static DtSimObjectNetInterfacecreator (DtStateData *vrfObject, DtVrlinkNetworkInterface *mgr, bool publishObject)
 
- Static Public Member Functions inherited from makVrf::DtSimObjectNetInterface
static void setNonVrfUUIDResolver (DtNonVrfUUIDResolver *)
 
static DtNonVrfUUIDResolvernonVrfUUIDResolver ()
 
static void addSimObjectNetInterfaceCreatorFcn (const DtString &type, DtSimObjectNetIfaceCreatorFcn fcn)
 
static void setFactory (DtSimObjectNetInterfaceFactory *factory)
 
static
DtSimObjectNetInterfaceFactory
factory ()
 
static DtSimObjectNetInterfacecreateNetInterface (const DtString &type, DtStateData *simObject, DtVrlinkNetworkInterface *, bool publishObject=true)
 
static int maxNameLengthForInterfaceType (const DtString &interfaceTypeString)
 
static void setNonVrfObjectsUUIDScheme (const DtString &)
 
static DtString nonVrfObjectsUUIDScheme ()
 

Protected Member Functions

virtual void updatePublisher ()
 
virtual DtObjectPublishercreatePublisher (const DtUnderwaterAcousticsStateComponent *)
 
virtual void updatePublisher (DtObjectPublisher *, const DtUnderwaterAcousticsStateComponent *)
 
- Protected Member Functions inherited from makVrf::DtLocalStateComponentNetInterface
virtual void lock ()
 
virtual void unlock ()
 
- Protected Member Functions inherited from makVrf::DtStateComponentNetInterface
virtual RTI::ObjectClassHandle objectClassHandle () const
 
- Protected Member Functions inherited from makVrf::DtSimObjectNetInterface
bool runFullyThreaded () const
 
const DtStateDatavrfObject () const
 
DtStateDatanextFrameVrfObject ()
 
virtual const DtStateRepositorynetworkState () const
 

Protected Attributes

const
DtUnderwaterAcousticsStateComponent
myUnderwaterAcousticsComponent
 
bool myInCombinedMode
 
- Protected Attributes inherited from makVrf::DtLocalStateComponentNetInterface
bool myPublishObject
 
DtObjectPublishermyPublisher
 
boost::signals2::connection myComponentAddedConnection
 
boost::signals2::connection myComponentRemovedConnection
 
- Protected Attributes inherited from makVrf::DtStateComponentNetInterface
const DtStateComponentmyStateComponent
 
- Protected Attributes inherited from makVrf::DtSimObjectNetInterface
DtStateDatamySimObject
 
DtVrlinkNetworkInterfacemyObjectManager
 
DtStateRepositorymyNetworkState
 
bool myNeedsNetworkSetup
 
DtNetInterfaceParallelLock myLock
 

Private Member Functions

 DtUnderwaterAcousticsLocalNetInterface ()
 
 DtUnderwaterAcousticsLocalNetInterface (const DtSimObjectNetInterface &orig)
 
const
DtUnderwaterAcousticsLocalNetInterface
operator= (const DtSimObjectNetInterface &orig)
 

Additional Inherited Members

- Static Public Attributes inherited from makVrf::DtSimObjectNetInterface
static tbb::spin_rw_mutex thePublisherCreationMutex
 
static tbb::spin_rw_mutex thePublisherTickMutex
 
- Static Protected Attributes inherited from makVrf::DtSimObjectNetInterface
static
DtSimObjectNetInterfaceFactory
theFactory
 
static DtNonVrfUUIDResolvertheNonVrfUUIDResolver
 

Constructor & Destructor Documentation

makVrf::DtUnderwaterAcousticsLocalNetInterface::DtUnderwaterAcousticsLocalNetInterface ( )
private

default constructor

makVrf::DtUnderwaterAcousticsLocalNetInterface::DtUnderwaterAcousticsLocalNetInterface ( const DtSimObjectNetInterface orig)
private

copy constructor

makVrf::DtUnderwaterAcousticsLocalNetInterface::DtUnderwaterAcousticsLocalNetInterface ( DtStateData simObject,
DtVrlinkNetworkInterface objectManager,
bool  publishObject = true 
)

read/writable constructor Publish object flag indicate whether or not locally simulated objects should actually publish the object on the network. If flag is false, no PDUs/RPR interactions should be sent over the network for the object.

virtual makVrf::DtUnderwaterAcousticsLocalNetInterface::~DtUnderwaterAcousticsLocalNetInterface ( )
virtual

destructor

Member Function Documentation

const DtUnderwaterAcousticsLocalNetInterface& makVrf::DtUnderwaterAcousticsLocalNetInterface::operator= ( const DtSimObjectNetInterface orig)
private

assignment operator

virtual bool makVrf::DtUnderwaterAcousticsLocalNetInterface::init ( const DtStateComponent )
virtual

Derived classes that need to perform virtual construction my override this function as desired.

Reimplemented from makVrf::DtStateComponentNetInterface.

virtual DtString makVrf::DtUnderwaterAcousticsLocalNetInterface::type ( ) const
virtual

Returns the type of net interface object. Strings are defined in netIfTypes.h.

Implements makVrf::DtSimObjectNetInterface.

static DtSimObjectNetInterface* makVrf::DtUnderwaterAcousticsLocalNetInterface::creator ( DtStateData vrfObject,
DtVrlinkNetworkInterface mgr,
bool  publishObject 
)
static
virtual bool makVrf::DtUnderwaterAcousticsLocalNetInterface::isLocal ( ) const
inlinevirtual

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.

Reimplemented from makVrf::DtLocalStateComponentNetInterface.

virtual bool makVrf::DtUnderwaterAcousticsLocalNetInterface::wantsToCreatePublisher ( ) const
virtual

Returns true if this interface wants to create a publisher. This cannot be done in parallel.

Implements makVrf::DtSimObjectNetInterface.

virtual void makVrf::DtUnderwaterAcousticsLocalNetInterface::updatePublisher ( )
protectedvirtual
virtual DtObjectPublisher* makVrf::DtUnderwaterAcousticsLocalNetInterface::createPublisher ( const DtUnderwaterAcousticsStateComponent )
protectedvirtual
virtual void makVrf::DtUnderwaterAcousticsLocalNetInterface::updatePublisher ( DtObjectPublisher ,
const DtUnderwaterAcousticsStateComponent  
)
protectedvirtual

Member Data Documentation

const DtUnderwaterAcousticsStateComponent* makVrf::DtUnderwaterAcousticsLocalNetInterface::myUnderwaterAcousticsComponent
protected
bool makVrf::DtUnderwaterAcousticsLocalNetInterface::myInCombinedMode
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)