Monday, February 22, 2010

Sliders

The ODE simulation and SSA simulation provide sliders that can be used to experiment with values and see the change in the simulation results instantly.

How it works:

The Core library provides a new class called MultithreadedSliderWidget, which combines a slider widget with the CThread class to provide a widget that would call functions inside a C library on a separate thread as the slider changes value.

The thread is destroyed when the slider window is closed.

The DynamicCodeTool plugin provides a C function called compileBuildLoadSliders, which is almost the same as compileBuildLoad, except for the fact that it attaches a MulthithreadedSliderWidget to the CThread that would be normally created with the compileBuildLoad call.

No comments: