OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
actoranimation.hpp
Go to the documentation of this file.
1 #ifndef GAME_RENDER_ACTORANIMATION_H
2 #define GAME_RENDER_ACTORANIMATION_H
3 
4 #include <map>
5 
6 #include <osg/ref_ptr>
7 
8 #include "../mwworld/containerstore.hpp"
9 
10 #include "animation.hpp"
11 
12 namespace osg
13 {
14  class Node;
15 }
16 
17 namespace MWWorld
18 {
19  class ConstPtr;
20 }
21 
22 namespace SceneUtil
23 {
24  class LightSource;
25  class LightListCallback;
26 }
27 
28 namespace MWRender
29 {
30 
32 {
33  public:
34  ActorAnimation(const MWWorld::Ptr &ptr, osg::ref_ptr<osg::Group> parentNode, Resource::ResourceSystem* resourceSystem);
35  virtual ~ActorAnimation();
36 
37  virtual void itemAdded(const MWWorld::ConstPtr& item, int count);
38  virtual void itemRemoved(const MWWorld::ConstPtr& item, int count);
39 
40  private:
41  void addHiddenItemLight(const MWWorld::ConstPtr& item, const ESM::Light* esmLight);
42  void removeHiddenItemLight(const MWWorld::ConstPtr& item);
43 
44  typedef std::map<MWWorld::ConstPtr, osg::ref_ptr<SceneUtil::LightSource> > ItemLightMap;
46 };
47 
48 }
49 
50 #endif
Wrapper class that constructs and provides access to the most commonly used resource subsystems...
Definition: resourcesystem.hpp:30
Definition: animation.hpp:85
virtual void itemAdded(const MWWorld::ConstPtr &item, int count)
Definition: actoranimation.cpp:53
void removeHiddenItemLight(const MWWorld::ConstPtr &item)
Definition: actoranimation.cpp:107
void addHiddenItemLight(const MWWorld::ConstPtr &item, const ESM::Light *esmLight)
Definition: actoranimation.cpp:80
std::map< MWWorld::ConstPtr, osg::ref_ptr< SceneUtil::LightSource > > ItemLightMap
Definition: actoranimation.hpp:44
Definition: containerstore.hpp:41
Definition: actoranimation.hpp:31
virtual ~ActorAnimation()
Definition: actoranimation.cpp:45
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
virtual void itemRemoved(const MWWorld::ConstPtr &item, int count)
Definition: actoranimation.cpp:65
ActorAnimation(const MWWorld::Ptr &ptr, osg::ref_ptr< osg::Group > parentNode, Resource::ResourceSystem *resourceSystem)
Definition: actoranimation.cpp:29
ItemLightMap mItemLights
Definition: actoranimation.hpp:45
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
Definition: loadligh.hpp:17