cityfly改普利珠 换胎求助

啊超(flycity) - 百万站会员主页
欢迎您来访百万站官网主页!&
每一个网站背后都有一个故事!&
您当前位置:
啊超(flycity)
昵称:啊超性别:女士总分:13
分享次数:1次
登陆次数:保密最后登陆:日加入时间:日
出生日期:日
所在城市:上海
个人主页:
个人介绍:飞城网免费为你提供上海同城的餐厅、外卖、休闲、娱乐、美容、养生、--、票务、鲜花、旅行社、租车、导游、酒店、机票、景点等商家的服务价格、折扣查询和信息对比服务,帮助消费者做出最好的服务选择,上海生活热线,上海滩淘宝就在飞城网!
flycity分享的知识词条
【共1页 总1条
当前第1页】
百万站最具影响力网站推荐榜
(551289人关注, )
(544968人关注, )
(397963人关注, )
(358658人关注, )
(347115人关注, )
(332924人关注, )
(307666人关注, )
(300015人关注, )
(285582人关注, )
(263099人关注, )
2017,与百万网友携手打造百万站!
百万站-百万优秀网站的大本营!我们深信:每一个优秀网站的背后都有一个值得我们解读的故事。转自:http://blog.csdn.net/taor1/article/details/8242480
int&main(int argc, char** argv)
&&&&osg::ArgumentParser arguments(&argc,argv);
&&&&// create the map.
&&&&Map* map = new Map();
&&&&// add a TMS imagery layer:
&&&&imagery.url() = "http://readymap.org/readymap/tiles/1.0.0/22/";
&&&&map-&addImageLayer( new ImageLayer("ReadyMap&imagery", imagery) );
&&&&// create a feature source to load the building footprint shapefile.
&&&&OGRFeatureOptions feature_
&&&&feature_opt.name() = "buildings";
&&&&feature_opt.url() = "../data/boston_buildings_utm19.shp";
&&&&feature_opt.buildSpatialIndex() =
&&&&// a style for the building data:
&&&&Style buildingS
&&&&buildingStyle.setName( "default" );
&&&&ExtrusionSymbol* extrusion = buildingStyle.getOrCreate();
&&&&extrusion-&heightexpression_r() = Numericexpression_r( "3.5 * max( [story_ht_], 1 )" );
&&&&extrusion-&flatten() =
&&&&extrusion-&wallStyleName() = "building-wall";
&&&&extrusion-&roofStyleName() = "building-roof";
&&&&// a style for the wall textures:
&&&&Style wallS
&&&&wallStyle.setName( "building-wall" );
&&&&SkinSymbol* wallSkin = wallStyle.getOrCreate();
&&&&wallSkin-&libraryName() = "us_resources";
&&&&wallSkin-&addTag( "building" );
&&&&wallSkin-&randomSeed() = 1;
&&&&// a style for the rooftop textures:
&&&&Style roofS
&&&&roofStyle.setName( "building-roof" );
&&&&SkinSymbol* roofSkin = roofStyle.getOrCreate();
&&&&roofSkin-&libraryName() = "us_resources";
&&&&roofSkin-&addTag( "rooftop" );
&&&&roofSkin-&randomSeed() = 1;
&&&&roofSkin-&isTiled() =
&&&&// assemble a stylesheet and add our styles to it:
&&&&StyleSheet* styleSheet = new StyleSheet();
&&&&styleSheet-&addStyle( buildingStyle );
&&&&styleSheet-&addStyle( wallStyle );
&&&&styleSheet-&addStyle( roofStyle );
&&&&// load a resource library that contains the building textures.
&&&&ResourceLibrary* reslib =&
& & & & &new ResourceLibrary( "us_resources", "../data/resources/textures_us/catalog.xml" );
&&&&styleSheet-&addResourceLibrary( reslib );
&&&&// set up a paging layout for incremental loading.
&&&&FeatureDisplayL
&&&&layout.tileSizeFactor() = 45.0;
&&&&layout.addLevel( FeatureLevel(0.0f, 20000.0f) );
&&&&// create a model layer that will render the buildings according to our style sheet.
&&&&FeatureGeomModelOptions fgm_
&&&&fgm_opt.featureOptions() = feature_
&&&&fgm_opt.styles() = styleS
&&&&fgm_opt.layout() =
&&&&map-&addModelLayer( new ModelLayer( "buildings", fgm_opt ) );
&&&&// initialize a viewer:
&&&&osgViewer::Viewer viewer(arguments);
&&&&EarthManipulator* manip = new EarthManipulator();
&&&&viewer.setCameraManipulator( manip );
&&&&// make the map scene graph:
&&&&osg::Group* root = new osg::Group();
&&&&viewer.setSceneData( root );
&&&&MapNode* mapNode = new MapNode( map );
&&&&root-&addChild( mapNode );
&&&&// Process cmdline args
&&&&MapNodeH
&&&&helper.configureView( &viewer );
//在configureView中加入了
// add some stock OSG handlers:
//view-&addEventHandler(new osgViewer::StatsHandler());
//view-&addEventHandler(new osgViewer::WindowSizeHandler());
//view-&addEventHandler(new osgViewer::ThreadingHandler());
//view-&addEventHandler(new osgViewer::LODScaleHandler());
//view-&addEventHandler(new osgGA::StateSetManipulator(view-&getCamera()-&getOrCreateStateSet()));
// osgEarth benefits from pre-compilation of GL objects in the pager. In newer versions of
// OSG, this activates OSG's IncrementalCompileOpeartion in order to avoid frame breaks.
//view-&getDatabasePager()-&setDoPreCompile( true );
&&&&helper.parse(mapNode, arguments, &viewer, root, new LabelControl("City Demo"));
&&&&//处理控制台命令
&&&&// zoom to a good startup position
&&&&manip-&setViewpoint( Viewpoint(-71.25, 0, 24.261, -21.6, 3450.0), 5.0 );
&&&&viewer.getDatabasePager()-&setDoPreCompile( true );
&&&&viewer.getCamera()-&addCullCallback( new AutoClipPlaneCullCallback(mapNode) );
&&&&return viewer.run();
1、Map* map=new Map();//创建一个地图
&&&TMSO//图像层
&&&imagery.url() = "http://readymap.org/readymap/tiles/1.0.0/22/";
&&&map-&addImageLayer(new ImageLayer("....",imagery));//加入该层
2、得到建筑物的矢量轮廓
&&&OGRFeatureOptions feature_
&&&feature_opt.name()="buildings";
&&&feature_opt.url()=".....shp";//矢量文件路径
&&&feature_opt.buildSpatialIndex()=//构建空间索引,既然是索引,感觉是不是应该提速的。???
3、建筑物的风格
&&&Style buildingS
&&&buildingStyle.setName("default");
&&&ExtrusionSymbol* extrusion=buildingStyle.getOrCreate();
&&&extrusion-&height()=Numericexpression_r(3.5*max([story_ht_],1));//这应该是把建筑物拔高的
&&&extrusion-&flatten()=//这应该是是屋顶平的
&&&extrusion-&wallStyleName()="building_wall";//墙的风格名
&&&extrusion-&roofStyleName()="building_roof";//屋顶的风格名
4、墙的纹理
&&&Style wallS
&&&wallStyle.setName("building_wall");
&&&SkinSymbol* wallSkin=wallStyle.getOrCreate();
&&&wallSkin-&libraryName()="us_resource";//资源库名
&&&wallSkin-&addTag("building");//用资源库中building标签
&&&wallSkin-&randomSeed()=1;在多个building中随机取值
5、房顶纹理
&&&// a style for the rooftop textures:
&&&&Style roofS
&&&&roofStyle.setName( "building-roof" );
&&&&SkinSymbol* roofSkin = roofStyle.getOrCreate();
&&&&roofSkin-&libraryName() = "us_resources";
&&&&roofSkin-&addTag( "rooftop" );
&&&&roofSkin-&randomSeed() = 1;
&&&&roofSkin-&isTiled() =//进行分块
6、组装style
&&&&&// assemble a stylesheet and add our styles to it:
&&&&StyleSheet* styleSheet = new StyleSheet();
&&&&styleSheet-&addStyle( buildingStyle );
&&&&styleSheet-&addStyle( wallStyle );
&&&&styleSheet-&addStyle( roofStyle );
7、加载资源库
&&&&ResourceLibrary* resLib=new ResourceLibrary("us_resource","../data/resources/textures_us/catalog.xml");
8、对页面进行分块,加快加载
&&&FeatureDisplayL
&&&layout.tileSizeFactor()=45.0;//分成45块
&&&layout.addLevel(FeatureLevel(0.0,20000.0));范围是0-20000.0,所以每块大小为.0
9、现在在图像层上,加入建筑物层
&&&FeatureGeomModelOptions fgm_
&&&fgm_opt.layout()=
&&&fgm_opt.styles()=styleS
&&&fgm_opt.featureOptions()=feature_
&&&map-&addModelLayer(new ModelLayer("building",fgm_opt));
10、加入场景
&&&&// make the map scene graph:
&&&&osg::Group* root = new osg::Group();
&&&&viewer.setSceneData( root );
&&&&MapNode* mapNode=new MapNode(map);
&&&&root-&addChild(mapNode);
&&&&MapNodeH
&&&&helper.configureView(&viewer);
&&&//在configureView中加入了
// add some stock OSG handlers:
//view-&addEventHandler(new osgViewer::StatsHandler());
//view-&addEventHandler(new osgViewer::WindowSizeHandler());
//view-&addEventHandler(new osgViewer::ThreadingHandler());
//view-&addEventHandler(new osgViewer::LODScaleHandler());
//view-&addEventHandler(new osgGA::StateSetManipulator(view-&getCamera()-&getOrCreateStateSet()));
// osgEarth benefits from pre-compilation of GL objects in the pager. In newer versions of
// OSG, this activates OSG's IncrementalCompileOpeartion in order to avoid frame breaks.
//view-&getDatabasePager()-&setDoPreCompile( true );
&&&&&&helper.parse(mapNode, arguments, &viewer, root, new LabelControl("City Demo"));//处理控制台命令,在屏幕左下角加上LabelControl控件
&&&&&&&// zoom to a good startup position
&&&&manip-&setViewpoint( Viewpoint(-71.25, 0, 24.261, -21.6, 3450.0), 5.0 );&&&&//5秒内转到设置的视点
&&&&viewer.getDatabasePager()-&setDoPreCompile( true );
&&&&viewer.getCamera()-&addCullCallback( new AutoClipPlaneCullCallback(mapNode) );
阅读(...) 评论()查看: 1599|回复: 8
请版主留情,出一台心爱的都市飞翔CITY-FLY
阅读权限10
想看更多乔友精彩活动,马上注册加入部落吧!
才可以下载或查看,没有帐号?
请版主留情,出一台心爱的都市飞翔CITY-FLY。日登记上牌的,目前行驶一万多公里,买车前到现在一直关注我们的轮论坛,给爱车加了点烟器,用的都是推荐的机油,97号油品伺候,因为单位要拆掉我的车库停四轮,忍痛出卖这辆和我经历风雨的爱车,可发物流车子是在朋友的车店买的远道的兄弟定木板发出放心,车在广西牌随便过户,保险行驶证大绿本都在。明盘6500米,看人品接刀。有意联系,微信GL18077,非诚勿扰。
93.jpg (231.27 KB, 下载次数: 28)
14:11 上传
348.jpg (183.95 KB, 下载次数: 27)
14:11 上传
2.jpg (155.96 KB, 下载次数: 26)
14:11 上传
833.jpg (195.89 KB, 下载次数: 26)
14:11 上传
774.jpg (160.57 KB, 下载次数: 25)
14:11 上传
064.jpg (232.13 KB, 下载次数: 27)
14:11 上传
阅读权限10
阅读权限10
是fly-150吗??
阅读权限100
重点是因为要停四轮而挤兑两轮,楼主的加把劲啊,回头买辆比老板的车还好的四轮停单位去,让丫不服,你炒了丫先。逗乐一下,好车帮顶!
阅读权限20
广西哪里的车
阅读权限10
8 Q0 w/ d1 M% m- Y5 w& C
是fly-150吗??
都市飞翔125,150是出口的,你可以回去自己改350元的配件
阅读权限10
重点是因为要停四轮而挤兑两轮,楼主的加把劲啊,回头买辆比老板的车还好的四轮停单位去,让丫不服,你炒了 ...
谢谢,我也觉得,我不行就用我的摩托占个车位
阅读权限10
9 w, R: l2 @1 p5 h, d$ a& N0 M
广西哪里的车) z+ z, l. [0 C6 @
桂L百色的隶属县城的
阅读权限100
9 _1 g- L1 E% Q% n. N, q
谢谢,我也觉得,我不行就用我的摩托占个车位, F) s, i! ^5 q( o! V&&W" q&&{
必须的,不要对公家客气
Powered by

我要回帖

更多关于 比亚乔city fly125 的文章

 

随机推荐