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

void OglGui::ConceptSupportControl::Init ( int  w,
int  h 
) [inline, private]

Definition at line 79 of file ConceptSupportControl.h.

References CmdButton(), cNrOfColors, ColorButton(), mColorButtons, mColorIndex, mColors, mColorStrings, mHideButton, mSelectButton, mSetButton, mShowButton, mUnSelectButton, mViewerPointCloud, OglGui::StaticText::SetAlign(), OglGui::Button::SetButtonListener(), and OglGui::OglWindow::W().

00080     {
00081         mViewerPointCloud = 0;
00082 
00083         mColorIndex = 0;
00084         mColors[0] = 0xffff0000;
00085         mColors[1] = 0xffff8000;
00086         mColors[2] = 0xff800000;
00087         mColors[3] = 0xffffff00;
00088         mColors[4] = 0xff0000ff;
00089         mColors[5] = 0xff8080ff;
00090         mColors[6] = 0xff800080;
00091         mColors[7] = 0xffff00ff;
00092 
00093         // Color buttons
00094         for (int i=0; i<cNrOfColors; i++)
00095         {
00096             char    buf[100];
00097             mColorButtons[i] = ColorButton(this, 4, 4+i*20, 16, 16, mColors[i]);
00098             mColorButtons[i]->SetButtonListener(this, i);
00099             sprintf(buf, "Set %d info string", 8-i);
00100             mColorStrings[i] = new StaticText(this,20, 4+i*20, W()-24, 16, buf);
00101             mColorStrings[i]->SetAlign(oglLeftAlign, oglCenterAlign);
00102         }
00103 
00104         // Command Buttons
00105         int btnY = 4 + cNrOfColors*20;
00106         int cmdNr = cNrOfColors;
00107         mSetButton = CmdButton(4, btnY, 40, 20, "Set", cmdNr);
00108         mShowButton = CmdButton(48, btnY, 40, 20, "Show", cmdNr+1);
00109         mHideButton = CmdButton(92, btnY, 40, 20, "Hide", cmdNr+2);
00110         mSelectButton = CmdButton(142, btnY, 24, 20, "Un", cmdNr+3);
00111         mUnSelectButton = CmdButton(166, btnY, 60, 20, "Select", cmdNr+4);
00112     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:00:29 2010 for ImpalaSrc by  doxygen 1.5.1