Loading...
Searching...
No Matches
ISceneNodeAnimator.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_SCENE_NODE_ANIMATOR_H_INCLUDED__
#define __I_SCENE_NODE_ANIMATOR_H_INCLUDED__
#include "IReferenceCounted.h"
#include "vector3d.h"
#include "ESceneNodeAnimatorTypes.h"
#include "IAttributeExchangingObject.h"
#include "IEventReceiver.h"
namespace irr
{
namespace io
{
class IAttributes;
} // end namespace io
namespace scene
{
class ISceneNode;
class ISceneManager;
class ISceneNodeAnimator : public io::IAttributeExchangingObject, public IEventReceiver
{
public:
virtual void animateNode(ISceneNode* node, u32 timeMs) =0;
virtual ISceneNodeAnimator* createClone(ISceneNode* node,
ISceneManager* newManager=0) =0;
virtual bool isEventReceiverEnabled() const
{
return false;
}
virtual bool OnEvent(const SEvent& event)
{
return false;
}
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const
{
return ESNAT_UNKNOWN;
}
virtual bool hasFinished(void) const
{
return false;
}
};
} // end namespace scene
} // end namespace irr
#endif
ESceneNodeAnimatorTypes.h
IAttributeExchangingObject.h
IEventReceiver.h
IReferenceCounted.h
irr::IEventReceiver
Interface of an object which can receive events.
Definition IEventReceiver.h:434
irr::io::IAttributeExchangingObject
An object which is able to serialize and deserialize its attributes into an attributes object.
Definition IAttributeExchangingObject.h:52
irr::io::IAttributes
Provides a generic interface for attributes and their values and the possiblity to serialize them.
Definition IAttributes.h:42
irr::scene::ISceneManager
The Scene Manager manages scene nodes, mesh recources, cameras and all the other stuff.
Definition ISceneManager.h:151
irr::scene::ISceneNodeAnimator
Animates a scene node. Can animate position, rotation, material, and so on.
Definition ISceneNodeAnimator.h:31
irr::scene::ISceneNodeAnimator::createClone
virtual ISceneNodeAnimator * createClone(ISceneNode *node, ISceneManager *newManager=0)=0
Creates a clone of this animator.
irr::scene::ISceneNodeAnimator::isEventReceiverEnabled
virtual bool isEventReceiverEnabled() const
Returns true if this animator receives events.
Definition ISceneNodeAnimator.h:47
irr::scene::ISceneNodeAnimator::hasFinished
virtual bool hasFinished(void) const
Returns if the animator has finished.
Definition ISceneNodeAnimator.h:67
irr::scene::ISceneNodeAnimator::getType
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const
Returns type of the scene node animator.
Definition ISceneNodeAnimator.h:59
irr::scene::ISceneNodeAnimator::animateNode
virtual void animateNode(ISceneNode *node, u32 timeMs)=0
Animates a scene node.
irr::scene::ISceneNodeAnimator::OnEvent
virtual bool OnEvent(const SEvent &event)
Event receiver, override this function for camera controlling animators.
Definition ISceneNodeAnimator.h:53
irr::scene::ISceneNode
Scene node interface.
Definition ISceneNode.h:41
irr::io
This namespace provides interfaces for input/output: Reading and writing files, accessing zip archive...
Definition EAttributes.h:11
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CDynamicMeshBuffer.h:16
irr::scene::ESCENE_NODE_ANIMATOR_TYPE
ESCENE_NODE_ANIMATOR_TYPE
An enumeration for all types of built-in scene node animators.
Definition ESceneNodeAnimatorTypes.h:15
irr::scene::ESNAT_UNKNOWN
@ ESNAT_UNKNOWN
Unknown scene node animator.
Definition ESceneNodeAnimatorTypes.h:47
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
irr::SEvent
SEvents hold information about an event. See irr::IEventReceiver for details on event handling.
Definition IEventReceiver.h:263
vector3d.h
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0