VR-Forces 5.0.2 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 Attributes
DtLocalizedManagedObjectList Class Reference

Filters the contents of a DtManagedObjectList using a spatial organization to generate a list of only the objects potentially in the specified region. After creating the DtLocalizedManagedObectList, call localize() with the extent of interest.

Note
This list does not automatically update to any new contents of the DtManagedObjectList passed in. localize() must be called each tick to refresh the list.

Public Member Functions

 DtLocalizedManagedObjectList (DtManagedObjectListConstPtr objectList, DtPhysicalWorld *physicalWorld)
 
void localize (const DtExtent &extent)
 
DtManagedObjectList::iterator begin ()
 
DtManagedObjectList::const_iterator begin () const
 
DtManagedObjectList::iterator end ()
 
DtManagedObjectList::const_iterator end () const
 
size_t size () const
 

Protected Attributes

DtManagedObjectListConstPtr mySourceList
 
DtPhysicalWorldmyPhysicalWorld
 
std::set< DtSimObjectReferencemyLocalizedList
 

Private Member Functions

 DtLocalizedManagedObjectList ()
 
DtLocalizedManagedObjectListoperator= (DtLocalizedManagedObjectList &orig)
 

Constructor & Destructor Documentation

DtLocalizedManagedObjectList::DtLocalizedManagedObjectList ( )
private

Not implemented.

DtLocalizedManagedObjectList::DtLocalizedManagedObjectList ( DtManagedObjectListConstPtr  objectList,
DtPhysicalWorld physicalWorld 
)

Pass source object list and the DtPhysicalWorld instance to create a list.

Member Function Documentation

DtLocalizedManagedObjectList& DtLocalizedManagedObjectList::operator= ( DtLocalizedManagedObjectList orig)
private

Not implemented.

void DtLocalizedManagedObjectList::localize ( const DtExtent extent)

Call with the extent of interest to populate this list with the subset of DtManagedObjectList that is within the extent. The extent should be set in world local coordinates.

DtManagedObjectList::iterator DtLocalizedManagedObjectList::begin ( )

Access to the contents of the localized list.

DtManagedObjectList::const_iterator DtLocalizedManagedObjectList::begin ( ) const

Access to the contents of the localized list.

DtManagedObjectList::iterator DtLocalizedManagedObjectList::end ( )

Access to the contents of the localized list.

DtManagedObjectList::const_iterator DtLocalizedManagedObjectList::end ( ) const

Access to the contents of the localized list.

size_t DtLocalizedManagedObjectList::size ( ) const

Access to the contents of the localized list.

Member Data Documentation

DtManagedObjectListConstPtr DtLocalizedManagedObjectList::mySourceList
protected
DtPhysicalWorld* DtLocalizedManagedObjectList::myPhysicalWorld
protected
std::set<DtSimObjectReference> DtLocalizedManagedObjectList::myLocalizedList
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)