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

Revision 1867, 870 bytes checked in by bittner, 18 years ago (diff)

merge, global lines, rss sampling updates

  • Property svn:executable set to *
RevLine 
[1770]1#ifdef GTP_INTERNAL
2#ifndef NO_QT
[1387]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):PreprocessorThread(p),
16                                                                                                                        QThread(parent)
17                                                                                                                       
18{
19  if (p->mQuitOnFinish)
[1715]20        {
[1520]21          connect(this, SIGNAL(finished()), qApp, SLOT(closeAllWindows(void)));
[1715]22        }
[1387]23}
24
25
26QtPreprocessorThread::~QtPreprocessorThread()
27{
28  cerr<<"Preprocessor thread destructor...\n";
29}
30
[1867]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;
[1387]39}
40
[1867]41}
42
43
[1715]44#endif
[1770]45#endif
Note: See TracBrowser for help on using the repository browser.