|
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 31 of file spnav_viewer_plugin.h.
|
explicit |
Definition at line 27 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 41 of file spnav_viewer_plugin.cpp.
|
overridevirtual |
Handle button press/release events.
Implements SPACEMOUSE_HANDLER.
Definition at line 102 of file spnav_viewer_plugin.cpp.
|
overridevirtual |
Handle translation (pan) events.
Units are driver dependent.
Implements SPACEMOUSE_HANDLER.
Definition at line 60 of file spnav_viewer_plugin.cpp.
|
private |
Definition at line 54 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 83 of file spnav_viewer_plugin.cpp.
| void SPNAV_VIEWER_PLUGIN::SetFocus | ( | bool | aFocus = true | ) |
Definition at line 49 of file spnav_viewer_plugin.cpp.
References m_focused.
|
private |
Definition at line 49 of file spnav_viewer_plugin.h.
Referenced by OnPan(), OnRotate(), and SPNAV_VIEWER_PLUGIN().
|
private |
Definition at line 48 of file spnav_viewer_plugin.h.
Referenced by OnPan(), OnRotate(), and SPNAV_VIEWER_PLUGIN().
|
private |
Definition at line 46 of file spnav_viewer_plugin.h.
Referenced by onPollTimer(), SPNAV_VIEWER_PLUGIN(), and ~SPNAV_VIEWER_PLUGIN().
|
private |
Definition at line 50 of file spnav_viewer_plugin.h.
Referenced by onPollTimer(), SetFocus(), and SPNAV_VIEWER_PLUGIN().
|
private |
Definition at line 47 of file spnav_viewer_plugin.h.
Referenced by SPNAV_VIEWER_PLUGIN(), and ~SPNAV_VIEWER_PLUGIN().