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

OGLIMAGE* Impala::Application::MediaTable::ImageLoader::GetOglImageById ( long long  id  )  [inline, virtual]

Reimplemented from OglGui::GetOglImageByIdInterface.

Definition at line 71 of file ImageLoader.h.

References OglGui::GetOglImageByIdInterface::GetOglImageById(), ILOG_DEBUG, mGetOglImageById, and Impala::Visualization::RgbOglImage::OglImage().

Referenced by Impala::Application::MediaTable::MediaTable::Init().

00072         {
00073 #ifdef USE_BOOST_THREAD
00074         Core::Array::Array2dVec3UInt8* emptyArray;
00075         emptyArray = Core::Array::ArrayCreate<Core::Array::Array2dVec3UInt8>(0, 0, 0, 0, 0, true);
00076         OGLIMAGE* oglIm = Visualization::RgbOglImage::OglImage(emptyArray);
00077                 // OGLIMAGE* oglIm = oglSys.OglImage(GL_RGB, 0, 0);
00078 
00079                 // Make sure image does not get destroyed while loading.
00080                 // Comparable to locking the image. Lock is released when
00081                 // image is loaded or loading failed.
00082                 oglIm->refCount++;
00083                 
00084         Worker worker = Worker(oglIm, mGetOglImageById, id);
00085 #ifdef USE_BOOST_THREADPOOL
00086         mThreadPool.schedule(worker);
00087 #else
00088         boost::thread work(worker);
00089 #endif
00090 
00091 #else
00092         OGLIMAGE* oglIm = mGetOglImageById->GetOglImageById(id);
00093 #endif
00094         if(oglIm != 0)
00095                 ILOG_DEBUG("Returning image of " << oglIm->w << "x" << oglIm->h <<" pixels at " << oglIm);
00096         return oglIm;
00097         }

Here is the call graph for this function:


Generated on Fri Mar 19 10:42:50 2010 for ImpalaSrc by  doxygen 1.5.1