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

This class manages a set of DtTerrainImplementation subclasses by maintaining a factory for creating them, and my managing their registration by opening the libraries. More...

List of all members.

Public Member Functions

 DtTerrainImplementationManager ()
virtual ~DtTerrainImplementationManager ()
virtual void init (DtTerrainInterface *terrainIf, DtConsoleCommandManager *cmdMgr)
virtual void addTerrainImplementation (const DtString &implementationName, DtTerrainImplementationCreatorFcn creatorFcn)
virtual void addTerrainPassThroughLayer (const DtString &passThoughName, DtTerrainPassThroughLayerCreatorFcn creatorFcn)
virtual void loadImplementationLibraries (DtTerrainInterface *terrainIf)
 Looks for terrain implementation libraries on the disk and loads them in.
virtual bool loadImplementationLibrary (const DtFilename &filename, DtTerrainInterface *terrainIf)
 Loads the specified shared library and adds it to the list of loaded dynamic libraries.
virtual DtTerrainImplementationaddPassThroughLayer (DtTerrainImplementation *impl, const DtString &layerType) const
 Creates a DtTerrainPassThroughLayer of the type specified, and wraps impl inside of it.
virtual std::list< DtStringavailablePassThroughLayers () const
virtual DtTerrainImplementationcreateTerrainImplementation (const DtString &implType)
 Creates the terrain implementation based on the implType specified.

Protected Attributes

DtTerrainImplementationFactory myTerrainImplFactory
std::list< DtDynamicLibrary * > myImplementationLibList
DtTerrainPassThroughLayerFactory myTerrainPassThroughFactory
DtConsoleCommandManagermyCommandManager

Private Member Functions

 DtTerrainImplementationManager (const DtTerrainImplementationManager &orig)
 Not Implemented.
DtTerrainImplementationManageroperator= (const DtTerrainImplementationManager &orig)
 Not Implemented.

Detailed Description

This class manages a set of DtTerrainImplementation subclasses by maintaining a factory for creating them, and my managing their registration by opening the libraries.


Constructor & Destructor Documentation

Not Implemented.


Member Function Documentation

DtTerrainImplementationManager& DtTerrainImplementationManager::operator= ( const DtTerrainImplementationManager orig) [private]

Not Implemented.

virtual void DtTerrainImplementationManager::init ( DtTerrainInterface terrainIf,
DtConsoleCommandManager cmdMgr 
) [virtual]
virtual void DtTerrainImplementationManager::addTerrainImplementation ( const DtString implementationName,
DtTerrainImplementationCreatorFcn  creatorFcn 
) [virtual]
virtual void DtTerrainImplementationManager::addTerrainPassThroughLayer ( const DtString passThoughName,
DtTerrainPassThroughLayerCreatorFcn  creatorFcn 
) [virtual]

Looks for terrain implementation libraries on the disk and loads them in.

virtual bool DtTerrainImplementationManager::loadImplementationLibrary ( const DtFilename &  filename,
DtTerrainInterface terrainIf 
) [virtual]

Loads the specified shared library and adds it to the list of loaded dynamic libraries.

Creates a DtTerrainPassThroughLayer of the type specified, and wraps impl inside of it.

Returns the new layer. If the layer cannot be created, then impl is returned.

Returns:
A list of the available terrain pass through types that can be created.

Creates the terrain implementation based on the implType specified.


Member Data Documentation

std::list<DtDynamicLibrary*> DtTerrainImplementationManager::myImplementationLibList [protected]

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)