Public Types | Public Member Functions

OpenTissue::mbd::ScriptedMotionInterface< mbd_types > Class Template Reference

#include <mbd_scripted_motion_interface.h>

Inheritance diagram for OpenTissue::mbd::ScriptedMotionInterface< mbd_types >:
OpenTissue::mbd::Oscillation< mbd_types >

List of all members.

Public Types

typedef mbd_types::body_type body_type
typedef
mbd_types::math_policy::real_type 
real_type
typedef
mbd_types::math_policy::vector3_type 
vector3_type
typedef
mbd_types::math_policy::quaternion_type 
quaternion_type

Public Member Functions

virtual void compute (body_type const &body, real_type const &time, vector3_type &r, quaternion_type &q, vector3_type &v, vector3_type &w)=0

Detailed Description

template<typename mbd_types>
class OpenTissue::mbd::ScriptedMotionInterface< mbd_types >

Scripted Motion (callback) Class. Scripted motion types are implemented by inheritence from this adapter, the compute method must be overriden and specified for the wanted motion type.

Notice that a scripted motion is a type that can be applied to multiple bodies. Invocation of the run method evaluates the motion position and orientation on the specified body at a given instant of time.


Member Typedef Documentation

template<typename mbd_types >
typedef mbd_types::body_type OpenTissue::mbd::ScriptedMotionInterface< mbd_types >::body_type
template<typename mbd_types >
typedef mbd_types::math_policy::quaternion_type OpenTissue::mbd::ScriptedMotionInterface< mbd_types >::quaternion_type

Member Function Documentation

template<typename mbd_types >
virtual void OpenTissue::mbd::ScriptedMotionInterface< mbd_types >::compute ( body_type const &  body,
real_type const &  time,
vector3_type r,
quaternion_type q,
vector3_type v,
vector3_type w 
) [pure virtual]

Compute State of Scripted body_type.

Parameters:
body A pointer to the rigid body where the scripted motion should be evaluated for.
time The time at which the scripted motion should be evaluated.
r Upon return this vector should contain the position of the center of mass.
q Upon return this argument should contain the orientation representated as a quaternion.
v Upon return this vector contains the value of the linear velocity of the center of mass.
w Upon return this vector contains the value of the angular velocity.

Implemented in OpenTissue::mbd::Oscillation< mbd_types >.


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