0029021: Coding Rules - eliminate GCC warnings in Qt sample
[occt.git] / samples / qt / FuncDemo / src / FThread.h
CommitLineData
aff5997d 1#ifndef _FTHREAD_H_
2#define _FTHREAD_H_
3
4#include <QThread>
5
6#include <TFunction_Logbook.hxx>
7#include <TFunction_Iterator.hxx>
8#include <TFunction_Driver.hxx>
9
10class GraphWidget; // shows graphically execution of functions
11
12class FThread : public QThread
13{
14
15 Q_OBJECT
16
17public:
18
19 FThread(QObject* parent = 0);
20 ~FThread();
21
22 void setIterator(const TFunction_Iterator& ); // to iterate and call functions
23 void setLogbook(const Handle(TFunction_Logbook)& ); // to set logbook with modifications
24 void setGraph(GraphWidget* ); // to change color of a graph circle
25 void setThreadIndex(const int ); // to set the index of the thread
26
27protected:
28
29 void run();
30 virtual TDF_Label getFreeFunction(); // Returns any free (not executed yet) function
31
32private:
33
34 TFunction_Iterator itr;
35 Handle(TFunction_Logbook) log;
36 int thread_index;
37
38 GraphWidget* graph;
39};
40
41#endif // _FTHREAD_H_