Свойство | Type | Description | |
---|---|---|---|
_box | IBlackBox | ||
_simWorld |
Méthode | Description | |
---|---|---|
Box2dDomainView ( IBlackBox>.IGenomeDecoder |
Construct with the provided IGenomeDecoder, this is used to decode genome(s) into IBlackBox controllers.
|
|
RefreshView ( object genome ) : void |
Refresh/update the view with the provided genome.
|
Méthode | Description | |
---|---|---|
CreateSimulationWorld ( ) : |
Create a Box2D simulation world.
|
|
InvokeController ( ) : void |
Invoke any required control logic in the Box2D world.
|
|
OnHandleDestroyed ( EventArgs e ) : void |
Event handler to clean-up on window closure.
|
|
TestStopCondition ( ) : bool |
Test if the Box2D world has arrived at a stop condition.
|
Méthode | Description | |
---|---|---|
ConvertScreenToWorld ( float x, float y ) : Vec2 |
Convert screen coordinates to box2d world coords.
|
|
InitDebugDraw ( ) : void |
Initialise debug drawing object (interface between Box2D world and openGL rendering).
|
|
RunTrial ( ) : void |
Run one simulation.
|
|
SetView ( ) : void |
Set the extents of the viewport and the box2D world. The extents of the two coordinate systems are set to preserve the correct aspect ratio when rendering the Box2d world. This is done simply be always rendering the full height of the box2D world and varying the horizontal extents to maintain the aspect ratio as the viewport is resized.
|
|
SimulationThread ( ) : void |
Run simulations until thread is terminated.
|
|
btnReset_Click ( object sender, EventArgs e ) : void | ||
openGlControl_MouseDown ( object sender, MouseEventArgs e ) : void | ||
openGlControl_MouseMove ( object sender, MouseEventArgs e ) : void | ||
openGlControl_MouseUp ( object sender, MouseEventArgs e ) : void | ||
openGlControl_Resize ( object sender, EventArgs e ) : void |
public Box2dDomainView ( IBlackBox>.IGenomeDecoder |
||
genomeDecoder | IBlackBox>.IGenomeDecoder | |
Résultat | System |
protected abstract CreateSimulationWorld ( ) : |
||
Résultat |
protected abstract InvokeController ( ) : void | ||
Résultat | void |
protected OnHandleDestroyed ( EventArgs e ) : void | ||
e | EventArgs | |
Résultat | void |
public RefreshView ( object genome ) : void | ||
genome | object | |
Résultat | void |