Public Types | Public Member Functions | Protected Attributes

OpenTissue::animation::Interface< skeleton_type_ > Class Template Reference

#include <animation_interface.h>

Inheritance diagram for OpenTissue::animation::Interface< skeleton_type_ >:
OpenTissue::animation::KeyframeAnimation< skeleton_type_ >

List of all members.

Public Types

typedef skeleton_type_ skeleton_type
typedef skeleton_type::math_types math_types
typedef math_types::coordsys_type coordsys_type
typedef math_types::real_type real_type

Public Member Functions

 Interface ()
virtual ~Interface ()
virtual void clear ()
real_type const & get_weight () const
void set_weight (real_type const &value)
virtual void blend_pose (skeleton_type &skeleton, real_type const &local_time)=0
virtual real_type compute_duration (void)=0

Protected Attributes

real_type m_weight
 End user assigned weight, could be anything!!!

Detailed Description

template<typename skeleton_type_>
class OpenTissue::animation::Interface< skeleton_type_ >

An Animation base Class.


Member Typedef Documentation

template<typename skeleton_type_ >
typedef skeleton_type::math_types OpenTissue::animation::Interface< skeleton_type_ >::math_types
template<typename skeleton_type_ >
typedef math_types::real_type OpenTissue::animation::Interface< skeleton_type_ >::real_type
template<typename skeleton_type_ >
typedef skeleton_type_ OpenTissue::animation::Interface< skeleton_type_ >::skeleton_type

Constructor & Destructor Documentation

template<typename skeleton_type_ >
OpenTissue::animation::Interface< skeleton_type_ >::Interface (  )  [inline]
template<typename skeleton_type_ >
virtual OpenTissue::animation::Interface< skeleton_type_ >::~Interface (  )  [inline, virtual]

Member Function Documentation

template<typename skeleton_type_ >
virtual void OpenTissue::animation::Interface< skeleton_type_ >::blend_pose ( skeleton_type skeleton,
real_type const &  local_time 
) [pure virtual]

Blend Pose.

Parameters:
skeleton 
local_time 

Implemented in OpenTissue::animation::KeyframeAnimation< skeleton_type_ >.

template<typename skeleton_type_ >
virtual void OpenTissue::animation::Interface< skeleton_type_ >::clear ( void   )  [inline, virtual]
template<typename skeleton_type_ >
virtual real_type OpenTissue::animation::Interface< skeleton_type_ >::compute_duration ( void   )  [pure virtual]

Compute Duration.

Returns:
The duration of the animation in local time.

Implemented in OpenTissue::animation::KeyframeAnimation< skeleton_type_ >.

template<typename skeleton_type_ >
real_type const& OpenTissue::animation::Interface< skeleton_type_ >::get_weight (  )  const [inline]
template<typename skeleton_type_ >
void OpenTissue::animation::Interface< skeleton_type_ >::set_weight ( real_type const &  value  )  [inline]

Member Data Documentation

template<typename skeleton_type_ >
real_type OpenTissue::animation::Interface< skeleton_type_ >::m_weight [protected]

End user assigned weight, could be anything!!!


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