Added support for reading values from an ImageLayer, and building of the

elevation data in GeometryTechnique.
This commit is contained in:
Robert Osfield
2007-03-30 14:57:57 +00:00
parent 192dbe919b
commit d434ee0db8
3 changed files with 78 additions and 12 deletions

View File

@@ -35,14 +35,15 @@ class OSGTERRAIN_EXPORT Layer : public osg::Object
void setLocator(Locator* locator) { _locator = locator; }
Locator* getLocator() { return _locator.get(); }
const Locator* getLocator() const { return _locator.get(); }
virtual unsigned int getNumColumns() const { return 0; }
virtual unsigned int getNumRows() const { return 0; }
void setDefaultValue(const osg::Vec4& value) { _defaultValue = value; }
const osg::Vec4& getDefaultValue() const { return _defaultValue; }
virtual bool getValue(unsigned int /*i*/, unsigned int /*j*/, float& /*value*/) const { return false; }
virtual bool getValue(unsigned int /*i*/, unsigned int /*j*/, osg::Vec2& /*value*/) const { return false; }
virtual bool getValue(unsigned int /*i*/, unsigned int /*j*/, osg::Vec3& /*value*/) const { return false; }
@@ -112,7 +113,8 @@ class OSGTERRAIN_EXPORT Layer : public osg::Object
virtual ~Layer();
osg::ref_ptr<Locator> _locator;
osg::ref_ptr<Locator> _locator;
osg::Vec4 _defaultValue;
};