Definition at line 2213 of file RotorBrowser.h. References CheckInitBrowserFirstShot(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetCenter(), GetInitBrowserThread(), GetThreadByName(), ILOG_DEBUG, M_PI, mActiveContext, mCache, mContexts, Impala::Visualization::RotorBrowser::RotorBrowserContext::SetSwallowMode(), Impala::Visualization::RotorBrowser::RotorBrowserContext::SetSwallowThread(), and Impala::Visualization::RotorBrowser::RotorBrowserContext::SWALLOW_ALL. Referenced by ReloadCrossBrowser(), and SetBrowseMode(). 02214 { 02215 Thread* query = GetInitBrowserThread("CrossBrowser"); 02216 if (!query) return; 02217 02218 int pos = mActiveContext ? mActiveContext->GetCenter() : 0; 02219 if (pos == 0) 02220 { 02221 if ((pos = CheckInitBrowserFirstShot(query,"CrossBrowser")) < 0) 02222 return; 02223 if (startposition >= 0) 02224 pos = startposition; 02225 ILOG_DEBUG("setting up CrossBrowser start position at " << pos); 02226 } 02227 02228 if (mActiveContext != NULL) 02229 delete mActiveContext; 02230 02231 RotorBrowserContextList::iterator context; 02232 for (context=mContexts.begin(); context!=mContexts.end(); context++) 02233 delete (*context); 02234 mContexts.clear(); 02235 02236 mActiveContext = new RotorBrowserContext(mCache,query,pos,M_PI/2,6); 02237 mActiveContext->SetSwallowThread(GetThreadByName("virtual_hidden")); 02238 mActiveContext->SetSwallowMode(RotorBrowserContext::SWALLOW_ALL); 02239 02240 RotorBrowserContext *time = 02241 new RotorBrowserContext(mCache,GetThreadByName("time"),pos,0.0,6); 02242 time->SetSwallowThread(GetThreadByName("virtual_hidden")); 02243 time->SetSwallowMode(RotorBrowserContext::SWALLOW_ALL); 02244 mContexts.push_back(time); 02245 }
Here is the call graph for this function:
|