source: GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtPreprocessorThread.cpp @ 1947

Revision 1947, 830 bytes checked in by mattausch, 17 years ago (diff)
  • Property svn:executable set to *
Line 
1//#ifdef USE_QT
2
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
11namespace GtpVisibilityPreprocessor {
12
13
14QtPreprocessorThread::QtPreprocessorThread(Preprocessor *p,
15                                                                                   QObject *parent)
16: PreprocessorThread(p), QThread(parent)                                                                                                                       
17{
18        if (p->mQuitOnFinish)
19        {
20                connect(this, SIGNAL(finished()), qApp, SLOT(closeAllWindows(void)));
21        }
22}
23
24
25QtPreprocessorThread::~QtPreprocessorThread()
26{
27  cerr << "Preprocessor thread destructor...\n";
28}
29
30
31int
32QtPreprocessorThread::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//#endif
Note: See TracBrowser for help on using the repository browser.