Definition at line 72 of file RotorBrowserContext.h. References CalculateCoordinates(), DIRECTION_DOWN, DIRECTION_UP, Impala::Visualization::RotorBrowser::RotorView::DisableVideoStills(), GetRelative(), Impala::Visualization::RotorBrowser::RotorViewCache::GetViewedProbability(), Impala::Visualization::RotorBrowser::RotorViewCache::GetViewFor(), ILOG_DEBUG, mCache, mContextName, mDepth, mDrawDirection, mHighResDistance, Impala::Visualization::RotorBrowser::RotorView::MoveTo(), sAutoNegatives, Impala::Visualization::RotorBrowser::RotorView::SetShowHighResolution(), Impala::Visualization::RotorBrowser::RotorView::SetViewedProbability(), Impala::Visualization::RotorBrowser::RotorViewCache::ShotIsViewed(), and ThreadValid(). Referenced by UpdateViewsToContext(), and Impala::Visualization::RotorBrowser::RotorBrowser::UpdateViewsToContext(). 00073 { 00074 if (!ThreadValid()) 00075 return; 00076 00077 ILOG_DEBUG("UpdateViewsToContext for " << mContextName); 00078 int start = (mDrawDirection == DIRECTION_UP ? 0 : -mDepth); 00079 int stop = (mDrawDirection == DIRECTION_DOWN ? 0 : mDepth); 00080 for (int i=start; i<=stop; i++) 00081 { 00082 if (i==0 && !showCenter) continue; 00083 int item = GetRelative(i); 00084 if (item < 0) continue; 00085 RotorView *v = mCache->GetViewFor(mContextName, item); 00086 00087 if (i!=0 && v) // RvB: Added in support of global EnableVideoStills 00088 v->DisableVideoStills(); 00089 00090 float x,y,z,w,h; 00091 CalculateCoordinates(x,y,z,w,h,i); 00092 v->MoveTo(x,y,z,w,h); 00093 00094 // update probability of shot viewed indexes 00095 // this depends on the distance to the center, given by i 00096 if (sAutoNegatives) 00097 { 00098 int absI = abs(i); 00099 float prob = absI==0 ? 0.4 : (absI==1 ? 0.1 : 0.04); 00100 mCache->ShotIsViewed(item,prob); 00101 v->SetViewedProbability(mCache->GetViewedProbability(item)); 00102 } 00103 bool highRes = (i >= -mHighResDistance && i <= mHighResDistance); 00104 v->SetShowHighResolution(highRes); 00105 } 00106 }
Here is the call graph for this function:
|