osgEarth 2.1.1
|
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 |
Definition at line 340 of file Geographic.cpp.
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();
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;
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.