BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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

Public Member Functions

 SimulationThread ()
void setNumberOfStepsBetweenUpdates (Size steps)
void setDCDFile (DCDFile *file)
DCDFilegetDCDFile ()
- Public Member Functions inherited from BALL::VIEW::BALLThread
 BALLThread ()
void setMainControl (MainControl *mf)
void setComposite (Composite *composite)
CompositegetComposite ()
virtual void run ()

Protected Member Functions

void exportSceneToPNG_ ()
 Notify the MainControl to export an PNG.
void finish_ ()
 Notifies the main thread to delete the simulating thread.
- Protected Member Functions inherited from BALL::VIEW::BALLThread
void sendMessage_ (Message *msg)
void updateStructure_ ()
void output_ (const String &string, bool important=false)
 Sends the string as outout to Log.info.
void waitForUpdateOfRepresentations_ ()

Protected Attributes

Size steps_between_updates_
DCDFiledcd_file_
- Protected Attributes inherited from BALL::VIEW::BALLThread
MainControlmain_control_
Compositecomposite_

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

DCDFile* BALL::VIEW::SimulationThread::dcd_file_
protected

Definition at line 196 of file threads.h.

Size BALL::VIEW::SimulationThread::steps_between_updates_
protected

Definition at line 195 of file threads.h.