#include <BALL/VIEW/KERNEL/threads.h>
Public Member Functions | |
SimulationThread () | |
void | setNumberOfStepsBetweenUpdates (Size steps) |
void | setDCDFile (DCDFile *file) |
DCDFile * | getDCDFile () |
Protected Member Functions | |
void | exportSceneToPNG_ () |
Notify the MainControl to export an PNG. | |
void | finish_ () |
Notifies the main thread to delete the simulating thread. | |
Protected Attributes | |
Size | steps_between_updates_ |
DCDFile * | dcd_file_ |
Baseclass for threads, which perform a simulation. At the end of the run() method, always call finish_() to notify the main thread to delete the simulation thread, otherwise there will be a memory leak.
BALL::VIEW::SimulationThread::SimulationThread | ( | ) |
void BALL::VIEW::SimulationThread::exportSceneToPNG_ | ( | ) | [protected] |
Notify the MainControl to export an PNG.
void BALL::VIEW::SimulationThread::finish_ | ( | ) | [protected] |
Notifies the main thread to delete the simulating thread.
DCDFile* BALL::VIEW::SimulationThread::getDCDFile | ( | ) | [inline] |
void BALL::VIEW::SimulationThread::setDCDFile | ( | DCDFile * | file | ) | [inline] |
void BALL::VIEW::SimulationThread::setNumberOfStepsBetweenUpdates | ( | Size | steps | ) | [inline] |
DCDFile* BALL::VIEW::SimulationThread::dcd_file_ [protected] |