Definition at line 2247 of file RotorBrowser.h. References CheckInitBrowserFirstShot(), Impala::Visualization::RotorBrowser::RotorBrowserContext::DIRECTION_DOWN, Impala::Visualization::RotorBrowser::RotorBrowserContext::DIRECTION_UP, Impala::Visualization::RotorBrowser::RotorBrowserContext::GetCenter(), GetInitBrowserThread(), GetThreadByName(), ILOG_DEBUG, M_PI, mActiveContext, mCache, mContexts, mForkLastQueryShot, Impala::Visualization::RotorBrowser::RotorBrowserContext::SetDrawDirection(), Impala::Visualization::RotorBrowser::RotorBrowserContext::SetGlobalShotSwallow(), Impala::Visualization::RotorBrowser::RotorBrowserContext::SetSwallowMode(), Impala::Visualization::RotorBrowser::RotorBrowserContext::SetSwallowThread(), Impala::Visualization::RotorBrowser::RotorBrowserContext::SWALLOW_ALL, and Impala::Visualization::RotorBrowser::RotorBrowserContext::SWALLOW_NONE. Referenced by ReloadForkBrowser(), and SetBrowseMode(). 02248 { 02249 Thread* query = GetInitBrowserThread("ForkBrowser"); 02250 if (!query) return; 02251 02252 RotorBrowserContext::SetGlobalShotSwallow(true); 02253 // FORK_TODO 02254 mForkLastQueryShot = -1; 02255 02256 int position = mActiveContext ? mActiveContext->GetCenter() : 0; 02257 if (position == 0) 02258 { 02259 if ((position = CheckInitBrowserFirstShot(query,"ForkBrowser")) < 0) 02260 return; 02261 ILOG_DEBUG("setting up ForkBrowser start position at " << position); 02262 } 02263 02264 // remove all other contexts: 02265 if (mActiveContext != NULL) 02266 delete mActiveContext; 02267 02268 RotorBrowserContextList::iterator context; 02269 for (context = mContexts.begin(); context != mContexts.end(); context++) 02270 delete (*context); 02271 mContexts.clear(); 02272 02273 Thread* threadHidden = GetThreadByName("virtual_hidden"); 02274 02275 // set vertical context (direction UP) to QUERY RESULTS: 02276 mActiveContext = 02277 new RotorBrowserContext(mCache, query, position, M_PI/2, 6); 02278 mActiveContext->SetDrawDirection(RotorBrowserContext::DIRECTION_UP); 02279 mActiveContext->SetSwallowThread(threadHidden); 02280 mActiveContext->SetSwallowMode(RotorBrowserContext::SWALLOW_ALL); 02281 02282 // set vertical context (direction DOWN) to HISTORY: 02283 Thread* threadHistory = GetThreadByName("history"); 02284 RotorBrowserContext *history = 02285 new RotorBrowserContext(mCache,threadHistory,position,M_PI/2,6); 02286 history->SetDrawDirection(RotorBrowserContext::DIRECTION_DOWN); 02287 history->SetSwallowThread(threadHidden); 02288 history->SetSwallowMode(RotorBrowserContext::SWALLOW_NONE); 02289 mContexts.push_back(history); 02290 02291 // set horizontal context to TIME RESULTS: 02292 RotorBrowserContext *time = 02293 new RotorBrowserContext(mCache,GetThreadByName("time"),position,0,6); 02294 time->SetSwallowThread(threadHidden); 02295 time->SetSwallowMode(RotorBrowserContext::SWALLOW_ALL); 02296 mContexts.push_back(time); 02297 02298 Thread* visSemGabor = GetThreadByName("visual_vissemgabor"); 02299 RotorBrowserContext *visual = 02300 new RotorBrowserContext(mCache,visSemGabor,position,M_PI/4,6); 02301 visual->SetDrawDirection(RotorBrowserContext::DIRECTION_UP); 02302 visual->SetSwallowThread(threadHidden); 02303 visual->SetSwallowMode(RotorBrowserContext::SWALLOW_ALL); 02304 mContexts.push_back(visual); 02305 02306 Thread* visSem = GetThreadByName("visual_vissem"); 02307 RotorBrowserContext *contextual = 02308 new RotorBrowserContext(mCache,visSem,position,M_PI/4+M_PI/2,6); 02309 contextual->SetDrawDirection(RotorBrowserContext::DIRECTION_UP); 02310 contextual->SetSwallowThread(threadHidden); 02311 contextual->SetSwallowMode(RotorBrowserContext::SWALLOW_ALL); 02312 mContexts.push_back(contextual); 02313 }
Here is the call graph for this function:
|