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

View* OglGui::ViewStrip::AddImage ( OGLIMAGE *  im,
ViewListener listener = 0 
) [inline]

Definition at line 226 of file ViewStrip.h.

References OglGui::View::GetOGLVIEW2D(), mAspectRatio, mNrIm, OglGui::OglWindow::mOglWnd, mViewListener, mViewTags, PlaceView(), SetScrollBarRange(), and OglGui::View::SetTags().

Referenced by Impala::Application::SDash::IdentificationPane::AddPositive(), Impala::Application::SDash::IdentificationPane::DisplayFunc(), Impala::Application::SDash::AlertWindow::SetSelectedImages(), and Impala::Application::SDash::AlertWindow::ToAttachments().

00227     {
00228         View        *view;
00229         OGLVIEW     *oV;
00230 
00231         if(!im) return 0;
00232 
00233         if(listener == 0 && mViewListener != 0)
00234             listener = mViewListener;
00235 
00236         view = new View(mOglWnd, im, 0, 0, 10, 10,listener);
00237         oV = view->GetOGLVIEW2D();
00238         if (oV->im && mAspectRatio <= 0)
00239             mAspectRatio = oV->im->w / (float) oV->im->h;
00240         PlaceView(oV);
00241         mNrIm++;
00242 
00243         viewSys.SetColor(oV, OGL_BORDER, oglBLACK);
00244 
00245         view->SetTags(mViewTags);
00246         SetScrollBarRange();
00247         return view;
00248     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:27:21 2011 for ImpalaSrc by  doxygen 1.5.1