| 
    KiCad PCB EDA Suite
    
   | 
 
#include <spnav_2d_plugin.h>
  
Public Member Functions | |
| SPNAV_2D_PLUGIN (EDA_DRAW_PANEL_GAL *aCanvas) | |
| ~SPNAV_2D_PLUGIN () | |
| void | SetFocus (bool aFocus=true) | 
| void | SetCanvas (EDA_DRAW_PANEL_GAL *aCanvas) | 
| void | SetScale (double aScale) | 
| void | OnPan (double x, double y, double z) override | 
| Handle translation (pan) events.   | |
| void | OnRotate (double rx, double ry, double rz) override | 
| Handle rotational events.   | |
| void | OnButton (int button, bool pressed) override | 
| Handle button press/release events.   | |
Private Member Functions | |
| void | onPollTimer (wxTimerEvent &evt) | 
Private Attributes | |
| std::unique_ptr< SPACENAV_DRIVER > | m_driver | 
| wxTimer | m_timer | 
| EDA_DRAW_PANEL_GAL * | m_canvas | 
| KIGFX::VIEW * | m_view | 
| double | m_scale | 
| bool | m_focused | 
Definition at line 41 of file spnav_2d_plugin.h.
      
  | 
  explicit | 
Definition at line 36 of file spnav_2d_plugin.cpp.
References EDA_DRAW_PANEL_GAL::GetView(), m_canvas, m_driver, m_focused, m_scale, m_timer, m_view, and onPollTimer().
| SPNAV_2D_PLUGIN::~SPNAV_2D_PLUGIN | ( | ) | 
Definition at line 51 of file spnav_2d_plugin.cpp.
      
  | 
  overridevirtual | 
Handle button press/release events.
Implements SPACEMOUSE_HANDLER.
Definition at line 135 of file spnav_2d_plugin.cpp.
      
  | 
  overridevirtual | 
Handle translation (pan) events.
Units are driver dependent.
Implements SPACEMOUSE_HANDLER.
Definition at line 76 of file spnav_2d_plugin.cpp.
References KIGFX::WX_VIEW_CONTROLS::EVT_REFRESH_MOUSE, PGM_BASE::GetCommonSettings(), m_canvas, COMMON_SETTINGS::m_SpaceMouse, m_view, COMMON_SETTINGS::SPACEMOUSE::pan_speed, Pgm(), COMMON_SETTINGS::SPACEMOUSE::reverse_pan_x, COMMON_SETTINGS::SPACEMOUSE::reverse_pan_y, COMMON_SETTINGS::SPACEMOUSE::reverse_zoom, VECTOR2< T >::x, VECTOR2< T >::y, and zoom.
      
  | 
  private | 
Definition at line 70 of file spnav_2d_plugin.cpp.
References m_driver, and m_focused.
Referenced by SPNAV_2D_PLUGIN().
      
  | 
  overridevirtual | 
Handle rotational events.
Units are driver dependent.
Implements SPACEMOUSE_HANDLER.
Definition at line 130 of file spnav_2d_plugin.cpp.
| void SPNAV_2D_PLUGIN::SetCanvas | ( | EDA_DRAW_PANEL_GAL * | aCanvas | ) | 
Definition at line 64 of file spnav_2d_plugin.cpp.
References EDA_DRAW_PANEL_GAL::GetView(), m_canvas, and m_view.
| void SPNAV_2D_PLUGIN::SetFocus | ( | bool | aFocus = true | ) | 
Definition at line 59 of file spnav_2d_plugin.cpp.
References m_focused.
      
  | 
  inline | 
Definition at line 51 of file spnav_2d_plugin.h.
References m_scale.
      
  | 
  private | 
Definition at line 65 of file spnav_2d_plugin.h.
Referenced by OnPan(), SetCanvas(), and SPNAV_2D_PLUGIN().
      
  | 
  private | 
Definition at line 63 of file spnav_2d_plugin.h.
Referenced by onPollTimer(), SPNAV_2D_PLUGIN(), and ~SPNAV_2D_PLUGIN().
      
  | 
  private | 
Definition at line 68 of file spnav_2d_plugin.h.
Referenced by onPollTimer(), SetFocus(), and SPNAV_2D_PLUGIN().
      
  | 
  private | 
Definition at line 67 of file spnav_2d_plugin.h.
Referenced by SetScale(), and SPNAV_2D_PLUGIN().
      
  | 
  private | 
Definition at line 64 of file spnav_2d_plugin.h.
Referenced by SPNAV_2D_PLUGIN(), and ~SPNAV_2D_PLUGIN().
      
  | 
  private | 
Definition at line 66 of file spnav_2d_plugin.h.
Referenced by OnPan(), SetCanvas(), and SPNAV_2D_PLUGIN().