KiCad PCB EDA Suite
|
The class that adjusts NL_3D_VIEWER_PLUGIN_IMPL implementation for 3D Model preview in footprint properties dialog. More...
#include <nl_footprint_properties_plugin_impl.h>
Public Member Functions | |
NL_FOOTPRINT_PROPERTIES_PLUGIN_IMPL (EDA_3D_CANVAS *aCanvas) | |
Initializes a new instance of the NL_FOOTPRINT_PROPERTIES_PLUGIN. | |
void | SetFocus (bool aFocus=true) |
Set the connection to the 3Dconnexion driver to the focus state so that 3DMouse data is routed here. | |
EDA_3D_CANVAS * | GetCanvas () const |
Get the m_canvas pointer. | |
void | Connect () |
Connect plugin implementation to the driver. | |
Private Member Functions | |
long | GetModelExtents (navlib::box_t &extents) const override |
Get Footprint 3D Model extents. | |
void | exportCommandsAndImages () override |
Export the invocable actions and images to the 3Dconnexion UI. | |
long | GetCameraMatrix (navlib::matrix_t &aMatrix) const override |
long | GetPointerPosition (navlib::point_t &aPosition) const override |
long | GetViewExtents (navlib::box_t &aExtents) const override |
long | GetViewFOV (double &aFov) const override |
long | GetViewFrustum (navlib::frustum_t &aFrustum) const override |
long | GetIsViewPerspective (navlib::bool_t &aPerspective) const override |
long | SetCameraMatrix (const navlib::matrix_t &aMatrix) override |
long | SetViewExtents (const navlib::box_t &aExtents) override |
long | SetViewFOV (double aFov) override |
long | SetViewFrustum (const navlib::frustum_t &aFrustum) override |
long | GetSelectionExtents (navlib::box_t &aExtents) const override |
long | GetSelectionTransform (navlib::matrix_t &aTransform) const override |
long | GetIsSelectionEmpty (navlib::bool_t &aEmpty) const override |
long | SetSelectionTransform (const navlib::matrix_t &aMatrix) override |
long | GetPivotPosition (navlib::point_t &aPosition) const override |
long | IsUserPivot (navlib::bool_t &aUserPivot) const override |
long | SetPivotPosition (const navlib::point_t &aPosition) override |
long | GetPivotVisible (navlib::bool_t &aVisible) const override |
long | SetPivotVisible (bool aVisible) override |
long | GetHitLookAt (navlib::point_t &aPosition) const override |
long | SetHitAperture (double aAperture) override |
long | SetHitDirection (const navlib::vector_t &aDirection) override |
long | SetHitLookFrom (const navlib::point_t &aPosition) override |
long | SetHitSelectionOnly (bool aSelectionOnly) override |
long | SetActiveCommand (std::string aCommandId) override |
long | SetSettingsChanged (long aChangeNumber) override |
long | SetMotionFlag (bool aValue) override |
long | SetTransaction (long aValue) override |
long | SetCameraTarget (const navlib::point_t &aPosition) override |
long | GetFrontView (navlib::matrix_t &aMatrix) const override |
long | GetCoordinateSystem (navlib::matrix_t &aMatrix) const override |
long | GetIsViewRotatable (navlib::bool_t &isRotatable) const override |
Private Attributes | |
EDA_3D_CANVAS * | m_canvas |
TRACK_BALL * | m_camera |
bool | m_capIsMoving |
double | m_newWidth |
SFVEC3F | m_rayOrigin |
SFVEC3F | m_rayDirection |
glm::mat4 | m_cameraMatrix |
Static Private Attributes | |
static const wxChar * | m_logTrace |
Trace mask used to enable or disable the trace output of this class. | |
The class that adjusts NL_3D_VIEWER_PLUGIN_IMPL implementation for 3D Model preview in footprint properties dialog.
Definition at line 36 of file nl_footprint_properties_plugin_impl.h.
NL_FOOTPRINT_PROPERTIES_PLUGIN_IMPL::NL_FOOTPRINT_PROPERTIES_PLUGIN_IMPL | ( | EDA_3D_CANVAS * | aCanvas | ) |
Initializes a new instance of the NL_FOOTPRINT_PROPERTIES_PLUGIN.
aCanvas | is the viewport to be navigated. |
Definition at line 44 of file nl_footprint_properties_plugin_impl.cpp.
|
inherited |
Connect plugin implementation to the driver.
Definition at line 107 of file nl_3d_viewer_plugin_impl.cpp.
References NL_3D_VIEWER_PLUGIN_IMPL::exportCommandsAndImages().
|
overrideprivatevirtual |
Export the invocable actions and images to the 3Dconnexion UI.
Reimplemented from NL_3D_VIEWER_PLUGIN_IMPL.
Definition at line 65 of file nl_footprint_properties_plugin_impl.cpp.
References add_category(), ACTION_MANAGER::GetActionList(), TOOL_ACTION::GetDescription(), TOOL_ACTION::GetIcon(), TOOL_ACTION::GetMenuLabel(), TOOL_ACTION::GetName(), TOOL_ACTION::GetToolName(), image, KiBitmap(), m_logTrace, and name.
|
overrideprivateinherited |
Definition at line 246 of file nl_3d_viewer_plugin_impl.cpp.
References CAMERA::GetViewMatrix(), NL_3D_VIEWER_PLUGIN_IMPL::m_camera, and NL_3D_VIEWER_PLUGIN_IMPL::m_cameraMatrix.
|
inherited |
Get the m_canvas pointer.
Definition at line 101 of file nl_3d_viewer_plugin_impl.cpp.
References NL_3D_VIEWER_PLUGIN_IMPL::m_canvas.
Referenced by GetModelExtents().
|
overrideprivateinherited |
Definition at line 658 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivateinherited |
Definition at line 651 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivateinherited |
Definition at line 502 of file nl_3d_viewer_plugin_impl.cpp.
References RAY::at(), BOARD_ADAPTER::GetBBox(), EDA_3D_CANVAS::GetBoardAdapter(), RAY::Init(), BBOX_3D::Intersect(), NL_3D_VIEWER_PLUGIN_IMPL::m_canvas, NL_3D_VIEWER_PLUGIN_IMPL::m_rayDirection, and NL_3D_VIEWER_PLUGIN_IMPL::m_rayOrigin.
|
overrideprivateinherited |
Definition at line 436 of file nl_3d_viewer_plugin_impl.cpp.
References empty().
|
overrideprivateinherited |
Definition at line 311 of file nl_3d_viewer_plugin_impl.cpp.
References CAMERA::GetProjection(), and NL_3D_VIEWER_PLUGIN_IMPL::m_camera.
|
overrideprivateinherited |
Definition at line 666 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivate |
Get Footprint 3D Model extents.
extents | is the box around the 3D model. |
Definition at line 49 of file nl_footprint_properties_plugin_impl.cpp.
References BOUNDING_BOX_SCALE_FACTOR, BOARD_ADAPTER::GetBBox(), EDA_3D_CANVAS::GetBoardAdapter(), NL_3D_VIEWER_PLUGIN_IMPL::GetCanvas(), BBOX_3D::Max(), and BBOX_3D::Min().
|
overrideprivateinherited |
Definition at line 450 of file nl_3d_viewer_plugin_impl.cpp.
References CAMERA::GetLookAtPos(), and NL_3D_VIEWER_PLUGIN_IMPL::m_camera.
|
overrideprivateinherited |
Definition at line 484 of file nl_3d_viewer_plugin_impl.cpp.
References EDA_3D_CANVAS::GetRender3dmousePivot(), and NL_3D_VIEWER_PLUGIN_IMPL::m_canvas.
|
overrideprivateinherited |
Definition at line 258 of file nl_3d_viewer_plugin_impl.cpp.
References NL_3D_VIEWER_PLUGIN_IMPL::m_camera, and CAMERA::MakeRayAtCurrentMousePosition().
|
overrideprivateinherited |
Definition at line 424 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivateinherited |
Definition at line 430 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivateinherited |
Definition at line 269 of file nl_3d_viewer_plugin_impl.cpp.
References CAMERA_FRUSTUM::farD, CAMERA_FRUSTUM::fh, CAMERA_FRUSTUM::fw, CAMERA::GetFrustum(), CAMERA::GetProjection(), NL_3D_VIEWER_PLUGIN_IMPL::m_camera, and CAMERA_FRUSTUM::nearD.
|
overrideprivateinherited |
Definition at line 286 of file nl_3d_viewer_plugin_impl.cpp.
References CAMERA_FRUSTUM::angle, CAMERA::GetFrustum(), and NL_3D_VIEWER_PLUGIN_IMPL::m_camera.
|
overrideprivateinherited |
Definition at line 295 of file nl_3d_viewer_plugin_impl.cpp.
References CAMERA_FRUSTUM::farD, CAMERA::GetFrustum(), CAMERA::GetProjection(), NL_3D_VIEWER_PLUGIN_IMPL::m_camera, CAMERA_FRUSTUM::nearD, CAMERA_FRUSTUM::nh, and CAMERA_FRUSTUM::nw.
|
overrideprivateinherited |
Definition at line 460 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivateinherited |
Definition at line 551 of file nl_3d_viewer_plugin_impl.cpp.
References ACTION_MANAGER::GetActionList(), TOOL_MANAGER::GetActionManager(), ACTION_MANAGER::GetCondition(), TOOLS_HOLDER::GetCurrentSelection(), TOOL_ACTION::GetName(), TOOL_MANAGER::GetToolHolder(), TOOLS_HOLDER::GetToolManager(), NL_3D_VIEWER_PLUGIN_IMPL::m_canvas, EDA_3D_CANVAS::Request_refresh(), and TOOL_MANAGER::RunAction().
|
overrideprivateinherited |
Definition at line 319 of file nl_3d_viewer_plugin_impl.cpp.
References equals(), CAMERA::GetLookAtPos(), CAMERA::GetProjection(), CAMERA::GetViewMatrix(), NL_3D_VIEWER_PLUGIN_IMPL::m_camera, NL_3D_VIEWER_PLUGIN_IMPL::m_cameraMatrix, CAMERA::SetViewMatrix(), and CAMERA::Update().
|
overrideprivateinherited |
Definition at line 645 of file nl_3d_viewer_plugin_impl.cpp.
|
inherited |
Set the connection to the 3Dconnexion driver to the focus state so that 3DMouse data is routed here.
aFocus | is true to set the connection active. |
Definition at line 94 of file nl_3d_viewer_plugin_impl.cpp.
References NL_3D_VIEWER_PLUGIN_IMPL::m_logTrace.
|
overrideprivateinherited |
Definition at line 523 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivateinherited |
Definition at line 529 of file nl_3d_viewer_plugin_impl.cpp.
References NL_3D_VIEWER_PLUGIN_IMPL::m_rayDirection.
|
overrideprivateinherited |
Definition at line 537 of file nl_3d_viewer_plugin_impl.cpp.
References NL_3D_VIEWER_PLUGIN_IMPL::m_rayOrigin.
|
overrideprivateinherited |
Definition at line 545 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivateinherited |
Definition at line 622 of file nl_3d_viewer_plugin_impl.cpp.
References NL_3D_VIEWER_PLUGIN_IMPL::m_capIsMoving.
|
overrideprivateinherited |
Definition at line 468 of file nl_3d_viewer_plugin_impl.cpp.
References NL_3D_VIEWER_PLUGIN_IMPL::m_camera, NL_3D_VIEWER_PLUGIN_IMPL::m_canvas, EDA_3D_CANVAS::Request_refresh(), EDA_3D_CANVAS::Set3dmousePivotPos(), and CAMERA::SetLookAtPos_T1().
|
overrideprivateinherited |
Definition at line 492 of file nl_3d_viewer_plugin_impl.cpp.
References NL_3D_VIEWER_PLUGIN_IMPL::m_canvas, EDA_3D_CANVAS::Request_refresh(), and EDA_3D_CANVAS::SetRender3dmousePivot().
|
overrideprivateinherited |
Definition at line 444 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivateinherited |
Definition at line 616 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivateinherited |
Definition at line 630 of file nl_3d_viewer_plugin_impl.cpp.
References NL_3D_VIEWER_PLUGIN_IMPL::m_canvas, NL_3D_VIEWER_PLUGIN_IMPL::m_logTrace, and EDA_3D_CANVAS::Request_refresh().
|
overrideprivateinherited |
Definition at line 377 of file nl_3d_viewer_plugin_impl.cpp.
References CAMERA::GetFrustum(), CAMERA::GetViewMatrix(), CAMERA::GetZoom(), NL_3D_VIEWER_PLUGIN_IMPL::m_camera, NL_3D_VIEWER_PLUGIN_IMPL::m_cameraMatrix, CAMERA_FRUSTUM::nw, zoom, and CAMERA::Zoom().
|
overrideprivateinherited |
Definition at line 401 of file nl_3d_viewer_plugin_impl.cpp.
|
overrideprivateinherited |
Definition at line 407 of file nl_3d_viewer_plugin_impl.cpp.
|
privateinherited |
Definition at line 133 of file nl_3d_viewer_plugin_impl.h.
Referenced by NL_3D_VIEWER_PLUGIN_IMPL::GetCameraMatrix(), NL_3D_VIEWER_PLUGIN_IMPL::GetIsViewPerspective(), NL_3D_VIEWER_PLUGIN_IMPL::GetPivotPosition(), NL_3D_VIEWER_PLUGIN_IMPL::GetPointerPosition(), NL_3D_VIEWER_PLUGIN_IMPL::GetViewExtents(), NL_3D_VIEWER_PLUGIN_IMPL::GetViewFOV(), NL_3D_VIEWER_PLUGIN_IMPL::GetViewFrustum(), NL_3D_VIEWER_PLUGIN_IMPL::NL_3D_VIEWER_PLUGIN_IMPL(), NL_3D_VIEWER_PLUGIN_IMPL::SetCameraMatrix(), NL_3D_VIEWER_PLUGIN_IMPL::SetPivotPosition(), and NL_3D_VIEWER_PLUGIN_IMPL::SetViewExtents().
|
mutableprivateinherited |
Definition at line 141 of file nl_3d_viewer_plugin_impl.h.
Referenced by NL_3D_VIEWER_PLUGIN_IMPL::GetCameraMatrix(), NL_3D_VIEWER_PLUGIN_IMPL::SetCameraMatrix(), and NL_3D_VIEWER_PLUGIN_IMPL::SetViewExtents().
|
privateinherited |
Definition at line 132 of file nl_3d_viewer_plugin_impl.h.
Referenced by NL_3D_VIEWER_PLUGIN_IMPL::GetCanvas(), NL_3D_VIEWER_PLUGIN_IMPL::GetHitLookAt(), NL_3D_VIEWER_PLUGIN_IMPL::GetModelExtents(), NL_3D_VIEWER_PLUGIN_IMPL::GetPivotVisible(), NL_3D_VIEWER_PLUGIN_IMPL::NL_3D_VIEWER_PLUGIN_IMPL(), NL_3D_VIEWER_PLUGIN_IMPL::SetActiveCommand(), NL_3D_VIEWER_PLUGIN_IMPL::SetPivotPosition(), NL_3D_VIEWER_PLUGIN_IMPL::SetPivotVisible(), and NL_3D_VIEWER_PLUGIN_IMPL::SetTransaction().
|
privateinherited |
Definition at line 134 of file nl_3d_viewer_plugin_impl.h.
Referenced by NL_3D_VIEWER_PLUGIN_IMPL::SetMotionFlag().
|
privateinherited |
Definition at line 135 of file nl_3d_viewer_plugin_impl.h.
|
privateinherited |
Definition at line 137 of file nl_3d_viewer_plugin_impl.h.
Referenced by NL_3D_VIEWER_PLUGIN_IMPL::GetHitLookAt(), and NL_3D_VIEWER_PLUGIN_IMPL::SetHitDirection().
|
privateinherited |
Definition at line 136 of file nl_3d_viewer_plugin_impl.h.
Referenced by NL_3D_VIEWER_PLUGIN_IMPL::GetHitLookAt(), and NL_3D_VIEWER_PLUGIN_IMPL::SetHitLookFrom().