VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtAggregateCopyObject Class Reference
Inheritance diagram for makVrf::DtAggregateCopyObject:
Inheritance graph
[legend]

Classes

struct  SubordinateState
 

Public Member Functions

 DtAggregateCopyObject (makVrv::DtDe &)
 
virtual ~DtAggregateCopyObject () override
 
virtual bool copyOperationsPending () const override
 
- Public Member Functions inherited from makVrf::DtEntityCopyObject
 DtEntityCopyObject (makVrv::DtDe &)
 
virtual ~DtEntityCopyObject () override
 
virtual DtGeodeticCoord calculateCenter () const override
 
virtual void createFacade (const DtGeodeticCoord &origin) override
 
virtual void setOrigin (const DtGeodeticCoord &) override
 
virtual DtVector pasteOrigin () const override
 
virtual DtVector origin () const override
 
virtual double groundHeight (const DtVector &currentLocal) const override
 
virtual void multipleObjectsPasting () override
 
- Public Member Functions inherited from makVrf::DtCopyObject
 DtCopyObject (makVrv::DtDe &)
 
virtual ~DtCopyObject ()
 
virtual void read (const std::string &buf)
 
std::shared_ptr< DtGuiLocalObjectreadableStateData ()
 
const std::string & name () const
 
const DtUUIDuuid () const
 
virtual void setAltitudeClampType (DtAltitudeClampType)
 
DtAltitudeClampType altitudeClampType () const
 
void setType (int t)
 
int type () const
 
void setBuffer (const std::string &b)
 
const std::string & buffer () const
 
virtual bool preserveOffsets () const
 
virtual DtGeodeticCoord center () const
 
virtual DtVector localCenter () const
 
virtual void setGeometricCenter (const DtGeodeticCoord &)
 
const DtGeodeticCoord & geometricCenter () const
 

Protected Types

typedef std::set< DtUUIDAwaitingMap
 
- Protected Types inherited from makVrf::DtCopyObject
typedef std::vector< doubleHeightOffsets
 

Protected Member Functions

virtual void write (std::ostringstream &str, DtSimObjectReference) override
 
virtual void readAdditionalData (std::istringstream &str) override
 
virtual void copied (DtCopyObject *, const std::string &)
 
virtual void copyOperationPending (DtCopyObject *, const std::string &)
 
virtual void createObject (const DtVector &) override
 
virtual void pasteCompleted ()
 
virtual bool pasteComplete () const override
 
virtual std::string pastePendingMessage () const override
 
virtual void readComplete (std::istringstream &str) override
 
virtual void pasted (DtCopyObject *)
 
virtual void pasteOperationPending (DtCopyObject *, const std::string &)
 
virtual void pasteCancelled (DtCopyObject *)
 
virtual void addStateData (std::map< std::string, std::string > &, const DtRwVariableBindings &, const DtString &var)
 
virtual void paste (const DtVector &geocLocation, int flags) override
 
virtual void copyChildren (const makVrv::DtElementIDHierarchy::ElementIDs &)
 
virtual void cancel () override
 
virtual std::string copyPendingMessage () const override
 
virtual bool cancelComplete () const override
 
virtual void copy (makVrv::DtUniqueID id) override
 
virtual void copyComplete () override
 
virtual DtEntityCreationData entityCreationData (const DtVector &) override
 
virtual void processPasteStep () override
 
- Protected Member Functions inherited from makVrf::DtEntityCopyObject
virtual void pasteStateProperties ()
 
virtual bool canAdjustAltitude (const DtEntityType &) const
 
virtual void writePlanData (std::ostringstream &str, DtSimObjectReference) override
 
virtual void readPlanData (std::istringstream &str) override
 
virtual void requestPlan ()
 
virtual void processReceivedPlan (DtSimMessage *)
 
virtual
DtVrfObjectFacadeInterface
facade () const override
 
virtual void uuidChanged (DtSimObjectReference)
 
virtual void processObjectCreated (DtString, const DtUUID &, const DtEntityIdentifier &)
 
virtual void sendRulesOfEngagement ()
 
virtual void sendPlan ()
 
virtual void processObjectDiscovered (DtSimObjectReference)
 
- Protected Member Functions inherited from makVrf::DtCopyObject
virtual void createReadableStateData (std::istringstream &)
 
virtual void checkCopyComplete ()
 
virtual void checkPasteComplete ()
 
virtual int generateRequestId ()
 
virtual void setupOffsets (const DtGeodeticCoord &)
 
virtual DtVector offsetLocation (int, const DtVector &loc) const
 
virtual DtGeodeticCoord calculateOffsetPoint (const DtGeodeticCoord &start, const DtGeodeticCoord &end, double &altAboveTerrain, double &altAboveSeaLevel) const
 
virtual DtVector localLocation (const DtGeodeticCoord &, int) const
 
virtual void createLocalDataCopy (DtSimObjectReference)
 

Protected Attributes

DtVrfAggregateCopyPasteHandler myCopyPasteHandler
 
makVrv::DtSignalConnectionManager myCopyConnections
 
makVrv::DtSignalConnectionManager myPasteConnections
 
int myWaitingForChildren
 
bool myPasteComplete
 
bool myAwaitingSubordinateCreation
 
DtVector myAggregatePasteLocation
 
std::vector< SubordinateStatemyPastedSubordinates
 
AwaitingMap myAwaitingOrganization
 
- Protected Attributes inherited from makVrf::DtEntityCopyObject
bool myAwaitingPlan
 
DtIfPlanmyPlan
 
int myAwaiting
 
int myRequestId
 
DtEntityFacadeCollectionmyFacade
 
bool myClampToGround
 
DtVector myPosition
 
unsigned int myCreateCallbackId
 
makVrv::DtSignalConnectionManager myAddedSignalManager
 
DtSimObjectReference myStateView
 
- Protected Attributes inherited from makVrf::DtCopyObject
makVrv::DtDemyDe
 
std::ostringstream myOutput
 
std::string myName
 
int myPasteFlags
 
std::shared_ptr< DtGuiLocalObjectmyReadableStateData
 
DtGeodeticCoord myCenter
 
CopyOffsets myOffsets
 
HeightOffsets myAltitudeAboveTerrain
 
HeightOffsets myAltitudeAboveSeaLevel
 
DtAltitudeClampType myAltitudeClampType
 
DtReferenceEllipsoid myReferenceEllipsoid
 
int myType
 
std::string myBuffer
 
DtGeodeticCoord myGeometricCenter
 
bool myIsLocal
 
DtUUID myUUID
 
bool myUpdated
 

Additional Inherited Members

- Public Types inherited from makVrf::DtCopyObject
enum  DtPasteFlags {
  DtPasteNewName = 0x00000001, DtPasteAppearance = 0x00000002, DtPasteHeading = 0x00000004, DtPasteEngagement = 0x00000008,
  DtPastePlan = 0x00000010, DtPasteAboveSeaLevel = 0x00000020, DtPasteAboveTerrain = 0x00000040, DtPasteFormation = 0x00000080,
  DtPasteStateProperties = 0x00000100, DtAllPasteFlags
}
 
- Public Attributes inherited from makVrf::DtCopyObject
boost::signals2::signal< void(DtCopyObject *)> signal_copyCancelled
 
boost::signals2::signal< void(DtCopyObject
*, const std::string &)> 
signal_copied
 
boost::signals2::signal< void(DtCopyObject
*, const std::string &)> 
signal_copyOperationPending
 
boost::signals2::signal< void(DtCopyObject *)> signal_pasted
 
boost::signals2::signal< void(DtCopyObject
*, const std::string &)> 
signal_pasteOperationPending
 
boost::signals2::signal< void(DtCopyObject *)> signal_pasteCancelled
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtAggregateCopyObject::DtAggregateCopyObject ( makVrv::DtDe )
virtual makVrf::DtAggregateCopyObject::~DtAggregateCopyObject ( )
overridevirtual

Member Function Documentation

virtual void makVrf::DtAggregateCopyObject::write ( std::ostringstream &  str,
DtSimObjectReference   
)
overrideprotectedvirtual

Copies aggregate specific information and starts hierarchy copy.

Reimplemented from makVrf::DtEntityCopyObject.

virtual void makVrf::DtAggregateCopyObject::readAdditionalData ( std::istringstream &  str)
overrideprotectedvirtual

Reads in data specific to this aggregate and all subordinates.

Reimplemented from makVrf::DtEntityCopyObject.

virtual void makVrf::DtAggregateCopyObject::copied ( DtCopyObject ,
const std::string &   
)
protectedvirtual

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

virtual void makVrf::DtAggregateCopyObject::copyOperationPending ( DtCopyObject ,
const std::string &   
)
protectedvirtual

Reemits copy operation pending signal.

virtual void makVrf::DtAggregateCopyObject::createObject ( const DtVector &  )
overrideprotectedvirtual

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 ( )
protectedvirtual

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

virtual bool makVrf::DtAggregateCopyObject::pasteComplete ( ) const
overrideprotectedvirtual

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

Reimplemented from makVrf::DtEntityCopyObject.

virtual std::string makVrf::DtAggregateCopyObject::pastePendingMessage ( ) const
overrideprotectedvirtual

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)
overrideprotectedvirtual

Called when reading of buffer for object is complete.

Reimplemented from makVrf::DtCopyObject.

virtual void makVrf::DtAggregateCopyObject::pasted ( DtCopyObject )
protectedvirtual

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

virtual void makVrf::DtAggregateCopyObject::pasteOperationPending ( DtCopyObject ,
const std::string &   
)
protectedvirtual

Called when a paste operation is pending, emits signal_pasteOperationPending.

virtual void makVrf::DtAggregateCopyObject::pasteCancelled ( DtCopyObject )
protectedvirtual

Called when a paste operation is cancelled. Will remove from objectsBeingPasted list, and, if list is empty, signals pasteComplete message.

virtual void makVrf::DtAggregateCopyObject::addStateData ( std::map< std::string, std::string > &  ,
const DtRwVariableBindings ,
const DtString var 
)
protectedvirtual

Adds state data that will be used to set when the aggregate is pased.

virtual void makVrf::DtAggregateCopyObject::paste ( const DtVector &  ,
int  flags 
)
overrideprotectedvirtual

Pastes object given the current information. If paste is not complete, will send out pasteOperationPending signal. The geocentric coordinate given the the center around which this item should be placed. This object will figure out the correct placement based on that center (in geocentric coordinates)

Reimplemented from makVrf::DtCopyObject.

virtual bool makVrf::DtAggregateCopyObject::copyOperationsPending ( ) const
overridevirtual

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.

virtual void makVrf::DtAggregateCopyObject::copyChildren ( const makVrv::DtElementIDHierarchy::ElementIDs )
protectedvirtual

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

virtual void makVrf::DtAggregateCopyObject::cancel ( )
overrideprotectedvirtual

Cancels pending operations. If awaiting plan, unregisters callback.

Reimplemented from makVrf::DtEntityCopyObject.

virtual std::string makVrf::DtAggregateCopyObject::copyPendingMessage ( ) const
overrideprotectedvirtual

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
overrideprotectedvirtual

Returns true if cancel is complete.

Reimplemented from makVrf::DtCopyObject.

virtual void makVrf::DtAggregateCopyObject::copy ( makVrv::DtUniqueID  )
overrideprotectedvirtual

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

Reimplemented from makVrf::DtCopyObject.

virtual void makVrf::DtAggregateCopyObject::copyComplete ( )
overrideprotectedvirtual

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

Reimplemented from makVrf::DtCopyObject.

virtual DtEntityCreationData makVrf::DtAggregateCopyObject::entityCreationData ( const DtVector &  )
overrideprotectedvirtual

Return entity creation data for this entity.

Reimplemented from makVrf::DtEntityCopyObject.

virtual void makVrf::DtAggregateCopyObject::processPasteStep ( )
overrideprotectedvirtual

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

Reimplemented from makVrf::DtEntityCopyObject.

Member Data Documentation

DtVrfAggregateCopyPasteHandler makVrf::DtAggregateCopyObject::myCopyPasteHandler
protected
makVrv::DtSignalConnectionManager makVrf::DtAggregateCopyObject::myCopyConnections
protected
makVrv::DtSignalConnectionManager makVrf::DtAggregateCopyObject::myPasteConnections
protected
int makVrf::DtAggregateCopyObject::myWaitingForChildren
protected
bool makVrf::DtAggregateCopyObject::myPasteComplete
protected
bool makVrf::DtAggregateCopyObject::myAwaitingSubordinateCreation
protected
DtVector makVrf::DtAggregateCopyObject::myAggregatePasteLocation
protected
std::vector<SubordinateState> makVrf::DtAggregateCopyObject::myPastedSubordinates
protected
AwaitingMap makVrf::DtAggregateCopyObject::myAwaitingOrganization
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)