Show
Ignore:
Timestamp:
03/11/09 11:50:03 (5 years ago)
Author:
robert
Message:

From Martin Beckett, added get/setScrollWheelZoomDelta() support for controlling the mouse scroll wheel zoom delta.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgGA/TrackballManipulator

    r7648 r9896  
    7979        double getMinimumZoomScale() const { return _minimumZoomScale; } 
    8080 
     81        /** set the mouse scroll wheel zoom delta. 
     82          * Range -1.0 to +1.0,  -ve value inverts wheel direction and zero switches off scroll wheel. */ 
     83        void setScroolWheelZoomDelta(double zoomDelta) { _zoomDelta = zoomDelta; } 
     84 
     85        /** get the mouse scroll wheel zoom delta. */ 
     86        double getScroolWheelZoomDelta() const { return _zoomDelta; } 
     87 
    8188        /** Set the center of the trackball. */ 
    8289        void setCenter(const osg::Vec3d& center) { _center = center; } 
     
    140147        double       _distance; 
    141148        float        _trackballSize; 
     149        float        _zoomDelta; 
    142150 
    143151};