List of all members.
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 |
Constructor & Destructor Documentation
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] |
Member Function Documentation
virtual void osgTerrain::HeightFieldLayer::dirty |
( |
| ) |
[virtual] |
virtual const std::string& osgTerrain::HeightFieldLayer::getFileName |
( |
| ) |
const [inline, virtual] |
const osg::HeightField* osgTerrain::HeightFieldLayer::getHeightField |
( |
| ) |
const [inline] |
virtual unsigned int osgTerrain::HeightFieldLayer::getModifiedCount |
( |
| ) |
const [virtual] |
virtual unsigned int osgTerrain::HeightFieldLayer::getNumColumns |
( |
| ) |
const [inline, virtual] |
virtual unsigned int osgTerrain::HeightFieldLayer::getNumRows |
( |
| ) |
const [inline, virtual] |
virtual bool osgTerrain::HeightFieldLayer::getValue |
( |
unsigned int |
, |
|
|
unsigned int |
, |
|
|
float & |
|
|
) |
| const [virtual] |
Get the layer value at position i,j.
- Parameters:
-
[in] | i | X-axis (or column) index. |
[in] | j | Y-axis (or row) index. |
[out] | value | Returned layer value. |
- Returns:
- true if value is valid, else false
Reimplemented from osgTerrain::Layer.
virtual bool osgTerrain::HeightFieldLayer::getValue |
( |
unsigned int |
i, |
|
|
unsigned int |
j, |
|
|
osg::Vec2 & |
value |
|
) |
| const [virtual] |
virtual bool osgTerrain::HeightFieldLayer::getValue |
( |
unsigned int |
i, |
|
|
unsigned int |
j, |
|
|
osg::Vec3 & |
value |
|
) |
| const [virtual] |
virtual bool osgTerrain::HeightFieldLayer::getValue |
( |
unsigned int |
i, |
|
|
unsigned int |
j, |
|
|
osg::Vec4 & |
value |
|
) |
| const [virtual] |
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] |
virtual bool osgTerrain::HeightFieldLayer::transform |
( |
float |
offset, |
|
|
float |
scale |
|
) |
| [virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: