VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtCreateQueueEntry Class Reference

class DtCreateQueueEntry:

This class is used by DtSimObjectManager to queue creation requests which cannot be immediately processed due to terrain which has not yet been paged in. Given a DtIfCreateVrfObject message, this class can precompute and track all the required locations and can be used by the object manager to poll for those locations until they're ready.

Inheritance diagram for DtCreateQueueEntry:
Inheritance graph
[legend]

Public Member Functions

 DtCreateQueueEntry (const DtVrfLocalObjectCreateInformation &createMessage, DtSimulationServices *objectManager)
 
 DtCreateQueueEntry (const DtCreateQueueEntry &orig)
 
virtual ~DtCreateQueueEntry () override
 
virtual const
DtVrfLocalObjectCreateInformation & 
createMessage () const
 
virtual bool isReadyForExecution () override
 
unsigned int createID () const
 
- Public Member Functions inherited from DtObjectOperationQueueEntry
 DtObjectOperationQueueEntry (DtSimulationServices *objectManager)
 
 DtObjectOperationQueueEntry (const DtObjectOperationQueueEntry &orig)
 
virtual ~DtObjectOperationQueueEntry ()
 

Protected Member Functions

virtual void modifyClampedPositions ()
 
virtual void modifyClampedPosition (DtVector &vector)
 
- Protected Member Functions inherited from DtObjectOperationQueueEntry
virtual void precomputeObjectLocations (DtEntityType type, DtVector location, double heading, bool includeSubObjects=true)
 
virtual void computeTerrainCategoryMask (DtEntityType type)
 

Protected Attributes

DtVrfLocalObjectCreateInformation myCreateMessage
 
unsigned int myCreateID
 
int myFluxIndex = -1
 
- Protected Attributes inherited from DtObjectOperationQueueEntry
DtSimulationServices * mySimulationServices
 
std::list< DtVector > myRequiredLocations
 
DtTerrainCategoryMask myTerrainCategoryMask
 

Private Member Functions

const DtCreateQueueEntry & operator= (const DtCreateQueueEntry &orig)
 

Constructor & Destructor Documentation

DtCreateQueueEntry::DtCreateQueueEntry ( const DtVrfLocalObjectCreateInformation &  createMessage,
DtSimulationServices *  objectManager 
)

constructor Call precomputeObjectLocations (from the base class) with the parameters from the message.

DtCreateQueueEntry::DtCreateQueueEntry ( const DtCreateQueueEntry &  orig)

copy constructor

virtual DtCreateQueueEntry::~DtCreateQueueEntry ( )
overridevirtual

destructor

Member Function Documentation

virtual const DtVrfLocalObjectCreateInformation& DtCreateQueueEntry::createMessage ( ) const
virtual

Returns myCreateMessage.

virtual bool DtCreateQueueEntry::isReadyForExecution ( )
overridevirtual

Return true if this is a type that does not need a location defined to be considered created. This currently includes global weather and force level items.

Reimplemented from DtObjectOperationQueueEntry.

unsigned int DtCreateQueueEntry::createID ( ) const
inline

Returns the ID of this entry.

virtual void DtCreateQueueEntry::modifyClampedPositions ( )
protectedvirtual

Will modify the positions in the create message based on the clamp flag and the height above terrain to clamp to. Will then set the clamp flag to false to prevent the base code from trying to clamp to the terrain again. This is called after everything is paged in so we should be good to go.

virtual void DtCreateQueueEntry::modifyClampedPosition ( DtVector &  vector)
protectedvirtual

The position that comes in is geocentric and must be set as geocentric when modified.

const DtCreateQueueEntry& DtCreateQueueEntry::operator= ( const DtCreateQueueEntry &  orig)
private

assignment operator, not implemented

Member Data Documentation

DtVrfLocalObjectCreateInformation DtCreateQueueEntry::myCreateMessage
protected

The create message, as passed into the constructor.

unsigned int DtCreateQueueEntry::myCreateID
protected

Assigned to an increasing global. This ID can be used to identify a create entry.

int DtCreateQueueEntry::myFluxIndex = -1
protected

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)