HyperspaceExplorer 0.7.1
|
Generalized four-dimensional Object, described by vertexes and surfaces. More...
#include <Object.h>
Public Member Functions | |
Object (unsigned, unsigned) | |
virtual void | ReInit (double, double, double, double, double, double, double, double, double) |
virtual void | calibrateColors () |
Called by the ColorManager after setting the Displayable on the CM. | |
virtual void | Draw (UI::View *) |
Draw the projected Object (onto screen or into GL list, as it is) | |
virtual unsigned | getDefinitionSpaceDimensions () |
Protected Member Functions | |
virtual void | Initialize () |
Actually create the Object, this method is overridden in child classes. | |
void | setX (unsigned i, const VecMath::Vector< 4, double > &x) |
Set a vertex at a specified index. | |
void | clearAndResizeX (unsigned size) |
Protected Attributes | |
VecMath::MultiDimensionalVector < unsigned, 2 > | Surface |
the surfaces, stored as vectors of indeces to the points in X |
Generalized four-dimensional Object, described by vertexes and surfaces.
An Object is a four-dimensional geometrical object which can not be described as a mathematical function from to or from to .
Instead it is described as a set of surfaces.
Object::Object | ( | unsigned | vertices, |
unsigned | surfaces | ||
) |
virtual unsigned Object::getDefinitionSpaceDimensions | ( | ) | [inline, virtual] |
Reimplemented from VertexHolder< 4, 1, double >.
void Object::Initialize | ( | void | ) | [protected, virtual] |
Actually create the Object, this method is overridden in child classes.
Calibrates the color manager from the vertices of the object.
In child classes, this method should be reimplemented to set up the arrays X
and Surface
. When that is finished, the reimplementation should call
at the end of its own Initialize() routine to calibrate the color manager.
Implements Displayable.
Reimplemented in Hypercube, Pyramid, Gasket, Sponge, AltSponge, and Rotope.
References calibrateColors().
Referenced by ReInit().
void Object::ReInit | ( | double | , |
double | , | ||
double | , | ||
double | , | ||
double | , | ||
double | , | ||
double | , | ||
double | , | ||
double | |||
) | [virtual] |
Reinitialize an Object. This function is called when the initialization is done outside the constructor.
Currently it does not differ from Initialize(). In fact, it simply calls Initialize().
Implements Displayable.
Reimplemented in Gasket, and Sponge.
References Initialize(), and Loki::SingletonHolder< T, CreationPolicy >::Instance().