![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtEntityCopyObject (makVrv::DtDe &) | |
| virtual | ~DtEntityCopyObject () |
| virtual DtGeodeticCoord | calculateCenter () const |
| Returns the center of the object in geocentric coordinates. | |
| virtual void | createFacade () |
| Creates the facade that will be used to display a temp item during paste operation. | |
| virtual void | setOrigin (const DtGeodeticCoord &) |
| Should shift (rather than absolute location set) points by amount specified. | |
| virtual DtVector | origin () const |
| If facade is available, returns the origin of the facade, else returns center(). Returns in local coordinates. | |
Protected Member Functions | |
| virtual void | write (std::ostringstream &str, const makVrv::DtVrlinkSimulatedBaseState *data, makVrv::DtUniqueID id) |
| Writes data to stream. | |
| virtual void | write (std::ostringstream &str, const makVrv::DtVrlinkSimulatedEntityState *data, makVrv::DtUniqueID id) |
| virtual void | write (std::ostringstream &str, const DtVrfObjectDataState *data) |
| Writes vrf object data state. | |
| virtual void | read (std::istringstream &str, makVrv::DtVrlinkSimulatedBaseState *data) |
| Reads data from stream. | |
| virtual void | read (std::istringstream &str, makVrv::DtVrlinkSimulatedEntityState *data) |
| virtual void | read (std::istringstream &str, DtVrfObjectDataState *data) |
| Reads vrf object data state. | |
| virtual bool | copyOperationsPending () const |
| Return true if copy operations are complete, else false will signal that there are other operations yet to be done. | |
| virtual void | requestPlan () |
| Requests plan from back-end. | |
| virtual void | processReceivedPlan (DtSimMessage *) |
| Call back in response to receiving plan. | |
| virtual void | cancel () |
| Cancels pending operations. If awaiting plan, unregisters callback. | |
| virtual makVrv::DtVrlinkSimulatedBaseState * | createReadableStateData () const |
| Creates state data that will be used to read into a readable buffer. | |
| virtual std::string | copyPendingMessage () const |
| Message that is describing what this object is waiting for as far as copying goes. | |
| virtual bool | pasteComplete () const |
| Returns true if paste operation is complete. Default is true. | |
| virtual void | createObject (const DtVector &) |
| Creates the object locally or on the network. The vector supplied is in geocentric. | |
| virtual std::string | pastePendingMessage () const |
| Message that is describing what this object is waiting for as far as copying goes. | |
| virtual void | processObjectCreated (DtString, const DtEntityIdentifier &) |
| Called in response to object being created. | |
| virtual void | processPasteStep () |
| Called during tick, will process next step in the paste operation. | |
| virtual void | sendRulesOfEngagement () |
| Called to send rules of engagement. | |
| virtual void | sendPlan () |
| Sends plan for entity to back-end. | |
| virtual DtEntityCreationData | entityCreationData (const DtVector &) |
| Return entity creation data for this entity. | |
Protected Attributes | |
| bool | myAwaitingPlan |
| DtIfPlan * | myPlan |
| int | myAwaiting |
| int | myRequestId |
| DtEntityFacadeCollection * | myFacade |
| bool | myClampToGround |
| DtVector | myPosition |
| virtual makVrf::DtEntityCopyObject::~DtEntityCopyObject | ( | ) | [virtual] |
| virtual DtGeodeticCoord makVrf::DtEntityCopyObject::calculateCenter | ( | ) | const [virtual] |
Returns the center of the object in geocentric coordinates.
Reimplemented from makVrf::DtCopyObject.
| virtual void makVrf::DtEntityCopyObject::createFacade | ( | ) | [virtual] |
Creates the facade that will be used to display a temp item during paste operation.
Reimplemented from makVrf::DtCopyObject.
| virtual void makVrf::DtEntityCopyObject::setOrigin | ( | const DtGeodeticCoord & | ) | [virtual] |
Should shift (rather than absolute location set) points by amount specified.
Reimplemented from makVrf::DtCopyObject.
| virtual DtVector makVrf::DtEntityCopyObject::origin | ( | ) | const [virtual] |
If facade is available, returns the origin of the facade, else returns center(). Returns in local coordinates.
Reimplemented from makVrf::DtCopyObject.
| virtual void makVrf::DtEntityCopyObject::write | ( | std::ostringstream & | str, |
| const makVrv::DtVrlinkSimulatedBaseState * | data, | ||
| makVrv::DtUniqueID | id | ||
| ) | [protected, virtual] |
Writes data to stream.
Override to write own data, but, make sure to call parent method
Reimplemented from makVrf::DtCopyObject.
| virtual void makVrf::DtEntityCopyObject::write | ( | std::ostringstream & | str, |
| const makVrv::DtVrlinkSimulatedEntityState * | data, | ||
| makVrv::DtUniqueID | id | ||
| ) | [protected, virtual] |
Reimplemented in makVrf::DtAggregateCopyObject.
| virtual void makVrf::DtEntityCopyObject::write | ( | std::ostringstream & | str, |
| const DtVrfObjectDataState * | data | ||
| ) | [protected, virtual] |
Writes vrf object data state.
Reimplemented from makVrf::DtCopyObject.
| virtual void makVrf::DtEntityCopyObject::read | ( | std::istringstream & | str, |
| makVrv::DtVrlinkSimulatedBaseState * | data | ||
| ) | [protected, virtual] |
Reads data from stream.
Override to read own data, but, make sure to call parent method
Reimplemented from makVrf::DtCopyObject.
| virtual void makVrf::DtEntityCopyObject::read | ( | std::istringstream & | str, |
| makVrv::DtVrlinkSimulatedEntityState * | data | ||
| ) | [protected, virtual] |
Reimplemented in makVrf::DtAggregateCopyObject.
| virtual void makVrf::DtEntityCopyObject::read | ( | std::istringstream & | str, |
| DtVrfObjectDataState * | data | ||
| ) | [protected, virtual] |
Reads vrf object data state.
Reimplemented from makVrf::DtCopyObject.
| virtual bool makVrf::DtEntityCopyObject::copyOperationsPending | ( | ) | const [protected, virtual] |
Return true if copy operations are complete, else false will signal that there are other operations yet to be done.
Will return true if waiting for plan.
Reimplemented from makVrf::DtCopyObject.
Reimplemented in makVrf::DtAggregateCopyObject.
| virtual void makVrf::DtEntityCopyObject::requestPlan | ( | ) | [protected, virtual] |
Requests plan from back-end.
When received, copies into stream and signals copy is complete
| virtual void makVrf::DtEntityCopyObject::processReceivedPlan | ( | DtSimMessage * | ) | [protected, virtual] |
Call back in response to receiving plan.
Calls processReceivedPlan if this plan is for us
| virtual void makVrf::DtEntityCopyObject::cancel | ( | ) | [protected, virtual] |
Cancels pending operations. If awaiting plan, unregisters callback.
Reimplemented from makVrf::DtCopyObject.
Reimplemented in makVrf::DtAggregateCopyObject.
| virtual makVrv::DtVrlinkSimulatedBaseState* makVrf::DtEntityCopyObject::createReadableStateData | ( | ) | const [protected, virtual] |
Creates state data that will be used to read into a readable buffer.
Will persist until object is deleted
Reimplemented from makVrf::DtCopyObject.
Reimplemented in makVrf::DtAggregateCopyObject.
| virtual std::string makVrf::DtEntityCopyObject::copyPendingMessage | ( | ) | const [protected, virtual] |
Message that is describing what this object is waiting for as far as copying goes.
Reimplemented from makVrf::DtCopyObject.
Reimplemented in makVrf::DtAggregateCopyObject.
| virtual bool makVrf::DtEntityCopyObject::pasteComplete | ( | ) | const [protected, virtual] |
Returns true if paste operation is complete. Default is true.
Reimplemented from makVrf::DtCopyObject.
Reimplemented in makVrf::DtAggregateCopyObject.
| virtual void makVrf::DtEntityCopyObject::createObject | ( | const DtVector & | ) | [protected, virtual] |
Creates the object locally or on the network. The vector supplied is in geocentric.
Reimplemented from makVrf::DtCopyObject.
Reimplemented in makVrf::DtAggregateCopyObject.
| virtual std::string makVrf::DtEntityCopyObject::pastePendingMessage | ( | ) | const [protected, virtual] |
Message that is describing what this object is waiting for as far as copying goes.
Reimplemented from makVrf::DtCopyObject.
Reimplemented in makVrf::DtAggregateCopyObject.
| virtual void makVrf::DtEntityCopyObject::processObjectCreated | ( | DtString | , |
| const DtEntityIdentifier & | |||
| ) | [protected, virtual] |
Called in response to object being created.
Will see if it is the one we pasted, then, continue on with pasting operation
| virtual void makVrf::DtEntityCopyObject::processPasteStep | ( | ) | [protected, virtual] |
Called during tick, will process next step in the paste operation.
Reimplemented in makVrf::DtAggregateCopyObject.
| virtual void makVrf::DtEntityCopyObject::sendRulesOfEngagement | ( | ) | [protected, virtual] |
Called to send rules of engagement.
| virtual void makVrf::DtEntityCopyObject::sendPlan | ( | ) | [protected, virtual] |
Sends plan for entity to back-end.
| virtual DtEntityCreationData makVrf::DtEntityCopyObject::entityCreationData | ( | const DtVector & | ) | [protected, virtual] |
Return entity creation data for this entity.
Reimplemented in makVrf::DtAggregateCopyObject.
bool makVrf::DtEntityCopyObject::myAwaitingPlan [protected] |
DtIfPlan* makVrf::DtEntityCopyObject::myPlan [protected] |
int makVrf::DtEntityCopyObject::myAwaiting [protected] |
int makVrf::DtEntityCopyObject::myRequestId [protected] |
bool makVrf::DtEntityCopyObject::myClampToGround [protected] |
DtVector makVrf::DtEntityCopyObject::myPosition [protected] |