GNGControl Class Reference

GNGGLUTRepresentation uses the control-object's Iterate method every time the CallBackIdleFunc is called. More...

#include <GNGControl.hpp>

Inheritance diagram for GNGControl:

Control List of all members.

Public Member Functions

 GNGControl (GNGAlgorithm *alg, IInputGenerator *g)
 Constructs a new IdleObject with a reference to a GNGAlgorithm Object.

virtual ~GNGControl ()
virtual bool Iterate ()
 The main iteration loop.


Protected Member Functions

virtual bool IsStopCriteriaMet ()

Protected Attributes

GNGAlgorithmm_alg
IInputGeneratorm_generator

Detailed Description

GNGGLUTRepresentation uses the control-object's Iterate method every time the CallBackIdleFunc is called.

Placing the code separately in this object is a way of allowing GL independent code and state information. The GNGAlgorithm is iterated by a call to its Iterate() method.


Constructor & Destructor Documentation

GNGControl GNGAlgorithm alg,
IInputGenerator g
 

Constructs a new IdleObject with a reference to a GNGAlgorithm Object.

Parameters:
alg The GNGAlgorithm that will be iterated.

virtual ~GNGControl  )  [virtual]
 


Member Function Documentation

virtual bool Iterate  )  [virtual]
 

The main iteration loop.

Returns:
false when iteration should be ceased, true if continue.

Implements Control.

virtual bool IsStopCriteriaMet  )  [protected, virtual]
 

Implements Control.


Member Data Documentation

GNGAlgorithm* m_alg [protected]
 

IInputGenerator* m_generator [protected]
 


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