osgEarth 2.1.1
Public Member Functions | Public Attributes

AssembleTile Struct Reference

Collaboration diagram for AssembleTile:

List of all members.

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

Detailed Description

Definition at line 139 of file TileBuilder.cpp.


Member Function Documentation

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() );
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void AssembleTile::init ( const TileKey key,
const MapInfo mapInfo,
const OSGTerrainOptions opt,
TileBuilder::SourceRepo repo,
const MaskLayerVector masks = MaskLayerVector() 
) [inline]

Definition at line 141 of file TileBuilder.cpp.

    {
        _key     = key;
        _mapInfo = &mapInfo;
        _opt     = &opt;
        _repo    = &repo;
        _tile    = 0L;
        _masks.clear();
        std::copy( masks.begin(), masks.end(), std::back_inserter(_masks) );
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 172 of file TileBuilder.cpp.

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.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines