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
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 (DtEntityType type, DtVector location, double heading, bool includeSubObjects=true)
 
virtual void computeTerrainCategoryMask (DtEntityType type)
 

Protected Attributes

DtSimulationServicesmySimulationServices
 
std::list< DtVector > myRequiredLocations
 
DtTerrainCategoryMask myTerrainCategoryMask
 

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 ( DtEntityType  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).

virtual void DtObjectOperationQueueEntry::computeTerrainCategoryMask ( DtEntityType  type)
protectedvirtual

Finds the movement terrain category mask for the specified entity type and sets it into myTerrainCategoryMask.

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

DtTerrainCategoryMask DtObjectOperationQueueEntry::myTerrainCategoryMask
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)