Definition at line 84 of file TableOverviewWindow.h. References Impala::Application::MediaTable::TableDataView::GetMark(), ILOG_DEBUG, MarkToColor(), mPixelCacheSynced, mSelPixelCache, mSource, and PixelToRows(). Referenced by DisplayFunc(). 00085 { 00086 mSelPixelCache.clear(); 00087 00088 if (height < mSource->GetFilteredRows()) 00089 { 00090 ILOG_DEBUG("Updating selection cache..."); 00091 // more rows than pixels: sample the rows 00092 for (int pixelrow = 0; pixelrow < height; pixelrow++) 00093 { 00094 int start, stop; 00095 PixelToRows(pixelrow, &start, &stop); 00096 unsigned long avgcol = 0; 00097 for (int y=start; y<=stop; y++) 00098 { 00099 int mark = mSource->GetMark(y); 00100 if (mark) 00101 { 00102 avgcol = MarkToColor(mark); 00103 break; // only take first color found,instead of average 00104 } 00105 } 00106 00107 mSelPixelCache.push_back(avgcol); 00108 } 00109 mPixelCacheSynced = true; 00110 } 00111 }
Here is the call graph for this function:
|