![]() |
VR-Forces Developer's Guide
|
Class Description: DtActiveSonarLocalNetInterface.
Publishes emitter found in the DtActiveSonarStateComponent 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

Public Member Functions | |
| DtActiveSonarLocalNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objectManager, bool publishObject=true) | |
| virtual | ~DtActiveSonarLocalNetInterface () override |
| virtual bool | init (const DtStateComponent *) override |
| virtual DtString | type () const override |
| virtual bool | isLocal () const override |
| virtual bool | wantsToCreatePublisher () const override |
Public Member Functions inherited from makVrf::DtLocalStateComponentNetInterface | |
| DtLocalStateComponentNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objectManager, bool publishObject=true) | |
| virtual | ~DtLocalStateComponentNetInterface () override |
| virtual bool | isUnit () const override |
| virtual bool | isEntity () const override |
| virtual bool | isEnvironmental () const override |
| virtual void | onTick () override |
| virtual bool | publishObject () const override |
| virtual bool | shouldPublish () const |
Public Member Functions inherited from makVrf::DtStateComponentNetInterface | |
| DtStateComponentNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objectManager, bool publishObject=true) | |
| virtual | ~DtStateComponentNetInterface () override |
| virtual void | tick () override |
Public Member Functions inherited from makVrf::DtSimObjectNetInterface | |
| DtVrfCallbackQueue::CallbackInterface::Ptr | parallelContainer () |
| DtSimObjectNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *, bool publishObject=true) | |
| virtual | ~DtSimObjectNetInterface () |
| virtual bool | init (const DtEntityIdentifier &id=DtEntityIdentifier()) |
| virtual bool | init (DtHlaObjectWithStateRep *obj, DtHlaObjectWithStateRep *extendedAttributes=nullptr) |
| virtual int | maxNameLength () const |
| virtual void | toBeRemoved () |
| virtual void | sendFinalPduOnDestruction (bool) |
| bool | isValid () const |
| virtual std::vector < DtGlobalObjectDesignator > | associatedGlobalObjectDesignators () const |
| virtual void | parallelTick () |
| virtual void | forceUpdate () |
Static Public Member Functions | |
| static DtSimObjectNetInterface * | creator (DtStateData *vrfObject, DtVrlinkNetworkInterface *mgr, bool publishObject) |
Static Public Member Functions inherited from makVrf::DtSimObjectNetInterface | |
| static void | setNonVrfUUIDResolver (DtNonVrfUUIDResolver *) |
| static DtNonVrfUUIDResolver * | nonVrfUUIDResolver () |
| static void | addSimObjectNetInterfaceCreatorFcn (const DtString &type, DtSimObjectNetIfaceCreatorFcn fcn) |
| static void | setFactory (DtSimObjectNetInterfaceFactory *factory) |
| static DtSimObjectNetInterfaceFactory * | factory () |
| static DtSimObjectNetInterface * | createNetInterface (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 () override |
| virtual DtObjectPublisher * | createPublisher (const DtActiveSonarStateComponent *) |
| virtual DtObjectPublisher * | createCombinedPublisher (const DtActiveSonarStateComponent *) |
| virtual void | updatePublisher (DtActiveSonarStateRepository *, const DtActiveSonarStateComponent *) |
| virtual void | updateBeam (DtActiveSonarBeamRepository *, const DtActiveSonarBeamStateData *) |
| virtual void | publishInCombinedMode (const std::vector< const DtActiveSonarStateComponent * > &, 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 override |
Protected Member Functions inherited from makVrf::DtSimObjectNetInterface | |
| virtual void | stateDataDestroyed () |
| bool | runFullyThreaded () const |
| const DtStateData * | vrfObject () const |
| DtStateData * | nextFrameVrfObject () |
| virtual const DtStateRepository * | networkState () const |
Protected Attributes | |
| const DtActiveSonarStateComponent * | myActiveSonarComponent |
| bool | myInCombinedMode |
Protected Attributes inherited from makVrf::DtLocalStateComponentNetInterface | |
| bool | myPublishObject |
| DtObjectPublisher * | myPublisher |
| boost::signals2::connection | myComponentAddedConnection |
| boost::signals2::connection | myComponentRemovedConnection |
Protected Attributes inherited from makVrf::DtStateComponentNetInterface | |
| const DtStateComponent * | myStateComponent |
Protected Attributes inherited from makVrf::DtSimObjectNetInterface | |
| DtStateData * | mySimObject |
| DtVrlinkNetworkInterface * | myObjectManager |
| DtStateRepository * | myNetworkState |
| bool | myNeedsNetworkSetup |
| DtNetInterfaceParallelLock | myLock |
| boost::signals2::connection | mySimObjectRemovalConnection |
| tbb::mutex | myDeleteGuardMutex |
| DtVrfCallbackQueue::CallbackInterface::Ptr | myParallelContainer |
Private Member Functions | |
| DtActiveSonarLocalNetInterface () | |
| DtActiveSonarLocalNetInterface (const DtSimObjectNetInterface &orig) | |
| const DtActiveSonarLocalNetInterface & | operator= (const DtSimObjectNetInterface &orig) |
Additional Inherited Members | |
Public Attributes inherited from makVrf::DtSimObjectNetInterface | |
| boost::signals2::signal< void()> | signal_networkInterfaceDeleted |
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 DtNonVrfUUIDResolver * | theNonVrfUUIDResolver |
|
private |
default constructor
|
private |
copy constructor
| makVrf::DtActiveSonarLocalNetInterface::DtActiveSonarLocalNetInterface | ( | 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.
|
overridevirtual |
destructor
|
private |
assignment operator
|
overridevirtual |
Derived classes that need to perform virtual construction my override this function as desired.
Reimplemented from makVrf::DtStateComponentNetInterface.
|
overridevirtual |
Returns the type of net interface object. Strings are defined in netIfTypes.h.
Implements makVrf::DtSimObjectNetInterface.
|
static |
|
inlineoverridevirtual |
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.
|
overridevirtual |
Returns true if this interface wants to create a publisher. This cannot be done in parallel.
Implements makVrf::DtSimObjectNetInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtLocalStateComponentNetInterface.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |