Ignore:
Timestamp:
10/07/06 22:54:13 (18 years ago)
Author:
bittner
Message:

Qtglwidget changes - second view + trackball - ray casting seems not functional

File:
1 edited

Legend:

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

    r1570 r1581  
    428428        if (mLoadViewCells) 
    429429        {        
    430                 Environment::GetSingleton()->GetStringValue("ViewCells.filename", buf); 
    431                 cout << "loading view cells from " << buf << endl; 
    432                  
    433                 mViewCellsManager = ViewCellsManager::LoadViewCells(buf, &mObjects, true); 
    434  
    435                 if (!mViewCellsManager) 
    436                         return false; 
     430          Environment::GetSingleton()->GetStringValue("ViewCells.filename", buf); 
     431          cout << "loading view cells from " << buf << endl; 
     432           
     433          mViewCellsManager = ViewCellsManager::LoadViewCells(buf, &mObjects, true); 
     434           
     435          if (!mViewCellsManager) 
     436                return false; 
    437437        } 
    438438        else 
     
    488488 
    489489        mViewCellsManager->SetRenderer(mRenderSimulator); 
    490  
     490         
    491491        if (mUseGlRenderer || mUseGlDebugger) 
    492         { 
     492          { 
    493493                // NOTE: render texture should be power of 2 and square 
    494494                // renderer must be initialised 
    495495                // $$matt 
    496 //              renderer = new GlRendererBuffer(1024, 768, mSceneGraph, mViewCellsManager, mKdTree); 
     496                //              renderer = new GlRendererBuffer(1024, 768, mSceneGraph, mViewCellsManager, mKdTree); 
    497497                //              renderer->makeCurrent(); 
    498498                 
    499         } 
    500          
     499          } 
     500 
     501        mViewCellsManager->SetPreprocessor(this); 
    501502        return true; 
    502503} 
     
    505506bool Preprocessor::ConstructViewCells() 
    506507{ 
    507         // construct view cells using it's own set of samples 
    508         mViewCellsManager->Construct(this); 
    509  
    510         // visualizations and statistics 
    511         Debug << "finished view cells:" << endl; 
    512         mViewCellsManager->PrintStatistics(Debug); 
    513              
    514         return true; 
     508  // construct view cells using it's own set of samples 
     509  mViewCellsManager->Construct(this); 
     510   
     511  // visualizations and statistics 
     512  Debug << "finished view cells:" << endl; 
     513  mViewCellsManager->PrintStatistics(Debug); 
     514   
     515  return true; 
    515516} 
    516517 
     
    900901        } 
    901902 
     903        if (i % 10000 == 0) 
     904                cout<<"."; 
     905 
    902906#if DEBUB_RAYCAST 
    903907        long t2 = GetTime(); 
    904         if (i % 10000 == 0) 
    905                 cout<<"."; 
    906  
    907908        if (castDoubleRays) 
    908909                cout << 2 * rays.size() / (1e3f * TimeDiff(t1, t2)) << "M rays/s" << endl; 
Note: See TracChangeset for help on using the changeset viewer.