Ignore:
Timestamp:
01/09/08 10:42:39 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/LogReader.h

    r2580 r2581  
    1818{ 
    1919        int mPiercingRays; 
     20        int mPvsSize; 
    2021}; 
    2122 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/LogWriter.cpp

    r2580 r2581  
    3434        ViewCellInfoContainer::const_iterator vit, vit_end = infos.end(); 
    3535 
     36        myfile << numSamples << endl; 
     37 
    3638        for (vit = infos.begin(); vit != vit_end; ++ vit) 
    3739        { 
    38                 myfile << (*vit).mPiercingRays; 
     40                myfile << (*vit).mPiercingRays << " " << (*vit).mPvsSize << endl; 
     41                //myfile << (*vit); 
    3942                //ViewCell *vc = *vit; 
    4043                //myfile << "vc: " << vc->GetPvs().GetSize() << " " << vc->GetNumPiercingRays(); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp

    r2580 r2581  
    846846        mRenderVisibilityEstimates = false; 
    847847 
     848        mHistRecorded = false; 
     849 
    848850        mHideByCost = false; 
    849851        mUseTransparency = false; 
     
    13451347        } 
    13461348 
    1347         int i; 
    1348  
    1349         //mRecordHist = false; 
    1350         mRecordHist = true; 
    1351         mNextSamples = 2000000; 
     1349        mNextSamples = 200000; 
    13521350 
    13531351        ViewCellContainer &viewcells = mViewCellsManager->GetViewCells(); 
     
    13551353        //cout << "current samples: " << currentSamples << endl; 
    13561354 
    1357         if (mRecordHist && (currentSamples > mNextSamples)) 
    1358         { 
     1355        if (!mHistRecorded && (currentSamples > mNextSamples)) 
     1356        { 
     1357                mHistRecorded = true; 
     1358 
    13591359                //mNextSamples += SAMPLES_INCR; 
    1360 cout<<"************************************************" << endl; 
     1360                cout<<"************************************************" << endl; 
    13611361                cout << "reached " << currentSamples << " samples " << " => writing file" << endl; 
    13621362                //ViewCellInfoContainer newContainer; 
     
    13691369                writer.SetFilename("compare.log"); 
    13701370                writer.Write(mNextSamples, mCurrentInfo); 
     1371 
    13711372                cout << "finished writing file" << endl; 
    13721373        } 
     
    13771378        ComputeMaxValues(viewcells, maxPvs, maxPiercingRays, maxRelativeRays, maxRcCost); 
    13781379 
     1380        int i; 
    13791381 
    13801382        if (!mShowPvsSizes && !mShowPiercingRays && !mShowWeightedRays && !mShowWeightedCost) 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.h

    r2580 r2581  
    189189        /// the next number of samples where we record the data 
    190190        int mNextSamples; 
    191         bool mRecordHist; 
     191        bool mHistRecorded; 
    192192 
    193193        // some statistics 
Note: See TracChangeset for help on using the changeset viewer.