HyperspaceExplorer 0.7.1
Public Member Functions | Protected Member Functions | Protected Attributes
Object Class Reference

Generalized four-dimensional Object, described by vertexes and surfaces. More...

#include <Object.h>

Inheritance diagram for Object:
Inheritance graph
[legend]
Collaboration diagram for Object:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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 $ R^3 $ to $ R $ or from $ R^2 $ to $ R^4 $.

Instead it is described as a set of surfaces.

Author:
Helge Preuss <lene.preuss@gmail.com>

Constructor & Destructor Documentation

Object::Object ( unsigned  vertices,
unsigned  surfaces 
)

generic Object constructor; only allocates necessary arrays, children must fill them in their c'tor

Parameters:
verticesnumber of vertices
surfacesnumber of surfaces

References resize().

Here is the call graph for this function:


Member Function Documentation

virtual unsigned Object::getDefinitionSpaceDimensions ( ) [inline, virtual]
See also:
Function::getDefinitionSpaceDimensions()

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo