目标:(三十)中的问题89
osgEarth::MapInfo主要用于记录Map的参数配置信息、投影信息(大地、正交、立方体)和高程插值信息。一般从Map生成MapInfo mapInfo(context->getMap());
osgEarth/MapInfo
class OSGEARTH_EXPORT MapInfo
{
osg::ref_ptr<const Profile> _profile;
bool _isGeocentric, _isCube;
ElevationInterpolation _elevationInterpolation;
}
osgEarth::MapFrame的作用见(三十),一般也是从Map生成,它里面包含了MapInfo的信息(在setMap时会构造)。
osgEarth/MapFrame
class OSGEARTH_EXPORT MapFrame
{
bool _initialized;
osg::observer_ptr<const Map> _map;
std::string _name;
MapInfo _mapInfo;
Revision _mapDataModelRevision;
LayerVector _layers;
ElevationLayerVector _elevationLayers;
unsigned _highestMinLevel;
osg::ref_ptr<osg::Referenced> _pool;
}
osgEarth/MapFrame.cpp
voi