KiCad PCB EDA Suite
Loading...
Searching...
No Matches
NL_3D_VIEWER_PLUGIN Class Reference

The class that implements the public interface to the SpaceMouse plug-in. More...

#include <nl_3d_viewer_plugin.h>

Public Member Functions

 NL_3D_VIEWER_PLUGIN (EDA_3D_CANVAS *aViewport)
 Initializes a new instance of the NL_3D_VIEWER_PLUGIN.
 
virtual ~NL_3D_VIEWER_PLUGIN ()
 
void SetFocus (bool aFocus=true)
 Set the connection to the 3Dconnexion driver to the focus state so that 3DMouse data is routed here.
 

Private Attributes

std::unique_ptr< NL_3D_VIEWER_PLUGIN_IMPLm_impl
 

Detailed Description

The class that implements the public interface to the SpaceMouse plug-in.

Definition at line 38 of file nl_3d_viewer_plugin.h.

Constructor & Destructor Documentation

◆ NL_3D_VIEWER_PLUGIN()

NL_3D_VIEWER_PLUGIN::NL_3D_VIEWER_PLUGIN ( EDA_3D_CANVAS aViewport)

Initializes a new instance of the NL_3D_VIEWER_PLUGIN.

Parameters
aViewportis the viewport to be navigated.

Definition at line 27 of file nl_3d_viewer_plugin.cpp.

References ADVANCED_CFG::GetCfg(), m_impl, and KIPLATFORM::DRIVERS::Valid3DConnexionDriverVersion().

◆ ~NL_3D_VIEWER_PLUGIN()

NL_3D_VIEWER_PLUGIN::~NL_3D_VIEWER_PLUGIN ( )
virtualdefault

Member Function Documentation

◆ SetFocus()

void NL_3D_VIEWER_PLUGIN::SetFocus ( bool  aFocus = true)

Set the connection to the 3Dconnexion driver to the focus state so that 3DMouse data is routed here.

Parameters
aFocusis true to set the connection active.

Definition at line 41 of file nl_3d_viewer_plugin.cpp.

References m_impl.

Referenced by EDA_3D_VIEWER_FRAME::handleIconizeEvent(), and EDA_3D_VIEWER_FRAME::OnActivate().

Member Data Documentation

◆ m_impl

std::unique_ptr<NL_3D_VIEWER_PLUGIN_IMPL> NL_3D_VIEWER_PLUGIN::m_impl
private

Definition at line 59 of file nl_3d_viewer_plugin.h.

Referenced by NL_3D_VIEWER_PLUGIN(), and SetFocus().


The documentation for this class was generated from the following files: