| 
    KiCad PCB EDA Suite
    
   | 
 
#include <spnav_viewer_plugin.h>
  
Public Member Functions | |
| SPNAV_VIEWER_PLUGIN (EDA_3D_CANVAS *aCanvas) | |
| ~SPNAV_VIEWER_PLUGIN () | |
| void | SetFocus (bool aFocus=true) | 
| 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_3D_CANVAS * | m_canvas | 
| TRACK_BALL * | m_camera | 
| bool | m_focused | 
Definition at line 35 of file spnav_viewer_plugin.h.
      
  | 
  explicit | 
Definition at line 31 of file spnav_viewer_plugin.cpp.
References HIDPI_GL_3D_CANVAS::GetCamera(), m_camera, m_canvas, m_driver, m_focused, m_timer, and onPollTimer().
| SPNAV_VIEWER_PLUGIN::~SPNAV_VIEWER_PLUGIN | ( | ) | 
Definition at line 45 of file spnav_viewer_plugin.cpp.
      
  | 
  overridevirtual | 
Handle button press/release events.
Implements SPACEMOUSE_HANDLER.
Definition at line 106 of file spnav_viewer_plugin.cpp.
      
  | 
  overridevirtual | 
Handle translation (pan) events.
Units are driver dependent.
Implements SPACEMOUSE_HANDLER.
Definition at line 64 of file spnav_viewer_plugin.cpp.
      
  | 
  private | 
Definition at line 58 of file spnav_viewer_plugin.cpp.
References m_driver, and m_focused.
Referenced by SPNAV_VIEWER_PLUGIN().
      
  | 
  overridevirtual | 
Handle rotational events.
Units are driver dependent.
Implements SPACEMOUSE_HANDLER.
Definition at line 87 of file spnav_viewer_plugin.cpp.
| void SPNAV_VIEWER_PLUGIN::SetFocus | ( | bool | aFocus = true | ) | 
Definition at line 53 of file spnav_viewer_plugin.cpp.
References m_focused.
      
  | 
  private | 
Definition at line 53 of file spnav_viewer_plugin.h.
Referenced by OnPan(), OnRotate(), and SPNAV_VIEWER_PLUGIN().
      
  | 
  private | 
Definition at line 52 of file spnav_viewer_plugin.h.
Referenced by OnPan(), OnRotate(), and SPNAV_VIEWER_PLUGIN().
      
  | 
  private | 
Definition at line 50 of file spnav_viewer_plugin.h.
Referenced by onPollTimer(), SPNAV_VIEWER_PLUGIN(), and ~SPNAV_VIEWER_PLUGIN().
      
  | 
  private | 
Definition at line 54 of file spnav_viewer_plugin.h.
Referenced by onPollTimer(), SetFocus(), and SPNAV_VIEWER_PLUGIN().
      
  | 
  private | 
Definition at line 51 of file spnav_viewer_plugin.h.
Referenced by SPNAV_VIEWER_PLUGIN(), and ~SPNAV_VIEWER_PLUGIN().