VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends
makVrv::DtOsgModelPreloader Class Reference

DtOsgModelPreloader is responsible for responding to model preload actions from an agent. More...

Inheritance diagram for makVrv::DtOsgModelPreloader:
Inheritance graph
[legend]

Public Member Functions

 DtOsgModelPreloader (DtDe &de, DtUniqueID id)
 CTOR. More...
 
virtual ~DtOsgModelPreloader ()
 DTOR. More...
 
virtual bool load (const std::string &modelDefName)
 Load the model for the given model definition. More...
 
virtual void addToIcoList (osgUtil::StateToCompile *state)
 adds a StateToCompile object to the list of models that need to be sent to the gpu More...
 
virtual std::list
< osgUtil::StateToCompile * > & 
toIcoList ()
 gets list of models that need to be sent to the gpu More...
 
virtual void finishPreloading (osgViewer::CompositeViewer &viewer)
 called by the renderer, waits for async tasks to finish and then ico's them More...
 
- Public Member Functions inherited from makVrv::DtModelPreloader
 DtModelPreloader (DtDe &de, DtUniqueID id)
 CTOR. More...
 
virtual ~DtModelPreloader ()
 DTOR. More...
 

Static Public Member Functions

static DtOsgModelPreloaderpreloader ()
 returns a static pointer to the unique preloader. More...
 

Protected Member Functions

virtual void markTaskFinished (DtModelDefinition &def)
 decrements atomic myNumberOfActiveTasks More...
 

Protected Attributes

tbb::atomic< intmyNumberOfActiveTasks
 
tbb::mutex myListMutex
 
tbb::mutex myStdOutMutex
 
std::list
< osgUtil::StateToCompile * > 
myToIcoList
 
- Protected Attributes inherited from makVrv::DtModelPreloader
DtDemyDe
 

Static Protected Attributes

static DtOsgModelPreloaderthePreloader
 
static int myFramesTillICOCount
 
static int myNumFramesTillICO
 

Friends

class DtPreloadAsyncTask
 

Detailed Description

DtOsgModelPreloader is responsible for responding to model preload actions from an agent.

Constructor & Destructor Documentation

makVrv::DtOsgModelPreloader::DtOsgModelPreloader ( DtDe de,
DtUniqueID  id 
)

CTOR.

virtual makVrv::DtOsgModelPreloader::~DtOsgModelPreloader ( )
virtual

DTOR.

Member Function Documentation

virtual bool makVrv::DtOsgModelPreloader::load ( const std::string &  modelDefName)
virtual

Load the model for the given model definition.

Implements makVrv::DtModelPreloader.

virtual void makVrv::DtOsgModelPreloader::addToIcoList ( osgUtil::StateToCompile *  state)
virtual

adds a StateToCompile object to the list of models that need to be sent to the gpu

virtual std::list<osgUtil::StateToCompile* >& makVrv::DtOsgModelPreloader::toIcoList ( )
virtual

gets list of models that need to be sent to the gpu

virtual void makVrv::DtOsgModelPreloader::finishPreloading ( osgViewer::CompositeViewer &  viewer)
virtual

called by the renderer, waits for async tasks to finish and then ico's them

static DtOsgModelPreloader* makVrv::DtOsgModelPreloader::preloader ( )
static

returns a static pointer to the unique preloader.

virtual void makVrv::DtOsgModelPreloader::markTaskFinished ( DtModelDefinition def)
protectedvirtual

decrements atomic myNumberOfActiveTasks

Friends And Related Function Documentation

friend class DtPreloadAsyncTask
friend

Member Data Documentation

tbb::atomic<int> makVrv::DtOsgModelPreloader::myNumberOfActiveTasks
protected
tbb::mutex makVrv::DtOsgModelPreloader::myListMutex
protected
tbb::mutex makVrv::DtOsgModelPreloader::myStdOutMutex
protected
std::list<osgUtil::StateToCompile*> makVrv::DtOsgModelPreloader::myToIcoList
protected
DtOsgModelPreloader* makVrv::DtOsgModelPreloader::thePreloader
staticprotected
int makVrv::DtOsgModelPreloader::myFramesTillICOCount
staticprotected
int makVrv::DtOsgModelPreloader::myNumFramesTillICO
staticprotected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)