osgEarth 2.1.1
|
Public Member Functions | |
void | init (const TileKey &key, const MapInfo &mapInfo, const OSGTerrainOptions &opt, TileBuilder::SourceRepo &repo, const MaskLayerVector &masks=MaskLayerVector()) |
void | execute () |
Public Attributes | |
TileKey | _key |
const MapInfo * | _mapInfo |
const OSGTerrainOptions * | _opt |
TileBuilder::SourceRepo * | _repo |
Tile * | _tile |
MaskLayerVector | _masks |
Definition at line 139 of file TileBuilder.cpp.
void AssembleTile::execute | ( | ) | [inline] |
Definition at line 152 of file TileBuilder.cpp.
{ _tile = new Tile( _key, GeoLocator::createForKey(_key, *_mapInfo), *_opt->quickReleaseGLObjects() ); _tile->setVerticalScale( *_opt->verticalScale() ); //_tile->setRequiresNormals( true ); _tile->setDataVariance( osg::Object::DYNAMIC ); _tile->setTerrainMasks(_masks); // copy over the source data. _tile->setCustomColorLayers( _repo->_colorLayers ); _tile->setElevationLayer( _repo->_elevLayer.getHFLayer() ); osg::BoundingSphere bs = _tile->getBound(); // a skirt hides cracks when transitioning between LODs: osg::HeightField* hf = _repo->_elevLayer.getHFLayer()->getHeightField(); hf->setSkirtHeight(bs.radius() * _opt->heightFieldSkirtRatio().get() ); }
void AssembleTile::init | ( | const TileKey & | key, |
const MapInfo & | mapInfo, | ||
const OSGTerrainOptions & | opt, | ||
TileBuilder::SourceRepo & | repo, | ||
const MaskLayerVector & | masks = MaskLayerVector() |
||
) | [inline] |
Definition at line 172 of file TileBuilder.cpp.
const MapInfo* AssembleTile::_mapInfo |
Definition at line 173 of file TileBuilder.cpp.
Definition at line 177 of file TileBuilder.cpp.
Definition at line 174 of file TileBuilder.cpp.
Definition at line 175 of file TileBuilder.cpp.
Definition at line 176 of file TileBuilder.cpp.