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

void Impala::Visualization::RotorBrowser::RotorBrowser::SetKeepCenterCentered ( bool  centercentered  )  [inline]

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:


Generated on Thu Jan 13 09:25:49 2011 for ImpalaSrc by  doxygen 1.5.1