osgEarth 2.1.1
Public Member Functions | Public Attributes

AsyncInsert Struct Reference

Inheritance diagram for AsyncInsert:
Collaboration diagram for AsyncInsert:

List of all members.

Public Member Functions

 AsyncInsert (const TileKey &key, const CacheSpec &spec, const osg::Image *image, AsyncCache *cache)
void operator() (ProgressCallback *progress)

Public Attributes

CacheSpec _cacheSpec
TileKey _key
osg::ref_ptr< const osg::Image > _image
osg::observer_ptr< AsyncCache_cache

Detailed Description

Definition at line 953 of file Sqlite3Cache.cpp.


Constructor & Destructor Documentation

AsyncInsert::AsyncInsert ( const TileKey key,
const CacheSpec spec,
const osg::Image *  image,
AsyncCache cache 
) [inline]

Definition at line 954 of file Sqlite3Cache.cpp.

        : _cacheSpec(spec), _key(key), _image(image), _cache(cache) { }

Member Function Documentation

void AsyncInsert::operator() ( ProgressCallback progress) [inline, virtual]

Implements osgEarth::TaskRequest.

Definition at line 957 of file Sqlite3Cache.cpp.

                                                  {
        osg::ref_ptr<AsyncCache> cache = _cache.get();
        if ( cache.valid() )
            cache->setImageSync( _key, _cacheSpec, _image.get() );
    }

Member Data Documentation

osg::observer_ptr<AsyncCache> AsyncInsert::_cache

Definition at line 966 of file Sqlite3Cache.cpp.

Definition at line 963 of file Sqlite3Cache.cpp.

osg::ref_ptr<const osg::Image> AsyncInsert::_image

Definition at line 965 of file Sqlite3Cache.cpp.

Definition at line 964 of file Sqlite3Cache.cpp.


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