Fixed Locator::setTransform method so it takes a const Matrixd&, and improved

the setting of Locator in the gdal plugin.
This commit is contained in:
Robert Osfield
2007-09-16 17:48:07 +00:00
parent 41dc911166
commit ae5883dd23
3 changed files with 18 additions and 8 deletions

View File

@@ -77,7 +77,7 @@ class OSGTERRAIN_EXPORT Locator : public osg::Object
/** Set the transformation from local coordinates to model coordinates.*/
void setTransform(osg::Matrixd& transform) { _transform = transform; _inverse.invert(_transform); }
void setTransform(const osg::Matrixd& transform) { _transform = transform; _inverse.invert(_transform); }
/** Set the transformation from local coordinates to model coordinates.*/
const osg::Matrixd& getTransform() const { return _transform; }