BALL::VIEW::SimulationThread Class Reference

#include <BALL/VIEW/KERNEL/threads.h>

Inheritance diagram for BALL::VIEW::SimulationThread:
BALL::VIEW::BALLThread QThread BALL::VIEW::EnergyMinimizerThread BALL::VIEW::MDSimulationThread

List of all members.


Public Member Functions

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

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.


Constructor & Destructor Documentation

BALL::VIEW::SimulationThread::SimulationThread (  ) 

Member Function Documentation

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]

Member Data Documentation