Changeset 1153 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 07/26/06 02:12:50 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BoostPreprocessorThread.cpp
r1146 r1153 25 25 Camera camera; 26 26 27 if (0) 27 cout << "here79\n"; 28 if (0) 28 29 { 29 30 // camera.LookAtBox(mPreprocessor->mKdTree->GetBox()); … … 62 63 BoostPreprocessorThread::~BoostPreprocessorThread() 63 64 { 64 cerr <<"Boost Preprocessor thread destructor...\n";65 cerr << "Boost Preprocessor thread destructor ... \n"; 65 66 DEL_PTR(mThread); 66 67 } -
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r1152 r1153 30 30 31 31 // DLL function signature 32 typedef GlRendererWidget *(*importFunction)( );32 typedef GlRendererWidget *(*importFunction)(Preprocessor *); 33 33 34 34 int LoadMyDll() … … 37 37 38 38 // Load DLL file 39 HINSTANCE hinstLib = LoadLibrary("Qt Renderer.dll");39 HINSTANCE hinstLib = LoadLibrary("QtGlRenderer.dll"); 40 40 41 41 if (hinstLib == NULL) … … 46 46 47 47 // Get function pointer 48 48 LoadRenderWidget = (importFunction)GetProcAddress(hinstLib, "LoadRenderWidget"); 49 49 50 50 if (LoadRenderWidget == NULL) … … 55 55 56 56 // load the render window 57 rendererWidget = LoadRenderWidget( );57 rendererWidget = LoadRenderWidget(preprocessor); 58 58 59 59 // Unload DLL file … … 81 81 LoadMyDll(); 82 82 83 // note matt: capsulate qt dependent code as good as possible 84 /*new GlRendererWidget(preprocessor->mSceneGraph, 85 preprocessor->mViewCellsManager, 86 preprocessor->mKdTree); 87 */ 88 rendererWidget->Show(); 89 90 #if QT_ENABLED 91 92 // create a qt application first (must be created before any opengl widget ...) 93 app = new QApplication(argc, argv); 94 95 if (!QGLFormat::hasOpenGL() || !QGLPixelBuffer::hasOpenGLPbuffers()) { 96 QMessageBox::information(0, "OpenGL pbuffers", 97 "This system does not support OpenGL/pbuffers.", 98 QMessageBox::Ok); 99 return -1; 100 } 101 102 // note matt: capsulate qt dependent code as good as possible 103 rendererWidget = 104 new GlRendererWidget(p->mSceneGraph, p->mViewCellsManager, p->mKdTree); 105 106 rendererWidget->resize(640, 480); 107 rendererWidget->show(); 108 109 if (0 && p->GetRenderer()) 110 { 111 cout<<"CONNECTING"<<endl; 112 QObject::connect(p->GetRenderer(), 113 SIGNAL(UpdatePvsErrorItem(int i, GlRendererBuffer::PvsErrorEntry &)), 114 rendererWidget->mControlWidget, 115 SLOT(UpdatePvsErrorItem(int i, 116 GlRendererBuffer::PvsErrorEntry &))); 117 118 cout<<"CONNECTED"<<endl; 119 } 120 #endif 83 //rendererWidget->Show(); 121 84 } 122 85 … … 136 99 137 100 int returnCode = 0; 138 101 139 102 InitTiming(); 140 103 … … 215 178 if (preprocessor->mUseGlRenderer || preprocessor->mUseGlDebugger) 216 179 { 180 cout << "here99" << endl; 181 // create and run the preprocessor application in a parallel thread 182 pt.InitThread(); cout << "here77" << endl; 183 //pt.RunThread(); 184 185 cout << "here51" << endl; 217 186 // display the render widget 218 187 DisplayWidget(); 219 220 // create and run the preprocessor application in a parallel thread221 pt.InitThread();222 pt.RunThread();223 188 } 224 189 else … … 227 192 pt.Main(); 228 193 } 229 230 194 cout << "here39" << endl; 231 195 Cleanup(); 232 196
Note: See TracChangeset
for help on using the changeset viewer.