osgEarth 2.1.1
Public Member Functions | Public Attributes

seamless::anonymous_namespace{Geographic.cpp}::HeightFieldRequest Struct Reference

Inheritance diagram for seamless::anonymous_namespace{Geographic.cpp}::HeightFieldRequest:
Collaboration diagram for seamless::anonymous_namespace{Geographic.cpp}::HeightFieldRequest:

List of all members.

Public Member Functions

 HeightFieldRequest (Geographic *gpatchset, const TileKey &key)
void operator() (ProgressCallback *progress)

Public Attributes

ref_ptr< Geographic_gpatchset
TileKey _key
ref_ptr< Vec3Array > _normalResult
MapFrame _mapf

Detailed Description

Definition at line 340 of file Geographic.cpp.


Constructor & Destructor Documentation

seamless::anonymous_namespace{Geographic.cpp}::HeightFieldRequest::HeightFieldRequest ( Geographic gpatchset,
const TileKey key 
) [inline]

Definition at line 342 of file Geographic.cpp.

    {
    }
    void operator()(ProgressCallback* progress)
    {
        const Map* map = _gpatchset->getMap();

Member Function Documentation

void seamless::anonymous_namespace{Geographic.cpp}::HeightFieldRequest::operator() ( ProgressCallback progress) [inline, virtual]

Implements osgEarth::TaskRequest.

Definition at line 347 of file Geographic.cpp.

        {
            GeoHeightFieldVector hfs;
            for (int child = 0; child < 4; ++child)
            {
                TileKey subCubeKey = _key.createChildKey(child);
                hfs.push_back(getGeoHeightField(_mapf, subCubeKey, resolution));
            }
            hf = mergeHeightFields(_key.getExtent(), hfs);
        }
        else
        {
            hf = getGeoHeightField(_mapf, _key, resolution);
        }
        int patchDim = resolution + 1;
        Vec3Array* verts = new Vec3Array(patchDim * patchDim);
        _result = verts;
        _normalResult = new Vec3Array(patchDim * patchDim);
        expandHeights(_gpatchset.get(), _key, hf,
                      verts, _normalResult.get());
    }
    ref_ptr<Geographic> _gpatchset;
    TileKey _key;
    // vertices are in _result;

Here is the call graph for this function:


Member Data Documentation

ref_ptr<Geographic> seamless::anonymous_namespace{Geographic.cpp}::HeightFieldRequest::_gpatchset

Definition at line 373 of file Geographic.cpp.

TileKey seamless::anonymous_namespace{Geographic.cpp}::HeightFieldRequest::_key

Definition at line 374 of file Geographic.cpp.

MapFrame seamless::anonymous_namespace{Geographic.cpp}::HeightFieldRequest::_mapf

Definition at line 377 of file Geographic.cpp.

ref_ptr<Vec3Array> seamless::anonymous_namespace{Geographic.cpp}::HeightFieldRequest::_normalResult

Definition at line 376 of file Geographic.cpp.


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