Skip to content

Commit

Permalink
Gui: Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexbas committed Apr 20, 2024
1 parent 19f16d0 commit 093314e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
10 changes: 0 additions & 10 deletions src/Gui/GestureNavigationStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1010,16 +1010,6 @@ void GestureNavigationStyle::onRollGesture(int direction)

}

void GestureNavigationStyle::onSetRotationCenter(SbVec2s cursor){
SbBool ret = NavigationStyle::lookAtPoint(cursor);
if(!ret){
this->interactiveCountDec(); //this was in original gesture nav. Not sure what is it needed for --DeepSOIC
Base::Console().Log(
"No object under cursor! Can't set new center of rotation.\n");
}

}

void GestureNavigationStyle::EventQueue::post(const NS::Event& ev)
{
ev.flags->processed = true;
Expand Down
2 changes: 0 additions & 2 deletions src/Gui/GestureNavigationStyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ class GestureNavigationStyle: public UserNavigationStyle
///Roll gesture is like: press LMB, press RMB, release LMB, release RMB.
/// This function is called by state machine whenever it picks up roll gesture.
void onRollGesture(int direction);
///Called by state machine, when set-rotation-center gesture is detected (MMB click, or H key)
void onSetRotationCenter(SbVec2s cursor);
};

}
Expand Down
8 changes: 0 additions & 8 deletions src/Gui/NavigationStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,14 +629,6 @@ void NavigationStyle::setupPanningPlane(const SoCamera* camera)
}
}

void NavigationStyle::panToCenter(const SbPlane & pplane, const SbVec2f & currpos)
{
const SbViewportRegion & vp = viewer->getSoRenderManager()->getViewportRegion();
float ratio = vp.getViewportAspectRatio();
panCamera(viewer->getSoRenderManager()->getCamera(), ratio, pplane, SbVec2f(0.5,0.5), currpos);
this->rotationCenterFound = false;
}

/** Dependent on the camera type this will either shrink or expand the
* height of the viewport (orthogonal camera) or move the camera
* closer or further away from the focal point in the scene.
Expand Down
1 change: 0 additions & 1 deletion src/Gui/NavigationStyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ class GuiExport NavigationStyle : public Base::BaseClass
const SbVec2f & previous,
const SbVec2f & current);
void setupPanningPlane(const SoCamera* camera);
void panToCenter(const SbPlane & pplane, const SbVec2f & currpos);
int getDelta() const;
void zoom(SoCamera * camera, float diffvalue);
void zoomByCursor(const SbVec2f & thispos, const SbVec2f & prevpos);
Expand Down

0 comments on commit 093314e

Please sign in to comment.