#include <spinvelocity.hh>
Inheritance diagram for anoid::plugin::SpinVelocity:


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] |
|
|
Definition at line 24 of file spinvelocity.hh. |
|
|
Definition at line 22 of file spinvelocity.hh. References inverseInertiaTensor. Referenced by anoid::plugin::Dynamics::receive(). |
|
|
Definition at line 23 of file spinvelocity.hh. References inverseWorldInertiaTensor. Referenced by anoid::plugin::Dynamics::receive(). |
|
|
Definition at line 46 of file spinvelocity.cc. References spinvelocity, and Vector(). Referenced by anoid::plugin::anoid::Pad::receive(), and anoid::plugin::Dynamics::receive(). |
|
|
This is the real initialiser. It should take it's parameters from the provided configuration
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. |
|
|
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. |
|
|
Definition at line 50 of file spinvelocity.cc. References spinvelocity, and Vector(). Referenced by anoid::plugin::anoid::Pad::receive(). |
|
|
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(). |
|
|
Definition at line 14 of file spinvelocity.hh. Referenced by getInverseInertiaTensor(), init(), anoid::plugin::Dynamics::receive(), and update(). |
|
|
Definition at line 15 of file spinvelocity.hh. Referenced by getInverseWorldInertiaTensor(), and update(). |
|
|
Definition at line 13 of file spinvelocity.hh. Referenced by getSpinVelocity(), init(), anoid::plugin::Dynamics::receive(), setSpinVelocity(), update(), and anoid::plugin::Dynamics::update(). |