Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::SimulationThread Class Reference

Baseclass for threads, which perform a simulation. More...

#include <threads.h>

Inheritance diagram for VIEW::SimulationThread:

VIEW::BALLThread VIEW::EnergyMinimizerThread VIEW::MDSimulationThread List of all members.

Public Member Functions

void setNumberOfStepsBetweenUpdates (Size steps) throw ()
void setDCDFile (DCDFile *file) throw ()
DCDFilegetDCDFile () throw ()

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_
DCDFiledcd_file_

Detailed Description

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.