osgEarth 2.1.1
Public Member Functions | Public Attributes

TileFrame Class Reference

Collaboration diagram for TileFrame:

List of all members.

Public Member Functions

 TileFrame (Tile *tile)
bool getCustomColorLayer (UID layerUID, CustomColorLayer &out) const

Public Attributes

TileKey _tileKey
ColorLayersByUID _colorLayers
osg::ref_ptr
< osgTerrain::HeightFieldLayer > 
_elevationLayer
osg::ref_ptr< osgTerrain::Locator > _locator
float _sampleRatio
MaskLayerVector _masks

Detailed Description

Thread-safe working copy of Tile contents.

Definition at line 178 of file Tile.


Constructor & Destructor Documentation

TileFrame::TileFrame ( Tile tile)

Definition at line 355 of file Tile.cpp.

                                 :
_tileKey(tile->getKey())
{
    Threading::ScopedReadLock sharedLock( tile->_tileLayersMutex );
    _colorLayers    = tile->_colorLayers;
    _elevationLayer = tile->getElevationLayer();
    _locator        = tile->getLocator();
    osg::ref_ptr< Terrain > terrain = tile->getTerrain();
    if (terrain.valid())
    {
        _sampleRatio  = terrain->getSampleRatio();
    }
    _masks          = MaskLayerVector(tile->getTerrainMasks());
}

Here is the call graph for this function:


Member Function Documentation

bool TileFrame::getCustomColorLayer ( UID  layerUID,
CustomColorLayer out 
) const [inline]

Definition at line 191 of file Tile.

                                                                          {
        ColorLayersByUID::const_iterator i = _colorLayers.find( layerUID );
        if ( i != _colorLayers.end() ) {
            out = i->second;
            return true;
        }
        return false;
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 184 of file Tile.

osg::ref_ptr< osgTerrain::HeightFieldLayer > TileFrame::_elevationLayer

Definition at line 185 of file Tile.

osg::ref_ptr< osgTerrain::Locator > TileFrame::_locator

Definition at line 186 of file Tile.

Definition at line 188 of file Tile.

Definition at line 187 of file Tile.

Definition at line 183 of file Tile.


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