version 3.3

VRS::TimeFunctionMap< T > Class Template Reference

Template Class for Function-based VRSTime Mappings. More...

#include <vrs/sg/timefunctionmap.h>

Inheritance diagram for VRS::TimeFunctionMap< T >:

VRS::TimeMap< T > VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 TimeFunctionMap (T(*function)(double))
virtual T map (const Moment &m)
 VRS_TYPEINFO (TimeFunctionMap, TimeMap< T >)


Detailed Description

template<typename T>
class VRS::TimeFunctionMap< T >

Template Class for Function-based VRSTime Mappings.

Constructor & Destructor Documentation

template<typename T>
VRS::TimeFunctionMap< T >::TimeFunctionMap ( T(*)(double)  function  ) 

An `TimeFunctionMap' calls a double-valued (global) function. The function returns a value of type 'T'.


Member Function Documentation

template<typename T>
virtual T VRS::TimeFunctionMap< T >::map ( const Moment m  )  [virtual]

Calls back the function. The double value passed as argument is calculated as relative time progress

  • t = (m.time()-m.begin())/m.duration()

and is within the range [0,1] for finite time intervals.

Implements VRS::TimeMap< T >.

template<typename T>
VRS::TimeFunctionMap< T >::VRS_TYPEINFO ( TimeFunctionMap< T >  ,
TimeMap< T >   
)


The documentation for this class was generated from the following file:

Generated on Fri May 24 06:00:33 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact