
Public Member Functions | |
| Terrain () | |
| Terrain (const Terrain &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| META_Node (osgTerrain, Terrain) | |
| virtual void | traverse (osg::NodeVisitor &nv) |
| void | setSampleRatio (float ratio) |
| float | getSampleRatio () const |
| TerrainTile * | getTile (const TileID &tileID) |
| const TerrainTile * | getTile (const TileID &tileID) const |
Protected Types | |
| typedef std::map< TileID, TerrainTile * > | TerrainTileMap |
| typedef std::set< TerrainTile * > | TerrainTileSet |
Protected Member Functions | |
| virtual | ~Terrain () |
| void | registerTerrainTile (TerrainTile *tile) |
| void | unregisterTerrainTile (TerrainTile *tile) |
Protected Attributes | |
| float | _sampleRatio |
| OpenThreads::Mutex | _mutex |
| TerrainTileSet | _terrainTileSet |
| TerrainTileMap | _terrainTileMap |
Friends | |
| class | TerrainTile |
typedef std::map< TileID, TerrainTile* > osgTerrain::Terrain::TerrainTileMap [protected] |
typedef std::set< TerrainTile* > osgTerrain::Terrain::TerrainTileSet [protected] |
| osgTerrain::Terrain::Terrain | ( | ) |
| osgTerrain::Terrain::Terrain | ( | const Terrain & | , | |
| const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY | |||
| ) |
Copy constructor using CopyOp to manage deep vs shallow copy.
| virtual osgTerrain::Terrain::~Terrain | ( | ) | [protected, virtual] |
| osgTerrain::Terrain::META_Node | ( | osgTerrain | , | |
| Terrain | ||||
| ) |
| virtual void osgTerrain::Terrain::traverse | ( | osg::NodeVisitor & | ) | [virtual] |
Traverse downwards : calls children's accept method with NodeVisitor.
Reimplemented from osg::Group.
| void osgTerrain::Terrain::setSampleRatio | ( | float | ratio | ) | [inline] |
Set the sample ratio hint that TerrainTile should use when building geometry. Defaults to 1.0, which means use all original sample points.
| float osgTerrain::Terrain::getSampleRatio | ( | ) | const [inline] |
Get the sample ratio hint.
| TerrainTile* osgTerrain::Terrain::getTile | ( | const TileID & | tileID | ) |
Get the TerrainTile for a given TileID.
| const TerrainTile* osgTerrain::Terrain::getTile | ( | const TileID & | tileID | ) | const |
Get the const TerrainTile for a given TileID.
| void osgTerrain::Terrain::registerTerrainTile | ( | TerrainTile * | tile | ) | [protected] |
| void osgTerrain::Terrain::unregisterTerrainTile | ( | TerrainTile * | tile | ) | [protected] |
friend class TerrainTile [friend] |
float osgTerrain::Terrain::_sampleRatio [protected] |
OpenThreads::Mutex osgTerrain::Terrain::_mutex [mutable, protected] |
TerrainTileSet osgTerrain::Terrain::_terrainTileSet [protected] |
TerrainTileMap osgTerrain::Terrain::_terrainTileMap [protected] |
1.5.6