class ThreadQTImplementation More...
#include <ThreadQTImplementation.h>
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 |
class ThreadQTImplementation
Diese Klasse steuert die Threadingfunktion und ruft vom Child die perfom Methode in einem eigenen Thread auf.
ThreadQTImplementation::ThreadQTImplementation | ( | QObject * | parent, |
QReadWriteLock * | mutex | ||
) |
Konstruktor erstellt das Objekt
parent | Parent Objekt |
mutex | Objekt zum Synchronisieren |
ThreadQTImplementation::~ThreadQTImplementation | ( | void | ) |
Löscht den Thread
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.
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.
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 |