From ce79e6f4004957c12af26d15de0d604d569ee4ee Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 8 Mar 2004 11:41:57 +0000 Subject: [PATCH] Added osgGA::TrackballManipulator::g/setMinimumZoomScale() method. --- include/osgGA/TrackballManipulator | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/osgGA/TrackballManipulator b/include/osgGA/TrackballManipulator index 6dbada132..604486951 100644 --- a/include/osgGA/TrackballManipulator +++ b/include/osgGA/TrackballManipulator @@ -27,6 +27,13 @@ class OSGGA_EXPORT TrackballManipulator : public MatrixManipulator virtual const char* className() const { return "Trackball"; } + /** set the minimum distance (as ratio) the eye point can be zoomed in towards the + center before the center is pushed forward.*/ + void setMinimumZoomScale(float minimumZoomScale) { _minimumZoomScale=minimumZoomScale; } + + /** get the minimum distance (as ratio) the eye point can be zoomed in */ + float getMinimumZoomScale() const { return _minimumZoomScale; } + /** set the position of the matrix manipulator using a 4x4 Matrix.*/ virtual void setByMatrix(const osg::Matrixd& matrix);