Definition at line 96 of file RandomImageWindow.h. References Impala::Application::MediaTable::TableDataView::GetFilteredRows(), Impala::Application::MediaTable::TableDataViewController::GetTableDataView(), InitViews(), LoadViewImage(), Impala::Application::MediaTable::TableDataViewController::MarkToColor(), mImageColumn, and mViews. Referenced by DisplayFunc(). 00097 { 00098 if(mViews.size() != GetTableDataView()->GetFilteredRows()) 00099 InitViews(); 00100 00101 int px, py, pcol, w, h; 00102 for (int i=0; i<GetTableDataView()->GetFilteredRows(); i++) 00103 { 00104 int x, y; 00105 int col = TableDataViewController::MarkToColor(GetTableDataView()->GetMark(i)); 00106 OGLVIEW *view = mViews[i]; 00107 viewSys.SetColor(view, OGL_BORDER, col); 00108 viewSys.GetDimensions(view, &x, &y, &w, &h); 00109 00110 if(i > 0) 00111 DrawColLine(px, py, x, y, pcol, col); 00112 00113 view->im=LoadViewImage(GetTableDataView()->GetSortedQuid(mImageColumn, i)); 00114 00115 if (view->im) 00116 { 00117 view->zoomX = view->h / (float) view->im->w; 00118 view->zoomY = view->w / (float) view->im->h; 00119 } 00120 viewSys.GetDimensions(view, &px, &py, &w, &h); 00121 pcol = col; 00122 } 00123 SetSolidLineColor(oglGREEN); 00124 DrawRectangle(10, 10, 100, 100); 00125 DrawColLine (50, 50, 50, 150, oglBLUE, oglRED); 00126 00127 }
Here is the call graph for this function:
|