OpenSceneGraph
3.0.1
|
Public Member Functions | |
HeightFieldLayer (osg::HeightField *hf=0) | |
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) |
Set the file name of the data associated with this layer. | |
virtual const std::string & | getFileName () const |
Get the file name of the layer. | |
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 |
Get the number of columns. | |
virtual unsigned int | getNumRows () const |
Get the number of rows. | |
virtual bool | getValue (unsigned int i, unsigned int j, float &value) const |
Get the layer value at position i,j. | |
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 | ( | 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] |
virtual void osgTerrain::HeightFieldLayer::dirty | ( | ) | [virtual] |
virtual const std::string& osgTerrain::HeightFieldLayer::getFileName | ( | ) | const [inline, virtual] |
Get the file name of the layer.
Reimplemented from osgTerrain::Layer.
osg::HeightField* osgTerrain::HeightFieldLayer::getHeightField | ( | ) | [inline] |
const osg::HeightField* osgTerrain::HeightFieldLayer::getHeightField | ( | ) | const [inline] |
virtual unsigned int osgTerrain::HeightFieldLayer::getModifiedCount | ( | ) | const [virtual] |
Get modified count value.
Reimplemented from osgTerrain::Layer.
virtual unsigned int osgTerrain::HeightFieldLayer::getNumColumns | ( | ) | const [inline, virtual] |
Get the number of columns.
Reimplemented from osgTerrain::Layer.
virtual unsigned int osgTerrain::HeightFieldLayer::getNumRows | ( | ) | const [inline, virtual] |
Get the number of rows.
Reimplemented from osgTerrain::Layer.
virtual bool osgTerrain::HeightFieldLayer::getValue | ( | unsigned int | , |
unsigned int | , | ||
float & | |||
) | const [virtual] |
Get the layer value at position i,j.
[in] | i | X-axis (or column) index. |
[in] | j | Y-axis (or row) index. |
[out] | value | Returned layer value. |
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.
osgTerrain::HeightFieldLayer::META_Object | ( | osgTerrain | , |
HeightFieldLayer | |||
) |
void osgTerrain::HeightFieldLayer::setFileName | ( | const std::string & | filename | ) | [inline, virtual] |
Set the file name of the data associated with this layer.
Reimplemented from osgTerrain::Layer.
virtual void osgTerrain::HeightFieldLayer::setModifiedCount | ( | unsigned int | ) | [virtual] |
Set the modified count value.
Reimplemented from osgTerrain::Layer.
virtual bool osgTerrain::HeightFieldLayer::transform | ( | float | offset, |
float | scale | ||
) | [virtual] |
Reimplemented from osgTerrain::Layer.
unsigned int osgTerrain::HeightFieldLayer::_modifiedCount [protected] |
![]() | Generated at Sat Apr 28 2012 08:44:34 for the OpenSceneGraph by doxygen 1.8.0. |