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

virtual void Impala::Visualization::RotorBrowser::BrowserControl::ButtonSelectionEvent ( Button src,
void *  vData 
) [inline, virtual]

Reimplemented from OglGui::ButtonListener.

Definition at line 38 of file RotorBrowserControl.h.

References Impala::Visualization::RotorBrowser::RotorBrowser::GetActiveHorizontal(), Impala::Visualization::RotorBrowser::RotorBrowser::GetEnableShotSwallow(), Impala::Visualization::RotorBrowser::RotorBrowser::GetShowDirection(), ILOG_USER, mBrowser, Impala::Visualization::RotorBrowser::RotorBrowser::MODE_CROSSBROWSER, Impala::Visualization::RotorBrowser::RotorBrowser::MODE_ROTORBROWSER, Impala::Visualization::RotorBrowser::RotorBrowser::SetActiveHorizontal(), Impala::Visualization::RotorBrowser::RotorBrowser::SetBrowseMode(), Impala::Visualization::RotorBrowser::RotorBrowser::SetEnableShotSwallow(), Impala::Visualization::RotorBrowser::RotorBrowser::SetShowDirection(), and Impala::Visualization::RotorBrowser::RotorBrowser::UpdateViewsToContext().

00039     {
00040         //char buf[150];
00041         int userData = (int)(long long) vData;
00042         switch (userData) {
00043             case 1:
00044                 ILOG_USER("BUTTON: switch browser to CrossBrowser");
00045                 mBrowser->SetBrowseMode(RotorBrowser::MODE_CROSSBROWSER);
00046                 break;
00047             case 2:
00048                 ILOG_USER("BUTTON: switch browser to RotorBrowser");
00049                 mBrowser->SetBrowseMode(RotorBrowser::MODE_ROTORBROWSER);
00050                 break;
00051             case 3:
00052                 mBrowser->SetEnableShotSwallow(!mBrowser->GetEnableShotSwallow());
00053                 ILOG_USER("BUTTON: toggle enable shot swallow. Now " <<
00054                           mBrowser->GetEnableShotSwallow());
00055                 mBrowser->UpdateViewsToContext();
00056                 break;
00057             case 4:
00058                 mBrowser->SetActiveHorizontal(!mBrowser->GetActiveHorizontal());
00059                 ILOG_USER("BUTTON: toggle active horiziontal. Now " <<
00060                           mBrowser->GetActiveHorizontal());
00061                 break;
00062             case 5:
00063                 ILOG_USER("BUTTON: toggle show direction. Now " <<
00064                           mBrowser->GetShowDirection());
00065                 mBrowser->SetShowDirection(!mBrowser->GetShowDirection());
00066                 break;
00067         }
00068     }

Here is the call graph for this function:


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