Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

anoid::plugin::SpinVelocity Class Reference

#include <spinvelocity.hh>

Inheritance diagram for anoid::plugin::SpinVelocity:

Inheritance graph
[legend]
Collaboration diagram for anoid::plugin::SpinVelocity:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual simple::Vector getSpinVelocity ()
void setSpinVelocity (simple::Vector &s)
virtual void init (config::Configuration &c)
virtual void update ()
virtual void redraw ()
double * getInverseInertiaTensor ()
double * getInverseWorldInertiaTensor ()
 SpinVelocity ()

Protected Attributes

simple::Vector spinvelocity
double inverseInertiaTensor [16]
double inverseWorldInertiaTensor [16]

Constructor & Destructor Documentation

anoid::plugin::SpinVelocity::SpinVelocity   [inline]
 

Definition at line 24 of file spinvelocity.hh.


Member Function Documentation

double* anoid::plugin::SpinVelocity::getInverseInertiaTensor   [inline]
 

Definition at line 22 of file spinvelocity.hh.

References inverseInertiaTensor.

Referenced by anoid::plugin::Dynamics::receive().

double* anoid::plugin::SpinVelocity::getInverseWorldInertiaTensor   [inline]
 

Definition at line 23 of file spinvelocity.hh.

References inverseWorldInertiaTensor.

Referenced by anoid::plugin::Dynamics::receive().

Vector anoid::plugin::SpinVelocity::getSpinVelocity   [virtual]
 

Definition at line 46 of file spinvelocity.cc.

References spinvelocity, and Vector().

Referenced by anoid::plugin::anoid::Pad::receive(), and anoid::plugin::Dynamics::receive().

void anoid::plugin::SpinVelocity::init config::Configuration   c [virtual]
 

This is the real initialiser. It should take it's parameters from the provided configuration

Parameters:
c  the configuration describing this object and it's children

Reimplemented from anoid::plugin::Mass.

Reimplemented in anoid::plugin::Dynamics.

Definition at line 12 of file spinvelocity.cc.

References anoid::simple::Point::getX(), anoid::simple::Point::getY(), anoid::simple::Point::getZ(), inverseInertiaTensor, anoid::plugin::Mass::mass, anoid::base::Ability::parentElement, anoid::base::Ability::registerName(), anoid::plugin::Scale::scale, anoid::simple::Point::setX(), anoid::simple::Point::setY(), anoid::simple::Point::setZ(), and spinvelocity.

void anoid::plugin::SpinVelocity::redraw   [virtual]
 

Called just after update has been called on the entire world. This should draw the objects (using OpenGL).

Reimplemented from anoid::plugin::Scale.

Reimplemented in anoid::plugin::Dynamics.

Definition at line 84 of file spinvelocity.cc.

void anoid::plugin::SpinVelocity::setSpinVelocity simple::Vector   s
 

Definition at line 50 of file spinvelocity.cc.

References spinvelocity, and Vector().

Referenced by anoid::plugin::anoid::Pad::receive().

void anoid::plugin::SpinVelocity::update   [virtual]
 

Called when the main loop is ready for another step. Should be used to perform any calculations prior to movement.

Reimplemented from anoid::plugin::Spin.

Reimplemented in anoid::plugin::Dynamics.

Definition at line 54 of file spinvelocity.cc.

References copyMatrix(), anoid::base::Object::getWorld(), inverseInertiaTensor, inverseWorldInertiaTensor, matMult(), anoid::plugin::Rotation::rotation, anoid::plugin::Spin::spin, spinvelocity, tilde(), transpose(), and Vector().


Member Data Documentation

double anoid::plugin::SpinVelocity::inverseInertiaTensor[16] [protected]
 

Definition at line 14 of file spinvelocity.hh.

Referenced by getInverseInertiaTensor(), init(), anoid::plugin::Dynamics::receive(), and update().

double anoid::plugin::SpinVelocity::inverseWorldInertiaTensor[16] [protected]
 

Definition at line 15 of file spinvelocity.hh.

Referenced by getInverseWorldInertiaTensor(), and update().

simple::Vector anoid::plugin::SpinVelocity::spinvelocity [protected]
 

Definition at line 13 of file spinvelocity.hh.

Referenced by getSpinVelocity(), init(), anoid::plugin::Dynamics::receive(), setSpinVelocity(), update(), and anoid::plugin::Dynamics::update().


The documentation for this class was generated from the following files:
Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen