Definition at line 39 of file IdentificationPane.h. References OglGui::ViewStrip::AspectRatio(), OglGui::OglWindow::GetOGLWND(), OglGui::ViewStrip::LayoutViews(), mClearPositives, mClearSimilars, mPositivesViewStrip, mSelectedToPositives, mSimilarLoadingId, mSimilarsViewStrip, mViewInfoText, Impala::Application::DemoCamera2d::oglWnd, OglGui::Window::ScaleChildren(), OglGui::OglWindow::ScaleTo(), OglGui::StaticText::SetAlign(), OglGui::Button::SetButtonListener(), OglGui::DirectionButton::SetDirectionFeedback(), OglGui::Window::SetForeground(), OglGui::ViewStrip::SetImagesListener(), OglGui::ViewStrip::SetMargin(), OglGui::ViewStrip::SetViewTags(), OglGui::Window::SetWindowListener(), and OglGui::ViewStrip::Spacing(). 00045 : OglGui::GroupBox(parent, x, y, w, h, label, borderType) 00046 , mVideos(videos) 00047 , mRoiLoader(RoiLoader(roiPath)) 00048 { 00049 mSimilarLoadingId = 0; 00050 StaticText* sText; 00051 sText = new StaticText(this, 4, h-22, w-8, 20, "Similars"); 00052 sText->SetAlign(oglLeftAlign, oglCenterAlign); 00053 00054 Button* infoBtn = new Button(this, w/2-22, h-23, 44, 20, "info", 00055 BEV_ETCHED,true); 00056 infoBtn->SetButtonListener(this,0); 00057 00058 mClearSimilars = new Button(this, w-50, h-23, 46, 20, "clear", 00059 BEV_ETCHED,true); 00060 mClearSimilars->SetButtonListener(this,1); 00061 00062 OGLWND* oglWnd; 00063 mSimilarsViewStrip = new ViewStrip(this,4,h/2,w-8,h/2-24); 00064 mSimilarsViewStrip->AspectRatio(0.5f); 00065 mSimilarsViewStrip->SetMargin(6); 00066 mSimilarsViewStrip->Spacing(6); 00067 mSimilarsViewStrip->SetViewTags((FlexViewTags) & ~movableTag); 00068 mSimilarsViewStrip->LayoutViews(); 00069 oglWnd = mSimilarsViewStrip->GetOGLWND(); 00070 oglSys.AllowPicking(oglWnd, 1,1); 00071 oglSys.AllowDeleteView(oglWnd, 1); 00072 oglSys.SetAllMouseMotion(oglWnd,1); 00073 00074 mSimilarsViewStrip->SetImagesListener(this); 00075 mSimilarsViewStrip->SetWindowListener(this, 1); 00076 00077 sText = new StaticText(this, 4, h/2-20, w/2, 20, "Positives"); 00078 sText->SetAlign(oglLeftAlign, oglCenterAlign); 00079 mPositivesViewStrip = new ViewStrip(this,4,4,w-8,h/2-24); 00080 mPositivesViewStrip->AspectRatio(0.5); 00081 mPositivesViewStrip->SetMargin(6); 00082 mPositivesViewStrip->Spacing(6); 00083 mPositivesViewStrip->LayoutViews(); 00084 oglWnd = mPositivesViewStrip->GetOGLWND(); 00085 oglSys.AllowPicking(oglWnd, 1,1); 00086 oglSys.SetAllMouseMotion(oglWnd,1); 00087 mPositivesViewStrip->ScaleTo(this); 00088 mPositivesViewStrip->SetImagesListener(this); 00089 mPositivesViewStrip->SetWindowListener(this, 2); 00090 00091 mClearPositives = new Button(this, w-50, h/2-20, 46, 20, "clear", 00092 BEV_ETCHED,true); 00093 mClearPositives->SetButtonListener(this,2); 00094 00095 mSelectedToPositives = 00096 new DirectionButton(this,w/2-10,h/2-20,20,20,3,BEV_ETCHED); 00097 mSelectedToPositives->SetDirectionFeedback(true); 00098 mSelectedToPositives->SetButtonListener(this,3); 00099 00100 mViewInfoText = new StaticText(this,100,h-22,200,20,""); 00101 mViewInfoText->SetForeground(0xff808080); 00102 00103 00104 ScaleChildren(); 00105 }
Here is the call graph for this function:
|