Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

virtual double Impala::Application::MediaTable::TableDataSourceFlickrPhotoList::GetNormalizedDataByID ( String  column,
int  row 
) [inline, virtual]

Reimplemented from Impala::Application::MediaTable::TableDataSource.

Definition at line 54 of file TableDataSourceFlickrPhotoList.h.

References Impala::atof(), GetTextDataByID(), and mTotalRows.

00055     {
00056         double v = row / (double)mTotalRows;
00057         if (column == "red")
00058             return v;
00059         if (column == "green")
00060             return 1.0 - v;
00061         if (column == "blue") {
00062             return (row % 10) / 10.0;
00063         }
00064 
00065         return atof(GetTextDataByID(column, row));
00066     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:15:28 2011 for ImpalaSrc by  doxygen 1.5.1