BALL  1.4.2
 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 setTrajectoryFile (TrajectoryFile *file)
 
TrajectoryFilegetTrajectoryFile ()
 
- 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. More...
 
void finish_ ()
 Notifies the main thread to delete the simulating thread. More...
 
- 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. More...
 
void waitForUpdateOfRepresentations_ ()
 

Protected Attributes

Size steps_between_updates_
 
TrajectoryFiletrajectory_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.

TrajectoryFile* BALL::VIEW::SimulationThread::getTrajectoryFile ( )
inline

Definition at line 185 of file threads.h.

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

Definition at line 178 of file threads.h.

void BALL::VIEW::SimulationThread::setTrajectoryFile ( TrajectoryFile file)
inline

Definition at line 182 of file threads.h.

Member Data Documentation

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

Definition at line 195 of file threads.h.

TrajectoryFile* BALL::VIEW::SimulationThread::trajectory_file_
protected

Definition at line 196 of file threads.h.