Changeset 1153 for GTP/trunk/Lib/Vis
- Timestamp:
- 07/26/06 02:12:50 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreVisibilitySceneManagerDll.cpp
r1151 r1153 71 71 { 72 72 //delete heightmapTerrainPageSource; 73 74 73 // BUG: crashes on delete!!!! FIX this 75 74 76 75 //delete visibilityTerrainPlugin; 77 76 delete occlusionCullingPlugin; 78 77 -
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 -
GTP/trunk/Lib/Vis/QtRenderer/QtRenderer.vcproj
r1151 r1153 3 3 ProjectType="Visual C++" 4 4 Version="7.10" 5 Name="Qt Renderer"5 Name="QtGlRenderer" 6 6 ProjectGUID="{B85DC7B1-58B6-4912-BD64-8B452630A368}" 7 7 Keyword="Win32Proj"> … … 82 82 Name="VCLinkerTool" 83 83 AdditionalDependencies="Preprocessor.lib qtmain.lib QtGui4.lib Qt3Support4.lib QAxContainer.lib QtCore4.lib QtOpenGL4.lib xerces-c_2.lib glew32.lib OpenGL32.Lib glu32.lib cg.lib cgGL.lib" 84 OutputFile="$(OutDir)/Qt Renderer.dll"84 OutputFile="$(OutDir)/QtGlRenderer.dll" 85 85 LinkIncremental="1" 86 86 AdditionalLibraryDirectories=""$(QTDIR)\lib";..\..\..\..\..\NonGTP\Zlib\lib;"$(CG_LIB_PATH)";"..\Preprocessing\lib\$(ConfigurationName)";..\Preprocessing\src\GL;..\..\..\..\..\NonGTP\Xerces\xercesc\lib" … … 94 94 Name="VCMIDLTool"/> 95 95 <Tool 96 Name="VCPostBuildEventTool"/> 96 Name="VCPostBuildEventTool" 97 CommandLine="copy $(OutDir)\$(TargetFileName) $(OutDir)\..\..\Preprocessing\scripts"/> 97 98 <Tool 98 99 Name="VCPreBuildEventTool"/> … … 127 128 </File> 128 129 <File 129 RelativePath=".\Qt RendererDll.cpp">130 RelativePath=".\QtGlRendererDll.cpp"> 130 131 </File> 131 132 </Filter> … … 141 142 Name="VCCustomBuildTool" 142 143 Description="Performing moc on $(InputName).h" 143 CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp" 144 CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp 145 " 144 146 Outputs="$(InputDir) moc_$(InputName).cpp"/> 145 147 </FileConfiguration>
Note: See TracChangeset
for help on using the changeset viewer.