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  bool disableListener=false);
36  virtual ~ActorAnimation();
37 
38  virtual void itemAdded(const MWWorld::ConstPtr& item, int count);
39  virtual void itemRemoved(const MWWorld::ConstPtr& item, int count);
40 
41  private:
42  void addHiddenItemLight(const MWWorld::ConstPtr& item, const ESM::Light* esmLight);
43  void removeHiddenItemLight(const MWWorld::ConstPtr& item);
44 
45  typedef std::map<MWWorld::ConstPtr, osg::ref_ptr<SceneUtil::LightSource> > ItemLightMap;
47 
49 };
50 
51 }
52 
53 #endif
Wrapper class that constructs and provides access to the most commonly used resource subsystems...
Definition: resourcesystem.hpp:24
Definition: animation.hpp:77
bool mListenerDisabled
Definition: actoranimation.hpp:48
virtual void itemAdded(const MWWorld::ConstPtr &item, int count)
Definition: actoranimation.cpp:60
void removeHiddenItemLight(const MWWorld::ConstPtr &item)
Definition: actoranimation.cpp:114
void addHiddenItemLight(const MWWorld::ConstPtr &item, const ESM::Light *esmLight)
Definition: actoranimation.cpp:87
ActorAnimation(const MWWorld::Ptr &ptr, osg::ref_ptr< osg::Group > parentNode, Resource::ResourceSystem *resourceSystem, bool disableListener=false)
Definition: actoranimation.cpp:29
std::map< MWWorld::ConstPtr, osg::ref_ptr< SceneUtil::LightSource > > ItemLightMap
Definition: actoranimation.hpp:45
Definition: containerstore.hpp:34
Definition: actoranimation.hpp:31
virtual ~ActorAnimation()
Definition: actoranimation.cpp:49
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
virtual void itemRemoved(const MWWorld::ConstPtr &item, int count)
Definition: actoranimation.cpp:72
ItemLightMap mItemLights
Definition: actoranimation.hpp:46
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
Definition: loadligh.hpp:17