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

anoid::base::Shape Class Reference

#include <shape.hh>

Inheritance diagram for anoid::base::Shape:

Inheritance graph
[legend]
Collaboration diagram for anoid::base::Shape:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual void redraw ()
virtual void getInverseInertiaTensor (double *output, double a, double b, double c)

Member Function Documentation

void anoid::base::Shape::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 in anoid::plugin::Box, and anoid::plugin::Sphere.

Definition at line 17 of file shape.cc.

void anoid::base::Shape::redraw   [virtual]
 

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

Reimplemented from anoid::base::Object.

Reimplemented in anoid::plugin::AscShape, anoid::plugin::Box, and anoid::plugin::Sphere.

Definition at line 8 of file shape.cc.

Referenced by anoid::base::Element::redraw().


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