#include <OMKIAnimatorEventPlug.h>
Inheritance diagram for OMK::Vis::IAnimatorEventPlug:
Public Member Functions | |
Interface for \ref OMK::Vis::VisOgre. | |
virtual void | setEvent (const Event *event) |
Sets the associated value. | |
Protected Attributes | |
bool | _updatedValue |
Flag which show if the value is updated or not. | |
VisBase & | _vis |
Reference to the visualisation to remove the event plug when deleted. | |
EventIdentifier | _eventId |
Reference to the visualisation to remove the event plug when deleted. |
Definition at line 39 of file OMKIAnimatorEventPlug.h.
IAnimatorEventPlug::IAnimatorEventPlug | ( | VisBase & | vis, | |
const EventIdentifier & | eventId | |||
) |
Default constructor.
Definition at line 35 of file OMKIAnimatorEventPlug.cpp.
00036 : _updatedValue( false ), 00037 _vis( vis ), 00038 _eventId( eventId ) 00039 { 00040 }
IAnimatorEventPlug::~IAnimatorEventPlug | ( | ) | [virtual] |
Destructor.
Definition at line 45 of file OMKIAnimatorEventPlug.cpp.
References _eventId, _vis, and OMK::Vis::VisBase::removeEventPlug().
00046 { 00047 _vis.removeEventPlug( _eventId, this ) ; 00048 }
IAnimatorEventPlug::IAnimatorEventPlug | ( | VisBase & | vis, | |
const EventIdentifier & | eventId | |||
) |
Default constructor.
Definition at line 35 of file OMKIAnimatorEventPlug.cpp.
00036 : _updatedValue( false ), 00037 _vis( vis ), 00038 _eventId( eventId ) 00039 { 00040 }
IAnimatorEventPlug::~IAnimatorEventPlug | ( | ) | [virtual] |
Destructor.
Definition at line 45 of file OMKIAnimatorEventPlug.cpp.
References _eventId, _vis, and OMK::Vis::VisBase::removeEventPlug().
00046 { 00047 _vis.removeEventPlug( _eventId, this ) ; 00048 }
virtual void OMK::Vis::IAnimatorEventPlug::setEvent | ( | const Event * | event | ) | [inline, virtual] |
Sets the associated value.
Called by OMK::Vis::VisOgre to set the value when the event is recieved. Not a template, so no value is associated.
Reimplemented in OMK::Vis::AnimatorEventPlugT< T >.
Definition at line 58 of file OMKIAnimatorEventPlug.h.
00059 { 00060 // A new value is coming 00061 _updatedValue = true ; 00062 }
bool OMK::Vis::IAnimatorEventPlug::_updatedValue [mutable, protected] |
Flag which show if the value is updated or not.
This member variable is mutable because isValueChanged is a constant method.
Definition at line 71 of file OMKIAnimatorEventPlug.h.
Referenced by OMK::Vis::AnimatorEventPlugT< T >::isValueChanged(), OMK::Vis::AnimatorEventPlug::isValueChanged(), and OMK::Vis::AnimatorEventPlugT< T >::setEvent().
VisBase& OMK::Vis::IAnimatorEventPlug::_vis [protected] |
Reference to the visualisation to remove the event plug when deleted.
Definition at line 73 of file OMKIAnimatorEventPlug.h.
Referenced by ~IAnimatorEventPlug().
Reference to the visualisation to remove the event plug when deleted.
Definition at line 75 of file OMKIAnimatorEventPlug.h.
Referenced by ~IAnimatorEventPlug().
Documentation generated on Mon Jun 9 11:46:05 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |