osgEarth 2.1.1
Public Member Functions | Public Attributes

anonymous_namespace{StreamingTile.cpp}::TileColorLayerRequest Struct Reference

Inheritance diagram for anonymous_namespace{StreamingTile.cpp}::TileColorLayerRequest:
Collaboration diagram for anonymous_namespace{StreamingTile.cpp}::TileColorLayerRequest:

List of all members.

Public Member Functions

 TileColorLayerRequest (const TileKey &key, const MapFrame &mapf, OSGTileFactory *tileFactory, UID layerUID)
void operator() (ProgressCallback *progress)

Public Attributes

UID _layerUID

Detailed Description

Definition at line 96 of file StreamingTile.cpp.


Constructor & Destructor Documentation

anonymous_namespace{StreamingTile.cpp}::TileColorLayerRequest::TileColorLayerRequest ( const TileKey key,
const MapFrame mapf,
OSGTileFactory tileFactory,
UID  layerUID 
) [inline]

Definition at line 98 of file StreamingTile.cpp.

            : TileLayerRequest( key, mapf, tileFactory ), _layerUID(layerUID) { }

Member Function Documentation

void anonymous_namespace{StreamingTile.cpp}::TileColorLayerRequest::operator() ( ProgressCallback progress) [inline, virtual]

Implements osgEarth::TaskRequest.

Definition at line 101 of file StreamingTile.cpp.

        {
            osg::ref_ptr<ImageLayer> imageLayer = _mapf.getImageLayerByUID( _layerUID );
            if ( imageLayer.valid() )
            {
                _result = _tileFactory->createImageLayer( _mapf.getMapInfo(), imageLayer.get(), _key, progress );
                            if (!wasCanceled())
                            {
                              _numTries++;
                            }
            }
        }

Member Data Documentation

UID anonymous_namespace{StreamingTile.cpp}::TileColorLayerRequest::_layerUID

Definition at line 113 of file StreamingTile.cpp.


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