|
Darwin Neuroevolution Framework
|
A reusable sandbox window for domains based on Box2D physics simulations. More...
#include <box2d_sandbox_window.h>
Inherits QFrame.
Inherited by ballistics_ui::SandboxWindow, car_track_ui::SandboxWindow, cart_pole_ui::SandboxWindow, double_cart_pole_ui::SandboxWindow, drone_follow_ui::SandboxWindow, drone_track_ui::SandboxWindow, drone_vision_ui::SandboxWindow, and unicycle_ui::SandboxWindow.
Public Types | |
| enum | State |
| Sandbox state. | |
Public Member Functions | |
| Box2dSandboxWindow () | |
| Creates a new sandbox windows. | |
Protected Member Functions | |
| State | state () const |
| Current state. | |
| QString | stateDescription () const |
| User-friendly string describing the current state. | |
| virtual void | newScene ()=0 |
| Called to create a new scene. | |
| virtual void | singleStep ()=0 |
| Called to advance the simulation one step. | |
| virtual void | updateUI ()=0 |
| Called when the whole UI (ex. variable values) must be updated. | |
| void | setWorld (b2World *world, const QRectF &viewport) |
| Sets the associated Box2D world. | |
| void | setSceneUi (Box2dSceneUi *scene_ui) |
| Sets a custom scene UI. | |
| void | play () |
| Play/resume simulation. | |
| void | pause () |
| Pause the simulation. | |
| void | stop (State state) |
| Terminate the simulation, with the given final state. | |
| Box2dWidget * | box2dWidget () const |
| The Box2D widget. | |
| core_ui::PropertiesWidget * | variablesWidget () const |
| The properties widget used to show sandbox values. | |
A reusable sandbox window for domains based on Box2D physics simulations.
1.8.14