标签:添加 view int add art getc cal drive url
#include <osgEarthDrivers/model_simple/SimpleModelOptions>
SimpleModelOptions modelOptions;
modelOptions.url() = "cow.osg.(100,100,100).scale";
modelOptions.location() = osg::Vec3(116, 40, 100);//北京地区坐标
map->addModelLayer(new ModelLayer("model layer", modelOptions));
//视点定位北京地区
osgEarth::Viewpoint vp("", 116, 40, 0.0, -2.50, -90.0, 1.5e6);
(dynamic_cast<EarthManipulator*>(viewer.getCameraManipulator()))->setViewpoint(vp);
标签:添加 view int add art getc cal drive url
原文地址:http://www.cnblogs.com/coolbear/p/7256091.html