Public Member Functions | |
HeightFieldLayer () | |
HeightFieldLayer (const HeightFieldLayer &hfLayer, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_Object (osgTerrain, HeightFieldLayer) | |
void | setFileName (const std::string &filename) |
virtual const std::string & | getFileName () const |
virtual bool | transform (float offset, float scale) |
void | setHeightField (osg::HeightField *hf) |
osg::HeightField * | getHeightField () |
const osg::HeightField * | getHeightField () const |
virtual unsigned int | getNumColumns () const |
virtual unsigned int | getNumRows () const |
virtual bool | getValue (unsigned int i, unsigned int j, float &value) const |
virtual bool | getValue (unsigned int i, unsigned int j, osg::Vec2 &value) const |
virtual bool | getValue (unsigned int i, unsigned int j, osg::Vec3 &value) const |
virtual bool | getValue (unsigned int i, unsigned int j, osg::Vec4 &value) const |
virtual void | dirty () |
increment the modified count. | |
virtual void | setModifiedCount (unsigned int value) |
Set the modified count value. | |
virtual unsigned int | getModifiedCount () const |
Get modified count value. | |
Protected Member Functions | |
virtual | ~HeightFieldLayer () |
Protected Attributes | |
unsigned int | _modifiedCount |
osg::ref_ptr < osg::HeightField > | _heightField |
osgTerrain::HeightFieldLayer::HeightFieldLayer | ( | ) |
osgTerrain::HeightFieldLayer::HeightFieldLayer | ( | const HeightFieldLayer & | hfLayer, | |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY | |||
) |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osgTerrain::HeightFieldLayer::~HeightFieldLayer | ( | ) | [inline, protected, virtual] |
osgTerrain::HeightFieldLayer::META_Object | ( | osgTerrain | , | |
HeightFieldLayer | ||||
) |
void osgTerrain::HeightFieldLayer::setFileName | ( | const std::string & | filename | ) | [inline, virtual] |
Reimplemented from osgTerrain::Layer.
virtual const std::string& osgTerrain::HeightFieldLayer::getFileName | ( | ) | const [inline, virtual] |
Reimplemented from osgTerrain::Layer.
virtual bool osgTerrain::HeightFieldLayer::transform | ( | float | offset, | |
float | scale | |||
) | [virtual] |
Reimplemented from osgTerrain::Layer.
void osgTerrain::HeightFieldLayer::setHeightField | ( | osg::HeightField * | hf | ) |
osg::HeightField* osgTerrain::HeightFieldLayer::getHeightField | ( | ) | [inline] |
const osg::HeightField* osgTerrain::HeightFieldLayer::getHeightField | ( | ) | const [inline] |
virtual unsigned int osgTerrain::HeightFieldLayer::getNumColumns | ( | ) | const [inline, virtual] |
Reimplemented from osgTerrain::Layer.
virtual unsigned int osgTerrain::HeightFieldLayer::getNumRows | ( | ) | const [inline, virtual] |
Reimplemented from osgTerrain::Layer.
virtual bool osgTerrain::HeightFieldLayer::getValue | ( | unsigned int | i, | |
unsigned int | j, | |||
float & | value | |||
) | const [virtual] |
Reimplemented from osgTerrain::Layer.
virtual bool osgTerrain::HeightFieldLayer::getValue | ( | unsigned int | i, | |
unsigned int | j, | |||
osg::Vec2 & | value | |||
) | const [virtual] |
Reimplemented from osgTerrain::Layer.
virtual bool osgTerrain::HeightFieldLayer::getValue | ( | unsigned int | i, | |
unsigned int | j, | |||
osg::Vec3 & | value | |||
) | const [virtual] |
Reimplemented from osgTerrain::Layer.
virtual bool osgTerrain::HeightFieldLayer::getValue | ( | unsigned int | i, | |
unsigned int | j, | |||
osg::Vec4 & | value | |||
) | const [virtual] |
Reimplemented from osgTerrain::Layer.
virtual void osgTerrain::HeightFieldLayer::dirty | ( | ) | [virtual] |
virtual void osgTerrain::HeightFieldLayer::setModifiedCount | ( | unsigned int | ) | [virtual] |
virtual unsigned int osgTerrain::HeightFieldLayer::getModifiedCount | ( | ) | const [virtual] |
unsigned int osgTerrain::HeightFieldLayer::_modifiedCount [protected] |