BALL::VIEW::SimulationThread Class Reference

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

Inheritance diagram for BALL::VIEW::SimulationThread:
Inheritance graph
[legend]

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.

Definition at line 169 of file threads.h.


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]

Definition at line 185 of file threads.h.

void BALL::VIEW::SimulationThread::setDCDFile ( DCDFile file  )  [inline]

Definition at line 182 of file threads.h.

void BALL::VIEW::SimulationThread::setNumberOfStepsBetweenUpdates ( Size  steps  )  [inline]

Definition at line 178 of file threads.h.


Member Data Documentation

Definition at line 196 of file threads.h.

Definition at line 195 of file threads.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3