Search Toolkit Book for CMinimapHandler
CMinimapHandler provides support for mouse-driven zoom and pan operations. More...
#include <gui/widgets/gl/minimap_handler.hpp>
CMinimapHandler provides support for mouse-driven zoom and pan operations.
Definition at line 80 of file minimap_handler.hpp.
◆ TSubstate ◆ EState ◆ ESubstate ◆ CMinimapHandler() CMinimapHandler::CMinimapHandler ( ) ◆ ~CMinimapHandler() ◆ GetEvtHandler() wxEvtHandler * CMinimapHandler::GetEvtHandler ( ) virtual ◆ GetGenericHost() ◆ OnKeyDown() void CMinimapHandler::OnKeyDown ( wxKeyEvent & event ) ◆ OnKeyUp() void CMinimapHandler::OnKeyUp ( wxKeyEvent & event ) ◆ OnLeftDown() void CMinimapHandler::OnLeftDown ( wxMouseEvent & event ) ◆ OnLeftUp() void CMinimapHandler::OnLeftUp ( wxMouseEvent & event )Definition at line 323 of file minimap_handler.cpp.
References CGlRect< T >::Bottom(), eJumpTo, eMinimap, eReadyMinimap, CGlRect< T >::Height(), CGlRect< T >::Left(), m_MiniCursor, m_State, m_Substate, CGlRect< T >::Width(), x_OnChangeZoomRectPan(), x_OnEndMinimap(), and x_OnSelectCursor().
◆ OnMotion() void CMinimapHandler::OnMotion ( wxMouseEvent & event )Definition at line 269 of file minimap_handler.cpp.
References CGlRect< T >::Bottom(), eIdle, eMinimap, CGlRect< T >::Height(), CGlRect< T >::Left(), m_LastMouse, m_MiniCursor, m_State, CGlRect< T >::Width(), x_OnChangeZoomRectPan(), and x_OnSelectCursor().
◆ OnMouseCaptureLost() void CMinimapHandler::OnMouseCaptureLost ( wxMouseCaptureLostEvent & evt )Definition at line 522 of file minimap_handler.cpp.
◆ OnMouseWheel() void CMinimapHandler::OnMouseWheel ( wxMouseEvent & event )Definition at line 345 of file minimap_handler.cpp.
References _ASSERT, eIdle, eMinimap, eReadyMinimap, int, m_CurrNorm, m_PixPerNorm, m_StartNorm, m_State, m_WheelTotalShift, sIsMiniMapMode(), x_OnSelectCursor(), x_SwitchToReadyState(), and x_SwithToActiveState().
◆ Render() void CMinimapHandler::Render ( CGlPane & Pane ) ◆ SetHost() ◆ SetPane() void CMinimapHandler::SetPane ( CGlPane * pane ) virtual ◆ x_GetHost() [1/2] ◆ x_GetHost() [2/2] ◆ x_GetSubstate() ◆ x_NormToScale() ◆ x_OnChangePan() void CMinimapHandler::x_OnChangePan ( const wxPoint & ms_pos ) protected ◆ x_OnChangeZoomRectPan() void CMinimapHandler::x_OnChangeZoomRectPan ( int x, int y ) protected ◆ x_OnEndMinimap() void CMinimapHandler::x_OnEndMinimap ( EState new_state ) protectedDefinition at line 455 of file minimap_handler.cpp.
References _ASSERT, eMinimap, GetGenericHost(), IGenericHandlerHost::GHH_Redraw(), IGenericHandlerHost::GHH_ReleaseMouse(), m_CurrNorm, m_Host, m_StartNorm, m_State, and IMinimapHandlerHost::MMHH_EndOp().
Referenced by OnKeyUp(), and OnLeftUp().
◆ x_OnSelectCursor() void CMinimapHandler::x_OnSelectCursor ( const wxPoint & ms_pos ) protectedDefinition at line 468 of file minimap_handler.cpp.
References eIdle, eJumpTo, eMinimap, eReadyMinimap, m_CursorId, m_State, m_Substate, and x_GetSubstate().
Referenced by OnKeyDown(), OnKeyUp(), OnLeftDown(), OnLeftUp(), OnMotion(), and OnMouseWheel().
◆ x_RenderMinimap() void CMinimapHandler::x_RenderMinimap ( CGlPane & pane ) protectedDefinition at line 131 of file minimap_handler.cpp.
References IRender::Begin(), IRender::BlendFunc(), CGlUtils::CheckGlError(), CGlPane::Close(), IRender::ColorC(), IRender::Disable(), IRender::Enable(), IRender::End(), GetGl(), CGlPane::GetModelLimitsRect(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), CGlRect< T >::Height(), CGlRect< T >::Init(), int, kGaugeMaxDim, kMinInnerRectDim, CGlRect< T >::Left(), IRender::LineWidth(), m_Host, m_InnerRectH, m_InnerRectW, m_InnerRectX, m_InnerRectY, m_MarkerPos, m_MiniCursor, m_Minimap, m_pTexture, m_RectColor, m_ScaleColor, m_scalex, m_scaley, m_TickColor, m_XCoordLimit, m_YCoordLimit, I3DTexture::MakeCurrent(), max(), min(), IMinimapHandlerHost::MMHH_GetVPPosByY(), CGlPane::OpenPixels(), IRender::TexCoord2f(), CGlRect< T >::Top(), IRender::Vertex2d(), CGlRect< T >::Width(), and xr().
Referenced by Render().
◆ x_ScaleToNorm() ◆ x_SwitchToReadyState() void CMinimapHandler::x_SwitchToReadyState ( EState new_state, const wxPoint & ms_pos ) protectedsignal handlers - functions doing the real job
Signal handlers.
Definition at line 415 of file minimap_handler.cpp.
References _ASSERT, IMinimapHandlerHost::eCurrent, IMinimapHandlerHost::eMax, IMinimapHandlerHost::eMin, eReadyMinimap, GetGenericHost(), IGenericHandlerHost::GHH_Redraw(), m_CurrNorm, m_CurrPos, m_Host, m_LastMouse, m_MarkerPos, m_MaxNorm, m_MinNorm, m_StartNorm, m_State, IMinimapHandlerHost::MMHH_GetScale(), and x_ScaleToNorm().
Referenced by OnKeyDown(), OnLeftDown(), and OnMouseWheel().
◆ x_SwithToActiveState() void CMinimapHandler::x_SwithToActiveState ( EState state, const wxPoint & ms_pos ) protectedDefinition at line 436 of file minimap_handler.cpp.
References _ASSERT, GetGenericHost(), IGenericHandlerHost::GHH_CaptureMouse(), m_Host, m_MouseStart, m_Pane, m_ptStart, m_State, IMinimapHandlerHost::MMHH_GetVPPosByY(), and CGlPane::UnProject().
Referenced by OnLeftDown(), and OnMouseWheel().
◆ m_CurrNorm ◆ m_CurrPos wxPoint CMinimapHandler::m_CurrPos protected ◆ m_CursorId int CMinimapHandler::m_CursorId protected ◆ m_Host ◆ m_InnerRectH int CMinimapHandler::m_InnerRectH protected ◆ m_InnerRectW int CMinimapHandler::m_InnerRectW protected ◆ m_InnerRectX int CMinimapHandler::m_InnerRectX protected ◆ m_InnerRectY int CMinimapHandler::m_InnerRectY protected ◆ m_LastMouse wxPoint CMinimapHandler::m_LastMouse protected ◆ m_MarkerPos wxPoint CMinimapHandler::m_MarkerPos protected ◆ m_MaxNorm ◆ m_MiniCursor TVPRect CMinimapHandler::m_MiniCursor protected ◆ m_Minimap ◆ m_MinNorm ◆ m_MouseStart wxPoint CMinimapHandler::m_MouseStart protected ◆ m_Pane ◆ m_PixPerNorm int CMinimapHandler::m_PixPerNorm protected ◆ m_pTexture ◆ m_ptStart ◆ m_RectColor ◆ m_ScaleColor ◆ m_scalex double CMinimapHandler::m_scalex protected ◆ m_scaley double CMinimapHandler::m_scaley protected ◆ m_StartNorm ◆ m_State EState CMinimapHandler::m_State protected ◆ m_Substate ◆ m_TickColor ◆ m_WheelTotalShift int CMinimapHandler::m_WheelTotalShift protected ◆ m_XCoordLimit float CMinimapHandler::m_XCoordLimit protected ◆ m_YCoordLimit float CMinimapHandler::m_YCoordLimit protectedThe documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4