Revision 1867,
870 bytes
checked in by bittner, 18 years ago
(diff) |
merge, global lines, rss sampling updates
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #ifdef GTP_INTERNAL
|
---|
2 | #ifndef NO_QT
|
---|
3 | #include <QApplication>
|
---|
4 | #include "QtPreprocessorThread.h"
|
---|
5 | #include "Camera.h"
|
---|
6 | #include "KdTree.h"
|
---|
7 | #include "SceneGraph.h"
|
---|
8 | #include "Preprocessor.h"
|
---|
9 |
|
---|
10 |
|
---|
11 | namespace GtpVisibilityPreprocessor {
|
---|
12 |
|
---|
13 |
|
---|
14 | QtPreprocessorThread::QtPreprocessorThread(Preprocessor *p,
|
---|
15 | QObject *parent):PreprocessorThread(p),
|
---|
16 | QThread(parent)
|
---|
17 |
|
---|
18 | {
|
---|
19 | if (p->mQuitOnFinish)
|
---|
20 | {
|
---|
21 | connect(this, SIGNAL(finished()), qApp, SLOT(closeAllWindows(void)));
|
---|
22 | }
|
---|
23 | }
|
---|
24 |
|
---|
25 |
|
---|
26 | QtPreprocessorThread::~QtPreprocessorThread()
|
---|
27 | {
|
---|
28 | cerr<<"Preprocessor thread destructor...\n";
|
---|
29 | }
|
---|
30 |
|
---|
31 | int
|
---|
32 | QtPreprocessorThread::GetCurrentThreadId() const
|
---|
33 | {
|
---|
34 | QThread *thread = currentThread();
|
---|
35 | for (int i=0; i < sThreads.size(); i++)
|
---|
36 | if (sThreads[i] == (QtPreprocessorThread *)thread)
|
---|
37 | return i+1;
|
---|
38 | return 0;
|
---|
39 | }
|
---|
40 |
|
---|
41 | }
|
---|
42 |
|
---|
43 |
|
---|
44 | #endif
|
---|
45 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.