OMK::Vis::IAnimatorEventPlug Class Reference

The event plug interface to set an animator by event. More...

#include <OMKIAnimatorEventPlug.h>

Inheritance diagram for OMK::Vis::IAnimatorEventPlug:

Inheritance graph
[legend]
Collaboration diagram for OMK::Vis::IAnimatorEventPlug:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

The event plug interface to set an animator by event.

Author:
Benoit Chanclou, bunraku <bchanclo@irisa.fr> This event plug is the interface used by visual object.

Definition at line 39 of file OMKIAnimatorEventPlug.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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   }


Member Data Documentation

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().

EventIdentifier OMK::Vis::IAnimatorEventPlug::_eventId [protected]

Reference to the visualisation to remove the event plug when deleted.

Definition at line 75 of file OMKIAnimatorEventPlug.h.

Referenced by ~IAnimatorEventPlug().


logo OpenMask

Documentation generated on Mon Jun 9 11:46:05 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007