Irrlicht 3D Engine
Loading...
Searching...
No Matches
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
14namespace irr
15{
16namespace io
17{
18 class IAttributes;
19} // end namespace io
20namespace 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
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
Interface of an object which can receive events.
An object which is able to serialize and deserialize its attributes into an attributes object.
Provides a generic interface for attributes and their values and the possiblity to serialize them.
Definition IAttributes.h:42
The Scene Manager manages scene nodes, mesh recources, cameras and all the other stuff.
Animates a scene node. Can animate position, rotation, material, and so on.
virtual ISceneNodeAnimator * createClone(ISceneNode *node, ISceneManager *newManager=0)=0
Creates a clone of this animator.
virtual bool isEventReceiverEnabled() const
Returns true if this animator receives events.
virtual bool hasFinished(void) const
Returns if the animator has finished.
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const
Returns type of the scene node animator.
virtual void animateNode(ISceneNode *node, u32 timeMs)=0
Animates a scene node.
virtual bool OnEvent(const SEvent &event)
Event receiver, override this function for camera controlling animators.
Scene node interface.
Definition ISceneNode.h:41
This namespace provides interfaces for input/output: Reading and writing files, accessing zip archive...
Definition EAttributes.h:11
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
ESCENE_NODE_ANIMATOR_TYPE
An enumeration for all types of built-in scene node animators.
@ ESNAT_UNKNOWN
Unknown scene node animator.
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
SEvents hold information about an event. See irr::IEventReceiver for details on event handling.