#include <GNGGLUTRepresentation.hpp>
Public Member Functions | |
GNGGLUTRepresentation (char **argv, int argc) | |
virtual | ~GNGGLUTRepresentation () |
void | Run () |
void | SetGNGContainer (IGNGContainer *c) |
void | SetControlObject (Control *i) |
void | SetUpdateInterval (unsigned int i) |
void | SetInputRepresentation (IGLInputRepresentation *i) |
Static Public Member Functions | |
void | OutputRepresentation () |
Static Private Member Functions | |
void | CallBackMouseFunc (int mouse, int state, int x, int y) |
void | CallBackDisplayFunc (void) |
void | CallBackReshapeFunc (int w, int h) |
void | CallBackIdleFunc (void) |
void | OutputEdges () |
void | OutputNodes () |
void | OutputText () |
void | OutputNode (GNGNode const &node) |
void | OutputEdge (GNGEdge const &edge) |
void | Output () |
Static Private Attributes | |
unsigned int | m_counter = 1 |
Control * | m_control = 0 |
unsigned int | m_representationUpdate = 0 |
IGLInputRepresentation * | m_inputRepresentation = 0 |
IGNGContainer * | m_gngContainer = 0 |
double | m_xMin = -1.1 |
double | m_xMax = 1.1 |
double | m_yMin = -1.1 |
double | m_yMax = 1.1 |
bool | m_paused = true |
bool | m_stepOnce = false |
bool | m_stepSequence = false |
GNGGLUTRepresentation uses GLUT to open a window. It uses an IGLInputRepresentation to display the input space and a GNGAlgorithm object to display the state of the GNG net. Since GLUT has its own main loop, you must register an IdleObject with GNGGLUTRepresentation which is used in its main loop when it is not repainting the graphics. The IdleObject contains the code that should be run in the main loop.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|