Public Slots | Signals | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

ThreadQTImplementation Class Reference

class ThreadQTImplementation More...

#include <ThreadQTImplementation.h>

Inheritance diagram for ThreadQTImplementation:
Inheritance graph
[legend]
Collaboration diagram for ThreadQTImplementation:
Collaboration graph
[legend]

List of all members.

Public Slots

void stopSignal ()
void startSignal (vec3 startp, Texture *grid, Texture *tex, int numsteps, float stepsize, float dsep, float dtest, float dt, States::StreamlineIntMode intmode)

Signals

void renderedImage (StreamlineObj *streamv, int index1, int index2)

Public Member Functions

 ThreadQTImplementation (QObject *parent, QReadWriteLock *mutex)
 ~ThreadQTImplementation (void)
void RunThread (vec3 startp, Texture *grid, Texture *tex, int numsteps, float stepsize, float dsep, float dtest, float dt, States::StreamlineIntMode intmode)
void run ()
bool getStop ()

Public Attributes

int timestep
bool stopped
QReadWriteLock * m_mutex

Protected Member Functions

virtual void perform (vec3 startpos, Texture *gridtexture, Texture *texture, int numsteps, float stepsize, float dsep, float dtest, float dt, States::StreamlineIntMode intmode)=0

Protected Attributes

std::vector< std::vector
< StreamlineObj * > > 
values

Detailed Description

class ThreadQTImplementation

Diese Klasse steuert die Threadingfunktion und ruft vom Child die perfom Methode in einem eigenen Thread auf.

Author:
Michael Beham
Date:
19.1.2010

Constructor & Destructor Documentation

ThreadQTImplementation::ThreadQTImplementation ( QObject *  parent,
QReadWriteLock *  mutex 
)

Konstruktor erstellt das Objekt

Parameters:
parentParent Objekt
mutexObjekt zum Synchronisieren
ThreadQTImplementation::~ThreadQTImplementation ( void   )

Löscht den Thread


Member Function Documentation

virtual void ThreadQTImplementation::perform ( vec3  startpos,
Texture gridtexture,
Texture texture,
int  numsteps,
float  stepsize,
float  dsep,
float  dtest,
float  dt,
States::StreamlineIntMode  intmode 
) [protected, pure virtual]

Diese Funktion wird vom Kind implementiert und führt die Streamlineerzeugung aus.

Parameters:
startp... startpunkt der Streamline erzeugung
grid... Grid texture
tex... Tex texture
numsteps... Nummer der Schritte
stepsize... Schrittweite
dsep.. Dsep vom Paper
dstest.. Dtest vom Paper
dt.. Dt vom Paper
intmode... Integrationsmode

Implemented in Streamlines.

void ThreadQTImplementation::renderedImage ( StreamlineObj streamv,
int  index1,
int  index2 
) [signal]

Sendet die Gerenderte Streamline dem Renderer streamv ... Streamv index1 ... Index1 index2 ... Index2

void ThreadQTImplementation::run (  )

Startet Thread

void ThreadQTImplementation::RunThread ( vec3  startp,
Texture grid,
Texture tex,
int  numsteps,
float  stepsize,
float  dsep,
float  dtest,
float  dt,
States::StreamlineIntMode  intmode 
)

Diese Methode startet den Thread in dem es das Perform des Childs aufruft.

Parameters:
startp... startpunkt der Streamline erzeugung
grid... Grid texture
tex... Tex texture
numsteps... Nummer der Schritte
stepsize... Schrittweite
dsep.. Dsep vom Paper
dstest.. Dtest vom Paper
dt.. Dt vom Paper
intmode... Integrationsmode

The documentation for this class was generated from the following files:
 All Classes Functions Variables