osgEarth 2.1.1
Public Member Functions | Public Attributes

CustomTileFrame Class Reference

Collaboration diagram for CustomTileFrame:

List of all members.

Public Member Functions

 CustomTileFrame (CustomTile *tile)
bool getCustomColorLayer (UID layerUID, CustomColorLayer &out) const

Public Attributes

TileKey _tileKey
ColorLayersByUID _colorLayers
osg::ref_ptr< osgTerrain::Layer > _elevationLayer
osg::ref_ptr< osgTerrain::Locator > _locator
float _sampleRatio
osg::ref_ptr< osg::Vec3dArray > _mask

Detailed Description

Definition at line 277 of file CustomTile.


Constructor & Destructor Documentation

CustomTileFrame::CustomTileFrame ( CustomTile tile) [inline]

Definition at line 280 of file CustomTile.

        : _tileKey(tile->getKey())
    {
        Threading::ScopedReadLock sharedLock( tile->_tileLayersMutex );
        _colorLayers = tile->_colorLayers;
        _elevationLayer = tile->getElevationLayer();
        _locator = tile->getLocator();
        _sampleRatio = tile->getTerrain()->getSampleRatio();
        _mask = tile->getTerrainMaskGeometry();
    }

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 297 of file CustomTile.

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

Member Data Documentation

Definition at line 291 of file CustomTile.

osg::ref_ptr< osgTerrain::Layer > CustomTileFrame::_elevationLayer

Definition at line 292 of file CustomTile.

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

Definition at line 293 of file CustomTile.

osg::ref_ptr< osg::Vec3dArray > CustomTileFrame::_mask

Definition at line 295 of file CustomTile.

Definition at line 294 of file CustomTile.

Definition at line 290 of file CustomTile.


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