Changeset 991 for GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
- Timestamp:
- 05/29/06 18:54:02 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r878 r991 28 28 int 29 29 main(int argc, char **argv) 30 { 31 30 {QApplication *app = new QApplication(argc, argv); 31 32 cout << "here222237" << endl; 32 33 //Now just call this function at the start of your program and if you're 33 34 //compiling in debug mode (F5), any leaks will be displayed in the Output … … 38 39 _CrtSetReportMode(_CRT_ASSERT,_CRTDBG_MODE_FILE); 39 40 _CrtSetReportFile(_CRT_ASSERT,_CRTDBG_FILE_STDERR); 40 41 Debug.open("debug.log"); 41 cout << "here3" << endl; 42 Debug.open("debug.log");cout << "here2" << endl; 42 43 environment = new Environment; 44 cout << "here122223" << endl; cout.flush(); 43 45 environment->Parse(argc, argv, USE_EXE_PATH); 44 46 MeshKdTree::ParseEnvironment(); 45 47 cout << "here222283" << endl; 46 48 char buff[128]; 47 49 environment->GetStringValue("Preprocessor.type", buff); … … 49 51 50 52 Preprocessor *p; 51 53 cout << "here22223" << endl; 52 54 if (preprocessorType == "vss") 55 {cout << "here223" << endl; 53 56 p = new VssPreprocessor(); 57 } 54 58 else 55 59 if (preprocessorType == "rss") … … 63 67 else 64 68 if (preprocessorType == "render") 69 { 70 cout << "here23" << endl; 65 71 p = new RenderSampler(); 72 } 66 73 else { 67 74 cerr<<"Unknown preprocessor type"<<endl; … … 70 77 } 71 78 72 73 QApplication *app = NULL;79 80 //QApplication *app = NULL; 74 81 75 82 if (p->mUseGlRenderer || p->mUseGlDebugger) { 83 cout << "here1111" << endl; 76 84 // create a qt application first (must be created before any opengl widget... 77 app = new QApplication(argc, argv);78 85 //app = new QApplication(argc, argv); 86 cout << "here1112" << endl; 79 87 if (!QGLFormat::hasOpenGL() || !QGLPixelBuffer::hasOpenGLPbuffers()) { 88 cout << "here1133" << endl;cout.flush(); 80 89 QMessageBox::information(0, "OpenGL pbuffers", 81 90 "This system does not support OpenGL/pbuffers.", … … 83 92 return -1; 84 93 } 94 cout << "here1119" << endl; 85 95 } 86 96 cout << "here1123" << endl; 87 97 preprocessor = p; 88 98 … … 93 103 p->BuildKdTree(); 94 104 p->KdTreeStatistics(cout); 95 105 cout << "here1199" << endl; 96 106 // parse view cells related options 97 107 p->PrepareViewCells(); 98 108 99 109 cout << "here1117" << endl; 100 110 // create a preprocessor thread 101 111 PreprocessorThread *pt = new PreprocessorThread(p, app); … … 106 116 p->Export(filename + "-kdtree.x3d", false, true, false); 107 117 } 108 118 cout << "here1118" << endl; 109 119 if (p->mUseGlRenderer) { 110 120 cout << "here1114" << endl; 111 121 rendererWidget = new GlRendererWidget(p->mSceneGraph, p->mViewCellsManager, p->mKdTree); 112 122 // renderer->resize(640, 480); 123 cout << "here1115" << endl; 113 124 rendererWidget->resize(640, 480); 114 125 rendererWidget->show(); 115 126 cout << "here1113" << endl; 116 127 if (p->GetRenderer()) { 117 128
Note: See TracChangeset
for help on using the changeset viewer.