From Mason Menninger, addition of setTrackballSize() parameter.

This commit is contained in:
Robert Osfield
2005-01-22 16:55:48 +00:00
parent 0fd06a93ec
commit 89236b46fd
2 changed files with 21 additions and 5 deletions

View File

@@ -77,6 +77,12 @@ class OSGGA_EXPORT TrackballManipulator : public MatrixManipulator
/** Get the keyboard and mouse usage of this manipulator.*/
virtual void getUsage(osg::ApplicationUsage& usage) const;
/** Set the size of the trackball. */
void setTrackballSize(float size);
/** Get the size of the trackball. */
float getTrackballSize() const { return _trackballSize; }
protected:
virtual ~TrackballManipulator();
@@ -114,6 +120,7 @@ class OSGGA_EXPORT TrackballManipulator : public MatrixManipulator
osg::Vec3d _center;
osg::Quat _rotation;
double _distance;
float _trackballSize;
};