Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes

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

#include <animation_keyframe_joint_channels.h>

List of all members.

Classes

class  Keyframe

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

 KeyframeJointChannels ()
virtual ~KeyframeJointChannels ()
size_t const & get_bone_number () const
void set_bone_number (size_t const &number)
void add_key (real_type const &local_time, coordsys_type const &value)
coordsys_type get_value (real_type const &local_time)
real_type compute_duration ()

Protected Types

typedef std::vector< Keyframekeyframe_container
typedef
keyframe_container::iterator 
keyframe_iterator

Protected Attributes

size_t m_bone_number
 The number of the bone this joint transform affects.
int m_next
 Given time t this member holds the index to next keyframe, i.e. t <= key(m_next).time.
int m_prev
 Given time t this member holds the index to previous keyframe, i.e. t > key(m_next).time.
keyframe_container m_keyframes
 Container of keyframes.

Detailed Description

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

A Keyframe Joint Transform.


Member Typedef Documentation

template<typename skeleton_type_ >
typedef math_types::coordsys_type OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::coordsys_type
template<typename skeleton_type_ >
typedef std::vector<Keyframe> OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::keyframe_container [protected]
template<typename skeleton_type_ >
typedef keyframe_container::iterator OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::keyframe_iterator [protected]
template<typename skeleton_type_ >
typedef skeleton_type::math_types OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::math_types
template<typename skeleton_type_ >
typedef math_types::real_type OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::real_type
template<typename skeleton_type_ >
typedef skeleton_type_ OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::skeleton_type

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename skeleton_type_ >
void OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::add_key ( real_type const &  local_time,
coordsys_type const &  value 
) [inline]
template<typename skeleton_type_ >
real_type OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::compute_duration ( void   )  [inline]

Compute Duration.

Returns:
Returns the duration in local time.
template<typename skeleton_type_ >
size_t const& OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::get_bone_number (  )  const [inline]
template<typename skeleton_type_ >
coordsys_type OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::get_value ( real_type const &  local_time  )  [inline]

Retrive Transform. This method should return the coordinate transform coorespond to the specified time.

Parameters:
local_time The specified time.
Returns:
The coordinate transform.
template<typename skeleton_type_ >
void OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::set_bone_number ( size_t const &  number  )  [inline]

Member Data Documentation

template<typename skeleton_type_ >
size_t OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::m_bone_number [protected]

The number of the bone this joint transform affects.

template<typename skeleton_type_ >
keyframe_container OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::m_keyframes [protected]

Container of keyframes.

template<typename skeleton_type_ >
int OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::m_next [protected]

Given time t this member holds the index to next keyframe, i.e. t <= key(m_next).time.

template<typename skeleton_type_ >
int OpenTissue::animation::KeyframeJointChannels< skeleton_type_ >::m_prev [protected]

Given time t this member holds the index to previous keyframe, i.e. t > key(m_next).time.


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