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

#include <objects.hpp>

Collaboration diagram for MWRender::Objects:

Public Member Functions

 Objects (Resource::ResourceSystem *resourceSystem, osg::ref_ptr< osg::Group > rootNode, SceneUtil::UnrefQueue *unrefQueue)
 
 ~Objects ()
 
void insertModel (const MWWorld::Ptr &ptr, const std::string &model, bool animated=false, bool allowLight=true)
 
void insertNPC (const MWWorld::Ptr &ptr)
 
void insertCreature (const MWWorld::Ptr &ptr, const std::string &model, bool weaponsShields)
 
AnimationgetAnimation (const MWWorld::Ptr &ptr)
 
const AnimationgetAnimation (const MWWorld::ConstPtr &ptr) const
 
bool removeObject (const MWWorld::Ptr &ptr)
 
void removeCell (const MWWorld::CellStore *store)
 
void updatePtr (const MWWorld::Ptr &old, const MWWorld::Ptr &cur)
 Updates containing cell for object rendering data. More...
 

Private Types

typedef std::map
< MWWorld::ConstPtr, Animation * > 
PtrAnimationMap
 
typedef std::map< const
MWWorld::CellStore
*, osg::ref_ptr< osg::Group > > 
CellMap
 

Private Member Functions

void insertBegin (const MWWorld::Ptr &ptr)
 
void operator= (const Objects &)
 
 Objects (const Objects &)
 

Private Attributes

CellMap mCellSceneNodes
 
PtrAnimationMap mObjects
 
osg::ref_ptr< osg::Group > mRootNode
 
Resource::ResourceSystemmResourceSystem
 
osg::ref_ptr
< SceneUtil::UnrefQueue
mUnrefQueue
 

Member Typedef Documentation

typedef std::map<const MWWorld::CellStore*, osg::ref_ptr<osg::Group> > MWRender::Objects::CellMap
private

Constructor & Destructor Documentation

MWRender::Objects::Objects ( Resource::ResourceSystem resourceSystem,
osg::ref_ptr< osg::Group >  rootNode,
SceneUtil::UnrefQueue unrefQueue 
)
MWRender::Objects::~Objects ( )
MWRender::Objects::Objects ( const Objects )
private

Member Function Documentation

Animation * MWRender::Objects::getAnimation ( const MWWorld::Ptr ptr)
const Animation * MWRender::Objects::getAnimation ( const MWWorld::ConstPtr ptr) const
void MWRender::Objects::insertBegin ( const MWWorld::Ptr ptr)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWRender::Objects::insertCreature ( const MWWorld::Ptr ptr,
const std::string &  model,
bool  weaponsShields 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWRender::Objects::insertModel ( const MWWorld::Ptr ptr,
const std::string &  model,
bool  animated = false,
bool  allowLight = true 
)
Parameters
animatedAttempt to load separate keyframes from a .kf file matching the model file?
allowLightIf false, no lights will be created, and particles systems will be removed.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWRender::Objects::insertNPC ( const MWWorld::Ptr ptr)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWRender::Objects::operator= ( const Objects )
private
void MWRender::Objects::removeCell ( const MWWorld::CellStore store)
bool MWRender::Objects::removeObject ( const MWWorld::Ptr ptr)
Returns
found?

Here is the call graph for this function:

void MWRender::Objects::updatePtr ( const MWWorld::Ptr old,
const MWWorld::Ptr cur 
)

Updates containing cell for object rendering data.

Here is the call graph for this function:

Member Data Documentation

CellMap MWRender::Objects::mCellSceneNodes
private
PtrAnimationMap MWRender::Objects::mObjects
private
Resource::ResourceSystem* MWRender::Objects::mResourceSystem
private
osg::ref_ptr<osg::Group> MWRender::Objects::mRootNode
private
osg::ref_ptr<SceneUtil::UnrefQueue> MWRender::Objects::mUnrefQueue
private

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