Changeset 1141 for GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
- Timestamp:
- 07/18/06 19:03:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r1112 r1141 1705 1705 ViewCellContainer &viewcells = mViewCellsManager->GetViewCells(); 1706 1706 int maxPvs = -1; 1707 for (i=0; i < viewcells.size(); i++) { 1707 for (i=0; i < viewcells.size(); i++) 1708 { 1708 1709 ViewCell *vc = viewcells[i]; 1709 int p = vc->GetPvs().GetSize();1710 const int p = vc->GetPvs().CountPvs(); 1710 1711 if (p > maxPvs) 1711 1712 maxPvs = p; … … 1723 1724 c = vc->GetColor(); 1724 1725 else { 1725 float importance = (float)vc->GetPvs().GetSize() / (float)maxPvs;1726 const float importance = (float)vc->GetPvs().CountPvs() / (float)maxPvs; 1726 1727 c = RgbColor(importance, 1.0f - importance, 0.0f); 1727 1728 }
Note: See TracChangeset
for help on using the changeset viewer.