#include <OMKAnimatorInputPlugT.h>
Inheritance diagram for OMK::Vis::AnimatorInputPlugT< T >:
Public Member Functions | |
Interface. | |
virtual const T & | getTypedValue () const |
Returns the typed associated value. | |
virtual bool | isValueChanged () const |
Returns true if the associated value has changed since the last call. | |
Protected Attributes | |
Input< T > * | _listenedInput |
The pointer on the input of the visualisation. |
Definition at line 44 of file OMKAnimatorInputPlugT.h.
OMK::Vis::AnimatorInputPlugT< T >::AnimatorInputPlugT | ( | Input< T > * | listenedInput | ) | [inline] |
Constructor.
[in] | listenedInput,the | input given by the visualisation which creates it to connect itself to the output |
Definition at line 53 of file OMKAnimatorInputPlugT.h.
References OMK::Vis::AnimatorInputPlugT< T >::_listenedInput, and OMASSERT.
00053 : 00054 AnimatorPlugT<T>(), 00055 _listenedInput( listenedInput ) 00056 { 00057 OMASSERT( _listenedInput && "Must be valid !" ) ; 00058 }
virtual OMK::Vis::AnimatorInputPlugT< T >::~AnimatorInputPlugT | ( | ) | [inline, virtual] |
OMK::Vis::AnimatorInputPlugT< T >::AnimatorInputPlugT | ( | Input< T > * | listenedInput | ) | [inline] |
Constructor.
[in] | listenedInput,the | input given by the visualisation which creates it to connect itself to the output |
Definition at line 53 of file OMKAnimatorInputPlugT.h.
References OMK::Vis::AnimatorInputPlugT< T >::_listenedInput, and OMASSERT.
00053 : 00054 AnimatorPlugT<T>(), 00055 _listenedInput( listenedInput ) 00056 { 00057 OMASSERT( _listenedInput && "Must be valid !" ) ; 00058 }
virtual OMK::Vis::AnimatorInputPlugT< T >::~AnimatorInputPlugT | ( | ) | [inline, virtual] |
virtual const T& OMK::Vis::AnimatorInputPlugT< T >::getTypedValue | ( | ) | const [inline, virtual] |
Returns the typed associated value.
Implements OMK::Vis::AnimatorPlugT< T >.
Definition at line 70 of file OMKAnimatorInputPlugT.h.
References OMK::Vis::AnimatorInputPlugT< T >::_listenedInput, and OMASSERTM.
00071 { 00072 OMASSERTM( _listenedInput->isConnected(), "The input is not connected, cannot get the value" ) ; 00073 return _listenedInput->get() ; 00074 }
virtual bool OMK::Vis::AnimatorInputPlugT< T >::isValueChanged | ( | ) | const [inline, virtual] |
Returns true if
the associated value has changed since the last call.
Returns true if the associated input is connected.
Implements OMK::Vis::AnimatorPlug.
Definition at line 78 of file OMKAnimatorInputPlugT.h.
References OMK::Vis::AnimatorInputPlugT< T >::_listenedInput.
00079 { 00080 return _listenedInput->isConnected() ; 00081 }
Input< T >* OMK::Vis::AnimatorInputPlugT< T >::_listenedInput [protected] |
The pointer on the input of the visualisation.
Definition at line 87 of file OMKAnimatorInputPlugT.h.
Referenced by OMK::Vis::AnimatorInputPlugT< T >::AnimatorInputPlugT(), OMK::Vis::AnimatorInputPlugT< T >::getTypedValue(), and OMK::Vis::AnimatorInputPlugT< T >::isValueChanged().
Documentation generated on Mon Jun 9 11:46:05 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |