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

virtual void Impala::Visualization::GUI::PreviewBar::UpdateBackgroundColor (  )  [inline, protected, virtual]

Definition at line 115 of file PreviewBar.h.

References mChecked, mHighlighted, mType, and OglGui::OglWindow::SetBorderBackground().

Referenced by CheckBoxEvent(), Init(), SetHighlight(), and SetType().

00116     {
00117         int clr, check, highlight;
00118 
00119         check       = 0x009F0000;
00120         highlight   = 0x00000080;
00121         
00122         switch (mType) {
00123             case 0: // unknown/undefined
00124                 clr =       0xff101010;              break;
00125             case 1: // 39 trecvid concepts
00126                 clr =       0xFF408060;              break;
00127             case 2: // MM concepts
00128                 clr =       0xFF406080;              break;
00129             case 3: // LSCOM
00130                 clr =       0xFF406060;              break;
00131             case 4: // LSCOM duplicates
00132                 clr =       0xFF404040;              break;
00133             case 10: // ShotResult set
00134                 clr =       0xff603060;              break;
00135             case 11: // KeyframeResult set
00136                 clr =       0xff602060;              break;
00137             default: // more unknown/undefined
00138                 clr =       0xff7f7f7f;              break;
00139         }
00140 
00141         if (mHighlighted)
00142             clr += highlight;
00143 
00144         if (mChecked)
00145             clr += check;
00146 
00147         SetBorderBackground(clr);
00148     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:52:08 2010 for ImpalaSrc by  doxygen 1.5.1