Definition at line 1252 of file RotorBrowser.h. References mActiveContext, mBrowseMode, mEnableShotSwallow, mKeepCenterCentered, MODE_FORKBROWSER, Impala::Visualization::RotorBrowser::RotorBrowserContext::SetGlobalShotSwallow(), Impala::Visualization::RotorBrowser::RotorBrowserContext::SetSwallowMode(), ShowStatusStr(), and Impala::Visualization::RotorBrowser::RotorBrowserContext::SWALLOW_ALL. Referenced by StdKeyboardFunc(). 01253 { 01254 if (mBrowseMode==MODE_FORKBROWSER) 01255 { 01256 ShowStatusStr("Center shot stays in center", 01257 "N/A in ForkBrowser mode", 0xffdddd22); 01258 return; 01259 } 01260 mKeepCenterCentered = centercentered; 01261 ShowStatusStr("Center Shot stays in center", mKeepCenterCentered); 01262 01263 // keep center centered func will only work with shot swallow enabled. 01264 if (mKeepCenterCentered) 01265 { 01266 RotorBrowserContext::SetGlobalShotSwallow(true); 01267 if (mActiveContext) // HACK! Should not be required. 01268 mActiveContext->SetSwallowMode(RotorBrowserContext::SWALLOW_ALL); 01269 } 01270 else 01271 RotorBrowserContext::SetGlobalShotSwallow(mEnableShotSwallow); 01272 }
Here is the call graph for this function:
|