VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtObjectGeometricModelsManager Class Reference

Manages loading and destruction of object models. More...

List of all members.

Public Member Functions

 DtObjectGeometricModelsManager (const DtVrfObjectManager *)
 default constructor
virtual ~DtObjectGeometricModelsManager ()
 destructor
virtual
DtObjectGeometricModelEntry
objectModelEntry (const DtString &parent)
 Given the parent name, looks up the parent in the object manager.
virtual
DtObjectGeometricModelEntry
objectModelEntry (const DtObjectType &type)
virtual
DtObjectGeometricModelEntry
objectModelEntry (const DtVrfObjectParameters *)
 If object model for entry does not exist, returns new object model for that type and adds it to the internal list.
virtual
DtObjectGeometricModelEntry
lookupModelEntry (const DtObjectType &) const
 Looks up and returns a model for a given type.
virtual
DtObjectGeometricModelEntry
addModelEntry (const DtVrfObjectParameters *)
 Adds a new model.
virtual void remove (const DtObjectType &objectType)
 Remove the entry for the given object type from the database.
virtual void removeAll ()
 Remove all entries in the parameter database.
virtual
DtObjectGeometricModelEntry
createObjectModelEntry (const DtVrfObjectParameters *) const
 Creates a new object model (and loads the terrain or creates a new terrain database) and returns it.
virtual void init ()

Protected Types

typedef std::list
< DtObjectGeometricModelEntry * > 
DtObjectModelContainer
typedef
DtObjectModelContainer::iterator 
DtObjectModelIter
typedef
DtObjectModelContainer::const_iterator 
DtObjectModelConstIter

Protected Member Functions

virtual DtObjectGeometricModelcreateObjectModel (DtFilename &path, const DtString &s) const
virtual DtObjectGeometricModelcreateObjectModel (const Dt3dBoundingVolume &s) const

Protected Attributes

DtObjectModelContainer myObjectModels
const DtVrfObjectManagermyObjectManager

Detailed Description

Manages loading and destruction of object models.

Will reference the object parameter database to load up parameter entries to find their object model. If an entry does not have an object model associated with it, then an alternate representation object model will be constructed out of the entity's extent.


Member Typedef Documentation

typedef DtObjectModelContainer::iterator DtObjectGeometricModelsManager::DtObjectModelIter [protected]
typedef DtObjectModelContainer::const_iterator DtObjectGeometricModelsManager::DtObjectModelConstIter [protected]

Constructor & Destructor Documentation

default constructor

destructor


Member Function Documentation

Given the parent name, looks up the parent in the object manager.

If model exists for that object type, returns the object model for that. If not, adds the new object model to the list and returns the new entry

If object model for entry does not exist, returns new object model for that type and adds it to the internal list.

Looks up and returns a model for a given type.

Adds a new model.

virtual void DtObjectGeometricModelsManager::remove ( const DtObjectType objectType) [virtual]

Remove the entry for the given object type from the database.

Deletes the memory associated with the entry.

virtual void DtObjectGeometricModelsManager::removeAll ( ) [virtual]

Remove all entries in the parameter database.

Deletes memory associated with entries in the database.

Creates a new object model (and loads the terrain or creates a new terrain database) and returns it.

Also sets the object model should delete the terrain database on deletion

virtual void DtObjectGeometricModelsManager::init ( ) [virtual]
virtual DtObjectGeometricModel* DtObjectGeometricModelsManager::createObjectModel ( DtFilename &  path,
const DtString s 
) const [protected, virtual]
virtual DtObjectGeometricModel* DtObjectGeometricModelsManager::createObjectModel ( const Dt3dBoundingVolume &  s) const [protected, virtual]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)