Changeset 2581 for GTP/trunk/Lib/Vis/Preprocessing
- Timestamp:
- 01/09/08 10:42:39 (17 years ago)
- 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 18 18 { 19 19 int mPiercingRays; 20 int mPvsSize; 20 21 }; 21 22 -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/LogWriter.cpp
r2580 r2581 34 34 ViewCellInfoContainer::const_iterator vit, vit_end = infos.end(); 35 35 36 myfile << numSamples << endl; 37 36 38 for (vit = infos.begin(); vit != vit_end; ++ vit) 37 39 { 38 myfile << (*vit).mPiercingRays; 40 myfile << (*vit).mPiercingRays << " " << (*vit).mPvsSize << endl; 41 //myfile << (*vit); 39 42 //ViewCell *vc = *vit; 40 43 //myfile << "vc: " << vc->GetPvs().GetSize() << " " << vc->GetNumPiercingRays(); -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2580 r2581 846 846 mRenderVisibilityEstimates = false; 847 847 848 mHistRecorded = false; 849 848 850 mHideByCost = false; 849 851 mUseTransparency = false; … … 1345 1347 } 1346 1348 1347 int i; 1348 1349 //mRecordHist = false; 1350 mRecordHist = true; 1351 mNextSamples = 2000000; 1349 mNextSamples = 200000; 1352 1350 1353 1351 ViewCellContainer &viewcells = mViewCellsManager->GetViewCells(); … … 1355 1353 //cout << "current samples: " << currentSamples << endl; 1356 1354 1357 if (mRecordHist && (currentSamples > mNextSamples)) 1358 { 1355 if (!mHistRecorded && (currentSamples > mNextSamples)) 1356 { 1357 mHistRecorded = true; 1358 1359 1359 //mNextSamples += SAMPLES_INCR; 1360 cout<<"************************************************" << endl;1360 cout<<"************************************************" << endl; 1361 1361 cout << "reached " << currentSamples << " samples " << " => writing file" << endl; 1362 1362 //ViewCellInfoContainer newContainer; … … 1369 1369 writer.SetFilename("compare.log"); 1370 1370 writer.Write(mNextSamples, mCurrentInfo); 1371 1371 1372 cout << "finished writing file" << endl; 1372 1373 } … … 1377 1378 ComputeMaxValues(viewcells, maxPvs, maxPiercingRays, maxRelativeRays, maxRcCost); 1378 1379 1380 int i; 1379 1381 1380 1382 if (!mShowPvsSizes && !mShowPiercingRays && !mShowWeightedRays && !mShowWeightedCost) -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.h
r2580 r2581 189 189 /// the next number of samples where we record the data 190 190 int mNextSamples; 191 bool m RecordHist;191 bool mHistRecorded; 192 192 193 193 // some statistics
Note: See TracChangeset
for help on using the changeset viewer.