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

Public Member Functions

 DtObjectOperationQueueEntry (DtSimulationServices *objectManager)
 
 DtObjectOperationQueueEntry (const DtObjectOperationQueueEntry &orig)
 
virtual ~DtObjectOperationQueueEntry ()
 
virtual bool isReadyForExecution ()
 

Protected Member Functions

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

Protected Attributes

DtSimulationServicesmySimulationServices
 
std::list< DtVectormyRequiredLocations
 

Private Member Functions

const DtObjectOperationQueueEntryoperator= (const DtObjectOperationQueueEntry &orig)
 

Constructor & Destructor Documentation

DtObjectOperationQueueEntry::DtObjectOperationQueueEntry ( DtSimulationServices 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

DtSimulationServices* DtObjectOperationQueueEntry::mySimulationServices
protected
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)