Added option to Locator to help specify here the locator value was defined from.

Update wrappers and Gdal plugin to use this new parameter
This commit is contained in:
Robert Osfield
2007-09-05 14:15:55 +00:00
parent 9e7a944639
commit a2447d493c
5 changed files with 305 additions and 275 deletions

View File

@@ -102,6 +102,9 @@ class OSGTERRAIN_EXPORT Locator : public osg::Object
}
bool computeLocalBounds(Locator& source, osg::Vec3d& bottomLeft, osg::Vec3d& topRight);
void setDefinedInFile(bool flag) { _definedInFile = flag; }
bool getDefinedInFile() const { return _definedInFile; }
protected:
@@ -115,6 +118,8 @@ class OSGTERRAIN_EXPORT Locator : public osg::Object
osg::Matrixd _transform;
osg::Matrixd _inverse;
bool _definedInFile;
};