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