Changeset 2570 for GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Timestamp:
- 12/18/07 09:04:41 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2569 r2570 1180 1180 } 1181 1181 1182 1182 #if 0 1183 1183 float QtGlRendererWidget::ComputeRenderCost(ViewCell *vc) 1184 1184 { … … 1221 1221 return renderCost; 1222 1222 } 1223 1223 #else 1224 1225 float QtGlRendererWidget::ComputeRenderCost(ViewCell *vc) 1226 { 1227 float renderCost = 0; 1228 1229 if (mShowDistanceWeightedPvs) 1230 { 1231 return vc->GetPvs().mStats.mDistanceWeightedPvs; 1232 } 1233 else if (mShowDistanceWeightedTriangles) 1234 { 1235 return vc->GetPvs().mStats.mDistanceWeightedTriangles; 1236 } 1237 else //if (mShowWeightedTriangles) 1238 { 1239 return vc->GetPvs().mStats.mWeightedTriangles; 1240 } 1241 } 1242 #endif 1224 1243 1225 1244 void … … 1374 1393 else if (mShowWeightedCost) 1375 1394 { 1376 const float rcCost = mTransferFunction * vc->GetTrianglesInPvs();1395 const float rcCost = mTransferFunction * ComputeRenderCost(vc); 1377 1396 importance = rcCost / maxRcCost; 1378 1397 }
Note: See TracChangeset
for help on using the changeset viewer.