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

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

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

Definition at line 88 of file TableDataSourceImageDir.h.

References mTotalRows.

00089     {
00090         double v = row / (double)mTotalRows;
00091         if (column == "red")
00092             return v;
00093         if (column == "green")
00094             return 1.0 - v;
00095         if (column == "blue") {
00096             return (row % 10) / 10.0;
00097         }
00098         return 0.0;
00099     }


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