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

anoid::plugin::Spin Class Reference

#include <spin.hh>

Inheritance diagram for anoid::plugin::Spin:

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

Collaboration graph
[legend]
List of all members.

Public Methods

virtual double * getSpin ()
void setRotation (double *r)
void getOldRotation (double *a)
void setSpin (double *s)
virtual void init (config::Configuration &c)
virtual void update ()

Protected Attributes

double spin [16]
double oldRotation [16]

Detailed Description

This is the ability to change rotation

Definition at line 13 of file spin.hh.


Member Function Documentation

void anoid::plugin::Spin::getOldRotation double *    a [inline]
 

Definition at line 20 of file spin.hh.

References copyMatrix(), and oldRotation.

double * anoid::plugin::Spin::getSpin   [virtual]
 

Todo:
fjern denne initialisering

Definition at line 22 of file spin.cc.

References spin.

void anoid::plugin::Spin::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::Rotation.

Reimplemented in anoid::plugin::Dynamics, and anoid::plugin::SpinVelocity.

Definition at line 10 of file spin.cc.

References anoid::base::Ability::registerName(), and spin.

void anoid::plugin::Spin::setRotation double *    r
 

Definition at line 26 of file spin.cc.

References copyMatrix(), and anoid::plugin::Rotation::rotation.

void anoid::plugin::Spin::setSpin double *    s
 

Definition at line 30 of file spin.cc.

References copyMatrix(), and spin.

void anoid::plugin::Spin::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::base::Object.

Reimplemented in anoid::plugin::Dynamics, and anoid::plugin::SpinVelocity.

Definition at line 34 of file spin.cc.

References copyMatrix(), matAdd(), oldRotation, anoid::plugin::Rotation::rotation, spin, and Vector().


Member Data Documentation

double anoid::plugin::Spin::oldRotation[16] [protected]
 

Definition at line 16 of file spin.hh.

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

double anoid::plugin::Spin::spin[16] [protected]
 

Definition at line 15 of file spin.hh.

Referenced by getSpin(), init(), setSpin(), anoid::plugin::SpinVelocity::update(), and 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