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

anoid::plugin::Box Class Reference

#include <box.hh>

Inheritance diagram for anoid::plugin::Box:

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

Collaboration graph
[legend]
List of all members.

Public Methods

virtual void redraw ()
virtual void init (config::Configuration &c)
virtual void getInverseInertiaTensor (double *output, double a, double b, double c)

Member Function Documentation

void anoid::plugin::Box::getInverseInertiaTensor double *    output,
double    a,
double    b,
double    c
[virtual]
 

Calculate the inverse of the intertia tensor in local coordinates

Parameters:
output  the inverse of the intertia tensor in local coordinates is returned here, expected to be a 4x4 matrix
a  the scaling along the X axis
b  the scaling along the Y axis
c  the scaling along the Z axis

Reimplemented from anoid::base::Shape.

Definition at line 76 of file box.cc.

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

Definition at line 21 of file box.cc.

References anoid::plugin::boxdisplay, anoid::plugin::boxinited, anoid::plugin::boxshape, anoid::base::Object::getWorld(), anoid::base::Object::parent, and Vector().

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

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

Reimplemented from anoid::base::Shape.

Definition at line 16 of file box.cc.

References anoid::plugin::boxdisplay, and anoid::base::Object::getWorld().


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