![]() |
VR-Link API Documentation for DIS
|
This is a base class meant to encapsulate user callbacks on ownership management services. More...
Inheritance diagram for DtOwnershipHandler:
Collaboration diagram for DtOwnershipHandler:Public Member Functions | |
| DtOwnershipHandler () | |
| Constructor. More... | |
| virtual | ~DtOwnershipHandler () |
| Destructor. More... | |
| DtOwnershipHandler (const DtOwnershipHandler &other) | |
| Copy constructor. More... | |
| DtOwnershipHandler & | operator= (const DtOwnershipHandler &other) |
| Assignment operator. More... | |
| virtual DtOwnershipHandler * | clone () const |
| Clone copy. More... | |
| virtual void | divestObject (DtU16 siteTarget, DtU16 applicationTarget) |
| Begin a DIS 7 push request for this object The entire process will by default be automated from here. More... | |
| virtual void | acquireObject () |
| Begin a DIS 7 pull request for this object The entire process will by default be automated from here. More... | |
| virtual void | setExConn (DtExerciseConn *exConn) |
| virtual void | setEntityId (const DtEntityIdentifier &entityId) |
| virtual void | setAutoResponseTimer (double time) |
| By default DIS 7 allows for 5 seconds for transfer ownership to happen before it gets cancelled. More... | |
Protected Member Functions | |
| virtual void | acknowledgeCallback (DtAcknowledgeRPdu *ack) |
| virtual void | setRecordCallback (DtSetRecordPdu *setRec) |
| virtual void | eventReportCallback (DtEventReportPdu *setRec) |
| virtual void | transferOwnershipCallback (DtTransferControlRequestPdu *transfer) |
| virtual void | transferFailed () |
| Sent whenever a transfer did not complete. More... | |
| virtual void | gainOwnership () |
| Called whenever the local federate has gained ownership of an object. More... | |
| virtual void | loseOwnership () |
| Called whenever the local federate has lost ownership of an object. More... | |
| virtual bool | requestOwnershipRelease () |
| virtual bool | requestOwnershipAssumption () |
Static Protected Member Functions | |
| static void | acknowledgeRCb (DtAcknowledgeRPdu *ack, void *usr) |
| The following callbacks are used internally to handle the back and forth messaging required in a DIS ownership transfer. More... | |
| static void | setRecordCb (DtSetRecordPdu *setRec, void *usr) |
| static void | eventReportCb (DtEventReportPdu *setRec, void *usr) |
| static void | transferOwnershipCb (DtTransferControlRequestPdu *setRec, void *usr) |
This is a base class meant to encapsulate user callbacks on ownership management services.
Users should derive from this class, override the empty functions declared here with implementations that perform desired actions. The DtDefaultOwnershipHandler is a derivation of this class that provides easy ownership transfer in DIS.
| DtOwnershipHandler::DtOwnershipHandler | ( | ) |
Constructor.
|
virtual |
Destructor.
| DtOwnershipHandler::DtOwnershipHandler | ( | const DtOwnershipHandler & | other | ) |
Copy constructor.
|
protectedvirtual |
|
staticprotected |
The following callbacks are used internally to handle the back and forth messaging required in a DIS ownership transfer.
|
virtual |
Begin a DIS 7 pull request for this object The entire process will by default be automated from here.
|
virtual |
Clone copy.
Reimplemented in DtDefaultOwnershipHandler.
Begin a DIS 7 push request for this object The entire process will by default be automated from here.
| siteTarget | the destination site where you want the object to go |
| appicationTarget | the destination application where you want the object to go. |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
Called whenever the local federate has gained ownership of an object.
Reimplemented in DtDefaultOwnershipHandler.
|
protectedvirtual |
Called whenever the local federate has lost ownership of an object.
Reimplemented in DtDefaultOwnershipHandler.
| DtOwnershipHandler& DtOwnershipHandler::operator= | ( | const DtOwnershipHandler & | other | ) |
Assignment operator.
|
protectedvirtual |
Reimplemented in DtDefaultOwnershipHandler.
|
protectedvirtual |
Reimplemented in DtDefaultOwnershipHandler.
|
virtual |
By default DIS 7 allows for 5 seconds for transfer ownership to happen before it gets cancelled.
You can change this value by calling this function.
|
virtual |
|
virtual |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
Sent whenever a transfer did not complete.
|
protectedvirtual |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |