OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Types | Private Attributes | List of all members
MWWorld::PreloadItem Class Reference

Worker thread item: preload models in a cell. More...

Inheritance diagram for MWWorld::PreloadItem:
Collaboration diagram for MWWorld::PreloadItem:

Public Member Functions

 PreloadItem (MWWorld::CellStore *cell, Resource::SceneManager *sceneManager, Resource::BulletShapeManager *bulletShapeManager, Resource::KeyframeManager *keyframeManager, Terrain::World *terrain, bool preloadInstances)
 Constructor to be called from the main thread. More...
 
virtual void doWork ()
 Preload work to be called from the worker thread. More...
 
- Public Member Functions inherited from SceneUtil::WorkItem
 WorkItem ()
 
virtual ~WorkItem ()
 
bool isDone () const
 
void waitTillDone ()
 Wait until the work is completed. Usually called from the main thread. More...
 
void signalDone ()
 Internal use by the WorkQueue. More...
 

Private Types

typedef std::vector< std::string > MeshList
 

Private Attributes

bool mIsExterior
 
int mX
 
int mY
 
MeshList mMeshes
 
Resource::SceneManagermSceneManager
 
Resource::BulletShapeManagermBulletShapeManager
 
Resource::KeyframeManagermKeyframeManager
 
Terrain::WorldmTerrain
 
bool mPreloadInstances
 
std::vector< osg::ref_ptr
< const osg::Object > > 
mPreloadedObjects
 

Additional Inherited Members

- Protected Attributes inherited from SceneUtil::WorkItem
OpenThreads::Atomic mDone
 
OpenThreads::Mutex mMutex
 
OpenThreads::Condition mCondition
 

Detailed Description

Worker thread item: preload models in a cell.

Member Typedef Documentation

typedef std::vector<std::string> MWWorld::PreloadItem::MeshList
private

Constructor & Destructor Documentation

MWWorld::PreloadItem::PreloadItem ( MWWorld::CellStore cell,
Resource::SceneManager sceneManager,
Resource::BulletShapeManager bulletShapeManager,
Resource::KeyframeManager keyframeManager,
Terrain::World terrain,
bool  preloadInstances 
)
inline

Constructor to be called from the main thread.

Here is the call graph for this function:

Member Function Documentation

virtual void MWWorld::PreloadItem::doWork ( )
inlinevirtual

Preload work to be called from the worker thread.

Reimplemented from SceneUtil::WorkItem.

Here is the call graph for this function:

Member Data Documentation

Resource::BulletShapeManager* MWWorld::PreloadItem::mBulletShapeManager
private
bool MWWorld::PreloadItem::mIsExterior
private
Resource::KeyframeManager* MWWorld::PreloadItem::mKeyframeManager
private
MeshList MWWorld::PreloadItem::mMeshes
private
std::vector<osg::ref_ptr<const osg::Object> > MWWorld::PreloadItem::mPreloadedObjects
private
bool MWWorld::PreloadItem::mPreloadInstances
private
Resource::SceneManager* MWWorld::PreloadItem::mSceneManager
private
Terrain::World* MWWorld::PreloadItem::mTerrain
private
int MWWorld::PreloadItem::mX
private
int MWWorld::PreloadItem::mY
private

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