Ignore:
Timestamp:
05/29/06 18:54:02 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp

    r878 r991  
    2828int 
    2929main(int argc, char **argv) 
    30 { 
    31          
     30{QApplication *app = new QApplication(argc, argv); 
     31 
     32        cout << "here222237" << endl; 
    3233//Now just call this function at the start of your program and if you're 
    3334//compiling in debug mode (F5), any leaks will be displayed in the Output 
     
    3839    _CrtSetReportMode(_CRT_ASSERT,_CRTDBG_MODE_FILE); 
    3940    _CrtSetReportFile(_CRT_ASSERT,_CRTDBG_FILE_STDERR);  
    40  
    41   Debug.open("debug.log"); 
     41cout << "here3" << endl; 
     42  Debug.open("debug.log");cout << "here2" << endl; 
    4243  environment = new Environment; 
     44  cout << "here122223" << endl; cout.flush(); 
    4345  environment->Parse(argc, argv, USE_EXE_PATH); 
    4446  MeshKdTree::ParseEnvironment(); 
    45  
     47cout << "here222283" << endl; 
    4648  char buff[128]; 
    4749  environment->GetStringValue("Preprocessor.type", buff); 
     
    4951         
    5052  Preprocessor *p; 
    51  
     53cout << "here22223" << endl; 
    5254  if (preprocessorType == "vss") 
     55  {cout << "here223" << endl; 
    5356        p = new VssPreprocessor(); 
     57  } 
    5458  else 
    5559        if (preprocessorType == "rss") 
     
    6367                else 
    6468                  if (preprocessorType == "render") 
     69                  { 
     70                          cout << "here23" << endl; 
    6571                        p = new RenderSampler(); 
     72                  } 
    6673                  else { 
    6774                        cerr<<"Unknown preprocessor type"<<endl; 
     
    7077                  } 
    7178   
    72  
    73   QApplication *app = NULL; 
     79  
     80  //QApplication *app = NULL; 
    7481 
    7582  if (p->mUseGlRenderer || p->mUseGlDebugger) { 
     83          cout << "here1111" << endl; 
    7684        // 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; 
    7987        if (!QGLFormat::hasOpenGL() || !QGLPixelBuffer::hasOpenGLPbuffers()) { 
     88                cout << "here1133" << endl;cout.flush(); 
    8089          QMessageBox::information(0, "OpenGL pbuffers",  
    8190                                                           "This system does not support OpenGL/pbuffers.", 
     
    8392          return -1; 
    8493        } 
     94          cout << "here1119" << endl; 
    8595  } 
    86    
     96   cout << "here1123" << endl; 
    8797  preprocessor = p; 
    8898   
     
    93103  p->BuildKdTree(); 
    94104  p->KdTreeStatistics(cout); 
    95    
     105   cout << "here1199" << endl; 
    96106  // parse view cells related options 
    97107  p->PrepareViewCells(); 
    98108   
    99  
     109 cout << "here1117" << endl; 
    100110  // create a preprocessor thread 
    101111  PreprocessorThread *pt = new PreprocessorThread(p, app); 
     
    106116    p->Export(filename + "-kdtree.x3d", false, true, false);     
    107117  } 
    108  
     118 cout << "here1118" << endl; 
    109119  if (p->mUseGlRenderer) { 
    110          
     120          cout << "here1114" << endl; 
    111121        rendererWidget = new GlRendererWidget(p->mSceneGraph, p->mViewCellsManager, p->mKdTree); 
    112122        //  renderer->resize(640, 480); 
     123         cout << "here1115" << endl; 
    113124        rendererWidget->resize(640, 480); 
    114125        rendererWidget->show(); 
    115          
     126          cout << "here1113" << endl; 
    116127        if (p->GetRenderer()) { 
    117128           
Note: See TracChangeset for help on using the changeset viewer.