VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtAggregateCopyObject Class Reference
Inheritance diagram for makVrf::DtAggregateCopyObject:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtAggregateCopyObject (makVrv::DtDe &)
virtual ~DtAggregateCopyObject ()
virtual bool copyOperationsPending () const
 Return true if copy operations are complete, else false will signal that there are other operations yet to be done.

Protected Types

typedef std::map< std::string,
makVrv::DtElementID
AwaitingMap

Protected Member Functions

virtual void write (std::ostringstream &str, const makVrv::DtVrlinkSimulatedEntityState *data, makVrv::DtUniqueID id)
 Copies aggregate specific information and starts hierarchy copy.
virtual void read (std::istringstream &str, makVrv::DtVrlinkSimulatedEntityState *data)
 Reads in data specific to this aggregate and all subordinates.
virtual void copied (DtCopyObject *, const std::string &)
 Called when subordinate object has successfully copied. Re-emits signal.
virtual void copyOperationPending (DtCopyObject *, const std::string &)
 Reemits copy operation pending signal.
virtual void createObject (const DtVector &)
 Creates this object and all sub objects.
virtual void pasteCompleted ()
 Called when all child objects have been created. Completes aggregate process.
virtual bool pasteComplete () const
 Returns true if paste operation is complete. Default is true.
virtual std::string pastePendingMessage () const
 Message that is describing what this object is waiting for as far as pasting goes.
virtual void readComplete (std::istringstream &str)
 Called when reading of buffer for object is complete.
virtual void pasted (DtCopyObject *)
 Called when paste operation has completed for the supplied object. Re-emits pasted signal.
virtual void pasteOperationPending (DtCopyObject *, const std::string &)
 Called when a paste operation is pending, emits signal_pasteOperationPending.
virtual void pasteCancelled (DtCopyObject *)
 Called when a paste operation is cancelled.
virtual void copyChildren (const makVrv::DtElementIDHierarchy::ElementIDs &)
 Schedules to copy all children found. Will use copy/paste manager to create copy objects.
virtual void cancel ()
 Cancels pending operations. If awaiting plan, unregisters callback.
virtual std::string copyPendingMessage () const
 Message that is describing what this object is waiting for as far as copying goes.
virtual bool cancelComplete () const
 Returns true if cancel is complete.
virtual void copy (makVrv::DtSimEntry *simEntry)
 Starts copy process. Subclasses need to implement specific copy procedures.
virtual void copyComplete ()
 Copies all paste data into the output buffer before calling parent method.
virtual
makVrv::DtVrlinkSimulatedBaseState
createReadableStateData () const
 Creates state data that will be used to read into a readable buffer.
virtual DtEntityCreationData entityCreationData (const DtVector &)
 Return entity creation data for this entity.
virtual void processPasteStep ()
 If all other steps are complete, do aggregatation and setting of formation.

Protected Attributes

DtVrfAggregateCopyPasteHandler myCopyPasteHandler
makVrv::DtSignalConnectionManager myCopyConnections
makVrv::DtSignalConnectionManager myPasteConnections
int myWaitingForChildren
bool myPasteComplete
bool myAwaitingSubordinateCreation
DtVector myAggregatePasteLocation
std::vector
< makVrv::DtVrlinkSimulatedEntityState * > 
myPastedSubordinates
AwaitingMap myAwaitingOrganization
makVrv::DtStateView
< makVrv::DtVrlinkSimulatedBaseState > * 
myAggregateStateView

Member Typedef Documentation

typedef std::map<std::string, makVrv::DtElementID> makVrf::DtAggregateCopyObject::AwaitingMap [protected]

Constructor & Destructor Documentation


Member Function Documentation

virtual void makVrf::DtAggregateCopyObject::write ( std::ostringstream &  str,
const makVrv::DtVrlinkSimulatedEntityState data,
makVrv::DtUniqueID  id 
) [protected, virtual]

Copies aggregate specific information and starts hierarchy copy.

Reimplemented from makVrf::DtEntityCopyObject.

virtual void makVrf::DtAggregateCopyObject::read ( std::istringstream &  str,
makVrv::DtVrlinkSimulatedEntityState data 
) [protected, virtual]

Reads in data specific to this aggregate and all subordinates.

Reimplemented from makVrf::DtEntityCopyObject.

virtual void makVrf::DtAggregateCopyObject::copied ( DtCopyObject ,
const std::string &   
) [protected, virtual]

Called when subordinate object has successfully copied. Re-emits signal.

virtual void makVrf::DtAggregateCopyObject::copyOperationPending ( DtCopyObject ,
const std::string &   
) [protected, virtual]

Reemits copy operation pending signal.

virtual void makVrf::DtAggregateCopyObject::createObject ( const DtVector ) [protected, virtual]

Creates this object and all sub objects.

Will wait until sub objects are created before creating this object and then aggregating sub objects. The vector supplied is in geocentric

Reimplemented from makVrf::DtEntityCopyObject.

virtual void makVrf::DtAggregateCopyObject::pasteCompleted ( ) [protected, virtual]

Called when all child objects have been created. Completes aggregate process.

virtual bool makVrf::DtAggregateCopyObject::pasteComplete ( ) const [protected, virtual]

Returns true if paste operation is complete. Default is true.

Reimplemented from makVrf::DtEntityCopyObject.

virtual std::string makVrf::DtAggregateCopyObject::pastePendingMessage ( ) const [protected, virtual]

Message that is describing what this object is waiting for as far as pasting goes.

Reimplemented from makVrf::DtEntityCopyObject.

virtual void makVrf::DtAggregateCopyObject::readComplete ( std::istringstream &  str) [protected, virtual]

Called when reading of buffer for object is complete.

Reimplemented from makVrf::DtCopyObject.

virtual void makVrf::DtAggregateCopyObject::pasted ( DtCopyObject ) [protected, virtual]

Called when paste operation has completed for the supplied object. Re-emits pasted signal.

virtual void makVrf::DtAggregateCopyObject::pasteOperationPending ( DtCopyObject ,
const std::string &   
) [protected, virtual]

Called when a paste operation is pending, emits signal_pasteOperationPending.

virtual void makVrf::DtAggregateCopyObject::pasteCancelled ( DtCopyObject ) [protected, virtual]

Called when a paste operation is cancelled.

Will remove from objectsBeingPasted list, and, if list is empty, signals pasteComplete message

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 or subordinates

Reimplemented from makVrf::DtEntityCopyObject.

Schedules to copy all children found. Will use copy/paste manager to create copy objects.

virtual void makVrf::DtAggregateCopyObject::cancel ( ) [protected, virtual]

Cancels pending operations. If awaiting plan, unregisters callback.

Reimplemented from makVrf::DtEntityCopyObject.

virtual std::string makVrf::DtAggregateCopyObject::copyPendingMessage ( ) const [protected, virtual]

Message that is describing what this object is waiting for as far as copying goes.

Reimplemented from makVrf::DtEntityCopyObject.

virtual bool makVrf::DtAggregateCopyObject::cancelComplete ( ) const [protected, virtual]

Returns true if cancel is complete.

Reimplemented from makVrf::DtCopyObject.

virtual void makVrf::DtAggregateCopyObject::copy ( makVrv::DtSimEntry ) [protected, virtual]

Starts copy process. Subclasses need to implement specific copy procedures.

Reimplemented from makVrf::DtCopyObject.

virtual void makVrf::DtAggregateCopyObject::copyComplete ( ) [protected, virtual]

Copies all paste data into the output buffer before calling parent method.

Reimplemented from makVrf::DtCopyObject.

Creates state data that will be used to read into a readable buffer.

Will persist until object is deleted

Reimplemented from makVrf::DtEntityCopyObject.

Return entity creation data for this entity.

Reimplemented from makVrf::DtEntityCopyObject.

virtual void makVrf::DtAggregateCopyObject::processPasteStep ( ) [protected, virtual]

If all other steps are complete, do aggregatation and setting of formation.

Reimplemented from makVrf::DtEntityCopyObject.


Member Data Documentation


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)