#ifdef GTP_INTERNAL #ifndef NO_QT #include #include "QtPreprocessorThread.h" #include "Camera.h" #include "KdTree.h" #include "SceneGraph.h" #include "Preprocessor.h" namespace GtpVisibilityPreprocessor { QtPreprocessorThread::QtPreprocessorThread(Preprocessor *p, QObject *parent):PreprocessorThread(p), QThread(parent) { if (p->mQuitOnFinish) { connect(this, SIGNAL(finished()), qApp, SLOT(closeAllWindows(void))); } } QtPreprocessorThread::~QtPreprocessorThread() { cerr<<"Preprocessor thread destructor...\n"; } int QtPreprocessorThread::GetCurrentThreadId() const { QThread *thread = currentThread(); for (int i=0; i < sThreads.size(); i++) if (sThreads[i] == (QtPreprocessorThread *)thread) return i+1; return 0; } } #endif #endif