示例#1
0
文件: main.cpp 项目: voxelinc/glow
    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;
        }
    }
示例#2
0
    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;
        }
    }
示例#3
0
    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;
        }
    }
示例#4
0
    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;
        }
    }
示例#5
0
文件: main.cpp 项目: voxelinc/glow
 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;
     }
 }
示例#6
0
 void mouseWheelEvent(MouseEvent& e){
   e.accept();
   }
示例#7
0
 void mouseMoveEvent(MouseEvent& e){
   e.accept();
   }
示例#8
0
 void mouseDownEvent(MouseEvent& e){
   e.accept();
   }