GNGGLUTRepresentation Class Reference

Provides a means for ouputing a representation of the GNG net to an openGL window. More...

#include <GNGGLUTRepresentation.hpp>

List of all members.

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
Controlm_control = 0
unsigned int m_representationUpdate = 0
IGLInputRepresentationm_inputRepresentation = 0
IGNGContainerm_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


Detailed Description

Provides a means for ouputing a representation of the GNG net to an openGL window.

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.


Constructor & Destructor Documentation

GNGGLUTRepresentation char **  argv,
int  argc
 

virtual ~GNGGLUTRepresentation  )  [virtual]
 


Member Function Documentation

void OutputRepresentation  )  [static]
 

void Run  ) 
 

void SetGNGContainer IGNGContainer c  ) 
 

void SetControlObject Control i  ) 
 

void SetUpdateInterval unsigned int  i  ) 
 

void SetInputRepresentation IGLInputRepresentation i  ) 
 

void CallBackMouseFunc int  mouse,
int  state,
int  x,
int  y
[static, private]
 

void CallBackDisplayFunc void   )  [static, private]
 

void CallBackReshapeFunc int  w,
int  h
[static, private]
 

void CallBackIdleFunc void   )  [static, private]
 

void OutputEdges  )  [static, private]
 

void OutputNodes  )  [static, private]
 

void OutputText  )  [static, private]
 

void OutputNode GNGNode const &  node  )  [static, private]
 

void OutputEdge GNGEdge const &  edge  )  [static, private]
 

void Output  )  [static, private]
 


Member Data Documentation

unsigned int m_counter = 1 [static, private]
 

Control * m_control = 0 [static, private]
 

unsigned int m_representationUpdate = 0 [static, private]
 

IGLInputRepresentation * m_inputRepresentation = 0 [static, private]
 

IGNGContainer * m_gngContainer = 0 [static, private]
 

double m_xMin = -1.1 [static, private]
 

double m_xMax = 1.1 [static, private]
 

double m_yMin = -1.1 [static, private]
 

double m_yMax = 1.1 [static, private]
 

bool m_paused = true [static, private]
 

bool m_stepOnce = false [static, private]
 

bool m_stepSequence = false [static, private]
 


Generated on Mon Mar 22 16:40:49 2004 for GNG_GL by doxygen 1.3.6