Browse Source

CAMERA: Fix spelling of method MakeRayAtCurrrentMousePosition.

EDA_3D_CANVAS: Fix spelling of method getRayAtCurrrentMousePosition.
7.0
markus-bonk 5 years ago
committed by Wayne Stambaugh
parent
commit
27063688b3
  1. 10
      3d-viewer/3d_canvas/eda_3d_canvas.cpp
  2. 2
      3d-viewer/3d_canvas/eda_3d_canvas.h
  3. 2
      3d-viewer/3d_rendering/camera.cpp
  4. 2
      3d-viewer/3d_rendering/camera.h

10
3d-viewer/3d_canvas/eda_3d_canvas.cpp

@ -703,7 +703,7 @@ void EDA_3D_CANVAS::OnMouseMove( wxMouseEvent& event )
STATUSBAR_REPORTER reporter( m_parentStatusBar,
static_cast<int>( EDA_3D_VIEWER_STATUSBAR::HOVERED_ITEM ) );
RAY mouseRay = getRayAtCurrrentMousePosition();
RAY mouseRay = getRayAtCurrentMousePosition();
BOARD_ITEM *rollOverItem = m_3d_render_raytracing->IntersectBoardItem( mouseRay );
@ -798,7 +798,7 @@ void EDA_3D_CANVAS::OnLeftDown( wxMouseEvent& event )
if( !event.Dragging() && ( m_3d_render_raytracing != nullptr ) )
{
RAY mouseRay = getRayAtCurrrentMousePosition();
RAY mouseRay = getRayAtCurrentMousePosition();
BOARD_ITEM *intersectedBoardItem = m_3d_render_raytracing->IntersectBoardItem( mouseRay );
@ -930,7 +930,7 @@ void EDA_3D_CANVAS::request_start_moving_camera( float aMovingSpeed, bool aRende
void EDA_3D_CANVAS::move_pivot_based_on_cur_mouse_position()
{
RAY mouseRay = getRayAtCurrrentMousePosition();
RAY mouseRay = getRayAtCurrentMousePosition();
float hit_t;
@ -1130,13 +1130,13 @@ void EDA_3D_CANVAS::RenderEngineChanged()
}
RAY EDA_3D_CANVAS::getRayAtCurrrentMousePosition()
RAY EDA_3D_CANVAS::getRayAtCurrentMousePosition()
{
SFVEC3F rayOrigin;
SFVEC3F rayDir;
// Generate a ray origin and direction based on current mouser position and camera
m_camera.MakeRayAtCurrrentMousePosition( rayOrigin, rayDir );
m_camera.MakeRayAtCurrentMousePosition( rayOrigin, rayDir );
RAY mouseRay;
mouseRay.Init( rayOrigin, rayDir );

2
3d-viewer/3d_canvas/eda_3d_canvas.h

@ -238,7 +238,7 @@ private:
*/
void releaseOpenGL();
RAY getRayAtCurrrentMousePosition();
RAY getRayAtCurrentMousePosition();
private:
TOOL_DISPATCHER* m_eventDispatcher;

2
3d-viewer/3d_rendering/camera.cpp

@ -385,7 +385,7 @@ void CAMERA::MakeRay( const SFVEC2F& aWindowPos, SFVEC3F& aOutOrigin,
}
void CAMERA::MakeRayAtCurrrentMousePosition( SFVEC3F& aOutOrigin, SFVEC3F& aOutDirection ) const
void CAMERA::MakeRayAtCurrentMousePosition( SFVEC3F& aOutOrigin, SFVEC3F& aOutDirection ) const
{
const SFVEC2I windowPos = SFVEC2I( m_lastPosition.x, m_windowSize.y - m_lastPosition.y );

2
3d-viewer/3d_rendering/camera.h

@ -242,7 +242,7 @@ public:
* @param aOutOrigin out origin position of the ray.
* @param aOutDirection out direction.
*/
void MakeRayAtCurrrentMousePosition( SFVEC3F& aOutOrigin, SFVEC3F& aOutDirection ) const;
void MakeRayAtCurrentMousePosition( SFVEC3F& aOutOrigin, SFVEC3F& aOutDirection ) const;
protected:
void zoomChanged();

Loading…
Cancel
Save