Irrlicht 3D Engine
ISceneNodeAnimator.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_SCENE_NODE_ANIMATOR_H_INCLUDED__
6 #define __I_SCENE_NODE_ANIMATOR_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 #include "vector3d.h"
12 #include "IEventReceiver.h"
13 
14 namespace irr
15 {
16 namespace io
17 {
18  class IAttributes;
19 } // end namespace io
20 namespace scene
21 {
22  class ISceneNode;
23  class ISceneManager;
24 
26 
31  {
32  public:
34 
36  virtual void animateNode(ISceneNode* node, u32 timeMs) =0;
37 
39 
41  virtual ISceneNodeAnimator* createClone(ISceneNode* node,
42  ISceneManager* newManager=0) =0;
43 
45 
47  virtual bool isEventReceiverEnabled() const
48  {
49  return false;
50  }
51 
53  virtual bool OnEvent(const SEvent& event)
54  {
55  return false;
56  }
57 
60  {
61  return ESNAT_UNKNOWN;
62  }
63 
65 
67  virtual bool hasFinished(void) const
68  {
69  return false;
70  }
71  };
72 
73 
74 } // end namespace scene
75 } // end namespace irr
76 
77 #endif
78 
An object which is able to serialize and deserialize its attributes into an attributes object...
SEvents hold information about an event. See irr::IEventReceiver for details on event handling...
virtual bool hasFinished(void) const
Returns if the animator has finished.
Scene node interface.
Definition: ISceneNode.h:40
Unknown scene node animator.
Animates a scene node. Can animate position, rotation, material, and so on.
virtual bool OnEvent(const SEvent &event)
Event receiver, override this function for camera controlling animators.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
ESCENE_NODE_ANIMATOR_TYPE
An enumeration for all types of built-in scene node animators.
Interface of an object which can receive events.
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:58
virtual bool isEventReceiverEnabled() const
Returns true if this animator receives events.
The Scene Manager manages scene nodes, mesh recources, cameras and all the other stuff.
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const
Returns type of the scene node animator.