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

OGLIMAGE* OglGui::ViewerPointCloud::LoadViewImage ( ViewerPoint vp  )  [inline]

Definition at line 59 of file ViewerPointCloud.h.

References OglGui::ViewerPoint::GetId(), OglGui::OglImageCache::GetImage(), OglGui::GetOglImageByIdInterface::GetOglImageById(), mCacheHits, mCacheMisses, mGetOglImageByIdI, and mOglImageCache.

Referenced by HandleMouseOver(), HandleViewDisplay(), and LoadViewImage().

00060     {
00061         if (!vp || !mGetOglImageByIdI)
00062             return 0;
00063 
00064         OGLIMAGE* im = 0;
00065         long long id = vp->GetId();
00066         if (mOglImageCache)
00067         {
00068             im = mOglImageCache->GetImage(id);
00069             im ? mCacheHits++ : mCacheMisses++;
00070         }
00071 
00072         if (!im && (im = mGetOglImageByIdI->GetOglImageById(id)))
00073             if (mOglImageCache)
00074                 mOglImageCache->Add(im, id);
00075         return im;
00076     }

Here is the call graph for this function:


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