This function is called by the event handling system everytime the user has moved or clicked the mouse.
So if you want a window which reacts to the mouse in a specific way, you can inherit a class from Window. Another method to implement mouse behaviour is to use a window listener (in this case you have to inherit a class from WindowListener and attach it to this window, see WindowListener for more details)
Reimplemented from OglGui::OglWindow.
Reimplemented in Impala::Application::MediaTable::GridWindow, Impala::Application::MediaTable::BarPlot, Impala::Application::MediaTable::RandomImageWindow, Impala::Application::MediaTable::TableViewerPointCloud, Impala::Application::MediaTable::SelectionCollection, Impala::Application::MediaTable::SelectionCollectionItem, Impala::Application::MediaTable::TableOverviewWindow, Impala::Application::MediaTable::TableWindow, Impala::Application::SDash::PoliceMan, Impala::Application::SDash::TimeSlider, Impala::Application::VideoExcel::GridWindow, Impala::Application::VideoExcel::SelectionCollection, Impala::Application::VideoExcel::SelectionCollectionItem, Impala::Application::VideoExcel::TableOverviewWindow, Impala::Application::VideoExcel::TableWindow, OglGui::Camera3DMoveZ, OglGui::Camera3DXYZ, OglGui::Carousel3D, OglGui::CheckBoxDrum, OglGui::Cluster, OglGui::Graph, OglGui::IntervalChooser, OglGui::Menu, OglGui::MenuOnButton, OglGui::Menus, OglGui::MenuTopPane, OglGui::SizableWindow, OglGui::StringColumns, OglGui::StringSelector, OglGui::TextEdit, OglGui::TitledWindow, OglGui::UpDownNumber, OglGui::ViewerPointCloud, OglGui::ViewerPointCloudNavigator, OglGui::ViewSphere, OglGui::ZoomShiftRuler, Impala::Visualization::DirImViewer, Impala::Visualization::ImageSet, Impala::Visualization::ImageSetIdxGrid, Impala::Visualization::ImageStrip, Impala::Visualization::ImagesWindow, Impala::Visualization::Plot::Plot, Impala::Visualization::RotorBrowser::RotorBrowser, Impala::Visualization::SimilarityTimeLine, Impala::Visualization::VideoJpgPlayer, Impala::Visualization::VideoMinimap, Impala::Visualization::VideoNav, and Impala::Visualization::Window.
Definition at line 548 of file Window.h.
References GetState(), mDisableOGLViewMouse, mIs2d, mListenerData, OglGui::OglWindow::mOglWnd, OglGui::OglWindow::mOldUserCFunctions, OglGui::OglWindow::MouseFunc(), mWindowListener, SetState(), and OglGui::WindowListener::WindowMouseEvent().
Referenced by OglGui::Graph::DocMouseFunc(), OglGui::ViewerPointCloud::HandleMouseMoveOnDisplay(), OglGui::ViewerPointCloud::HandleWindowMouse(), Impala::Visualization::VideoNav::MouseFunc(), Impala::Visualization::VideoJpgPlayer::MouseFunc(), Impala::Visualization::RotorBrowser::RotorBrowser::MouseFunc(), Impala::Visualization::ImagesWindow::MouseFunc(), Impala::Visualization::ImageStrip::MouseFunc(), Impala::Visualization::ImageSetIdxGrid::MouseFunc(), Impala::Visualization::DirImViewer::MouseFunc(), OglGui::ZoomShiftRuler::MouseFunc(), OglGui::WindowView2D::MouseFunc(), Impala::Visualization::Window::MouseFunc(), OglGui::ViewStrip::MouseFunc(), OglGui::ViewSphere::MouseFunc(), OglGui::ViewerPointCloudNavigator::MouseFunc(), OglGui::UpDownNumber::MouseFunc(), OglGui::UpDownButton::MouseFunc(), OglGui::TumblingView3D::MouseFunc(), OglGui::TextEdit::MouseFunc(), OglGui::TextArea::MouseFunc(), OglGui::StringSelector::MouseFunc(), OglGui::StringColumns::MouseFunc(), OglGui::StaticText::MouseFunc(), OglGui::SpinWheel::MouseFunc(), OglGui::Slider::MouseFunc(), OglGui::SizableWindow::MouseFunc(), OglGui::ScrollBar::MouseFunc(), OglGui::IntervalChooser::MouseFunc(), OglGui::Cluster::MouseFunc(), OglGui::CheckBoxDrum::MouseFunc(), OglGui::CheckBox::MouseFunc(), OglGui::Carousel3D::MouseFunc(), OglGui::Camera3DXYZ::MouseFunc(), OglGui::Button::MouseFunc(), Impala::Visualization::ImageSet::MouseFunc(), Impala::Application::MediaTable::BarPlot::MouseFunc(), Impala::Application::Src::WindowSrc::MouseFunc(), Impala::Application::WindowShow< ArrayT >::MouseFunc(), Impala::Application::DemoCamera2d::WindowCamera2d::MouseFunc(), Impala::Application::WindowBackground::MouseFunc(), and OglGui::WindowView2DWithRect::MouseFunc().
00549 {
00550 if (!GetState())
00551 return;
00552
00553 if (msg == oglMouseEnter)
00554 {
00555 SetState(2);
00556 oglSys.UpdateSceneFlag(mOglWnd, 1);
00557 }
00558 if (msg == oglMouseLeave)
00559 {
00560 SetState(1);
00561 oglSys.UpdateSceneFlag(mOglWnd, 1);
00562 }
00563
00564 if (mOldUserCFunctions.mouseFunc)
00565 OglWindow::MouseFunc(msg, but, state, x, y);
00566 else if (!mDisableOGLViewMouse)
00567 {
00568 if (mIs2d)
00569 viewSys.MouseFunc(mOglWnd, msg, but, state, x, y);
00570 else
00571 view3DSys.MouseFunc(mOglWnd, msg, but, state, x, y);
00572 }
00573
00574 if (mWindowListener)
00575 mWindowListener->WindowMouseEvent(this, msg, but, state, x, y,
00576 mListenerData);
00577 }
Here is the call graph for this function: