OpenMW
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
MWRender::Objects Class Reference

#include <objects.hpp>

List of all members.

Public Member Functions

 Objects (OEngine::Render::OgreRenderer &renderer)
 ~Objects ()
void insertModel (const MWWorld::Ptr &ptr, const std::string &model)
ObjectAnimationgetAnimation (const MWWorld::Ptr &ptr)
void enableLights ()
void disableLights ()
void update (float dt, Ogre::Camera *camera)
 per-frame update
Ogre::AxisAlignedBox getDimensions (MWWorld::CellStore *)
 get a bounding box that encloses all objects in the specified cell
bool deleteObject (const MWWorld::Ptr &ptr)
void removeCell (MWWorld::CellStore *store)
void buildStaticGeometry (MWWorld::CellStore &cell)
void setRootNode (Ogre::SceneNode *root)
void rebuildStaticGeometry ()
void updateObjectCell (const MWWorld::Ptr &old, const MWWorld::Ptr &cur)
 Updates containing cell for object rendering data.

Private Types

typedef std::map< MWWorld::Ptr,
ObjectAnimation * > 
PtrAnimationMap

Private Member Functions

void insertBegin (const MWWorld::Ptr &ptr)

Private Attributes

OEngine::Render::OgreRenderermRenderer
std::map< MWWorld::CellStore
*, Ogre::SceneNode * > 
mCellSceneNodes
std::map< MWWorld::CellStore
*, Ogre::StaticGeometry * > 
mStaticGeometry
std::map< MWWorld::CellStore
*, Ogre::StaticGeometry * > 
mStaticGeometrySmall
std::map< MWWorld::CellStore
*, Ogre::AxisAlignedBox > 
mBounds
PtrAnimationMap mObjects
Ogre::SceneNode * mRootNode

Static Private Attributes

static int uniqueID = 0

Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

bool Objects::deleteObject ( const MWWorld::Ptr ptr)
Returns:
found?
Ogre::AxisAlignedBox Objects::getDimensions ( MWWorld::CellStore cell)

get a bounding box that encloses all objects in the specified cell

void Objects::insertBegin ( const MWWorld::Ptr ptr) [private]
void Objects::insertModel ( const MWWorld::Ptr ptr,
const std::string &  model 
)
void Objects::setRootNode ( Ogre::SceneNode *  root)
void Objects::update ( float  dt,
Ogre::Camera *  camera 
)

per-frame update

void Objects::updateObjectCell ( const MWWorld::Ptr old,
const MWWorld::Ptr cur 
)

Updates containing cell for object rendering data.


Member Data Documentation

std::map<MWWorld::CellStore*,Ogre::AxisAlignedBox> MWRender::Objects::mBounds [private]
std::map<MWWorld::CellStore*,Ogre::SceneNode*> MWRender::Objects::mCellSceneNodes [private]
Ogre::SceneNode* MWRender::Objects::mRootNode [private]
std::map<MWWorld::CellStore*,Ogre::StaticGeometry*> MWRender::Objects::mStaticGeometry [private]
std::map<MWWorld::CellStore*,Ogre::StaticGeometry*> MWRender::Objects::mStaticGeometrySmall [private]
int Objects::uniqueID = 0 [static, private]

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