VR-Forces 4.7 Class Documentation
 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
DtObjectOperationQueueEntry Class Reference
Inheritance diagram for DtObjectOperationQueueEntry:
Inheritance graph
[legend]

Public Member Functions

 DtObjectOperationQueueEntry (DtVrfObjectManager *objectManager)
 constructor
 DtObjectOperationQueueEntry (const DtObjectOperationQueueEntry &orig)
 copy constructor
virtual ~DtObjectOperationQueueEntry ()
 destructor
virtual bool isReadyForExecution ()
 Checks to see if all the required locations have been paged in.

Protected Member Functions

virtual void precomputeObjectLocations (DtObjectType type, DtVector location, double heading, bool includeSubObjects=true)
 Recursively determines the locations of all entities for a given object type and location (including aggregates and subaggregates).

Protected Attributes

DtVrfObjectManagermyVrfObjectManager
 Cached pointer to DtVrfObjectManager, as passed into the constructor.
std::list< DtVectormyRequiredLocations
 Required creation locations in local coordinates, populated by precomputeObjectLocations().

Private Member Functions

const DtObjectOperationQueueEntryoperator= (const DtObjectOperationQueueEntry &orig)
 assignment operator, not implemented

Constructor & Destructor Documentation

DtObjectOperationQueueEntry::DtObjectOperationQueueEntry ( DtVrfObjectManager objectManager)

constructor

DtObjectOperationQueueEntry::DtObjectOperationQueueEntry ( const DtObjectOperationQueueEntry orig)

copy constructor

virtual DtObjectOperationQueueEntry::~DtObjectOperationQueueEntry ( )
virtual

destructor

Member Function Documentation

virtual bool DtObjectOperationQueueEntry::isReadyForExecution ( )
virtual

Checks to see if all the required locations have been paged in.

Iterates over myRequiredLocations and makes a non-blocking terrain intersection test to see if the data is available and if so removes that vector from the list.

Returns
true if myRequiredLocations.empty()

Reimplemented in DtCreateQueueEntry.

virtual void DtObjectOperationQueueEntry::precomputeObjectLocations ( DtObjectType  type,
DtVector  location,
double  heading,
bool  includeSubObjects = true 
)
protectedvirtual

Recursively determines the locations of all entities for a given object type and location (including aggregates and subaggregates).

Stores all the locations in myRequiredLocations. Local coordinates are used to prevent polling calls to isReadyForCreation from having to constantly convert from geocentric. This function is called by the constructor with the type, location and heading from the DtIfCreateVrfObject. The includeSubObjects parameter will prevent a sub objects (i.e. an aggregate subordinates) locations from being added (for use when creating an aggregate in the DtAggregated state).

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

assignment operator, not implemented

Member Data Documentation

DtVrfObjectManager* DtObjectOperationQueueEntry::myVrfObjectManager
protected

Cached pointer to DtVrfObjectManager, as passed into the constructor.

std::list<DtVector> DtObjectOperationQueueEntry::myRequiredLocations
protected

Required creation locations in local coordinates, populated by precomputeObjectLocations().


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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)