virtual void mouseMoveEvent(MouseEvent & event) override { if (m_flightEnabled) { m_flightNav.mouseMove((event.pos()-m_lastMousePos)); m_lastMousePos = event.pos(); event.accept(); return; } switch (m_nav.mode()) { case glowutils::WorldInHandNavigation::PanInteraction: m_nav.panProcess(event.pos()); event.accept(); break; case glowutils::WorldInHandNavigation::RotateInteraction: m_nav.rotateProcess(event.pos()); event.accept(); break; case glowutils::WorldInHandNavigation::NoInteraction: break; } }
virtual void mouseReleaseEvent(MouseEvent & event) override { switch (event.button()) { case GLFW_MOUSE_BUTTON_LEFT: m_nav.panEnd(); event.accept(); break; case GLFW_MOUSE_BUTTON_RIGHT: m_nav.rotateEnd(); event.accept(); break; } }
virtual void mousePressEvent(MouseEvent & event) override { switch (event.button()) { case GLFW_MOUSE_BUTTON_LEFT: m_nav.panBegin(event.pos()); event.accept(); break; case GLFW_MOUSE_BUTTON_RIGHT: m_nav.rotateBegin(event.pos()); event.accept(); break; } }
virtual void mouseMoveEvent(MouseEvent & event) override { switch (m_nav.mode()) { case WorldInHandNavigation::PanInteraction: m_nav.panProcess(event.pos()); event.accept(); break; case WorldInHandNavigation::RotateInteraction: m_nav.rotateProcess(event.pos()); event.accept(); default: break; } }
virtual void mouseMoveEvent(MouseEvent & event) override { switch (m_nav->mode()) { case glowutils::WorldInHandNavigation::RotateInteraction: m_nav->rotateProcess(event.pos()); event.accept(); break; case glowutils::WorldInHandNavigation::PanInteraction: case glowutils::WorldInHandNavigation::NoInteraction: break; } }
void mouseWheelEvent(MouseEvent& e){ e.accept(); }
void mouseMoveEvent(MouseEvent& e){ e.accept(); }
void mouseDownEvent(MouseEvent& e){ e.accept(); }