摘要: 百度去 阅读全文
posted @ 2013-04-22 09:24 酷熊 阅读(285) 评论(0) 推荐(0)
摘要: 视点接近地面时,由于默认的近裁剪面near太大,导致看不见靠近摄像机的物体,这时需要重新调节near和far的值(或者near/far的比率),可以使用osgEarth::Util::AutoClipPlaneCullCallback(osgEarth::MapNode* mapNode)例如:osgViewer::Viewer viewer;viewer.getCamera()->addCullCallback( new osgEarth::Util::AutoClipPlaneCullCallback(mapNode) ); 阅读全文
posted @ 2013-04-19 15:24 酷熊 阅读(2389) 评论(0) 推荐(0)
摘要: 现在有LOD10-LOD15的金字塔数据,可以通过osgearth_backfill工具生成LOD0-LOD9的数据,貌似OE2.3版本没有此工具,⊙﹏⊙b汗,OE2.4是有的 阅读全文
posted @ 2013-04-19 12:48 酷熊 阅读(496) 评论(0) 推荐(0)
摘要: From韶华百世的新浪博客注意,在earthManip->setViewpoint()之前,要先v->setCameraManipulator(earthManip);在使用osgEarth中的EarthManipulator,通过setViewpoint设置视点:1.osg::ref_ptr<osgEarth::Util::EarthManipulator> manip = new osgEarth::Util::EarthManipulator;2.manip->setViewpoint( osgEarth::Util::Viewpoint( 108.0f, 阅读全文
posted @ 2013-04-18 17:25 酷熊 阅读(3546) 评论(0) 推荐(0)
摘要: 一下内容摘自百度文库。//读取方式: 逐行读取, 将行读入字符串, 行之间用回车换行区分//If you want to avoid reading into character arrays,//you can use the C++ string getline() function to read lines into stringsvoid ReadDataFromFileLBLIntoString() { ifstream fin("data.txt"); string s; while( getline(fin,s) ) { cout > s ) { co 阅读全文
posted @ 2013-04-17 17:16 酷熊 阅读(655) 评论(0) 推荐(0)
摘要: 可以使用hlep dir查看帮助dir /a-d /b d:\mydir\*.* > d:\allfiles.txt/b是只保留文件名和后缀,不包含其他注释/a-d表示不输出目录名字dir /s /b d:\mydir > d:\allfiles.txt可以输出子文件夹 阅读全文
posted @ 2013-04-17 16:50 酷熊 阅读(305) 评论(0) 推荐(0)
摘要: 使用DB Manager将access的.mdb格式数据库文件转换成SQLite的.db文件,注意只有DBManager Professional版本才有此转换功能,悲催的是它只有30天试用期假设待转换文件为abc.mdbTools-Server-Server Manager添加一个SQLite服务器(注意试用版只能添加两个服务器)右击Databases添加一个数据库,Name随便起(例如AAA),FileName选择一个路径随便写(例如c:/ABC.db),这样就建立了一个数据库Tools-Data Management-Import Data(DAO)选择abc.mdb,选择所有的表,下一 阅读全文
posted @ 2013-04-10 17:48 酷熊 阅读(358) 评论(0) 推荐(0)
摘要: osg::Vec3p_start(-100,0,0);osg::Vec3p_end(100,0,0);osgUtil::LineSegmentIntersector::Intersections_intersections;osg::ref_ptr_lineSegmentIntersector=newosgUtil::LineSegmentIntersector(p_start,p_end);osgUtil::IntersectionVisitor_iv(_lineSegmentIntersector.get());cow->accept(_iv);_intersections=_lin 阅读全文
posted @ 2013-04-10 11:42 酷熊 阅读(1359) 评论(0) 推荐(0)
摘要: 使用GDAL驱动读取多个数据文件详见OE的tests/gdal_multiple_files.earth文件主要就是<heifhtfield name="terrain" driver="gdal"> <url>../data/terrain</url>//文件夹而不是文件路径 <extensions>tif</extensions></heightfield> 阅读全文
posted @ 2013-04-08 10:04 酷熊 阅读(480) 评论(0) 推荐(0)
摘要: 引用自:http://blog.csdn.net/yangxiao_0203/article/details/7422715设置边框宽度和颜色:QAxObject *range = ... //先获取要画边框的范围然后range->dynamicCall("BorderAround", Style, Width,ColorIndex);Style值:0- no line; 1-solid; 2-big dot;3-small dot;4-dash dot; 5-dash dot dot;ColorIndex:1-black;2-white;3-red;4-green; 阅读全文
posted @ 2013-03-28 11:05 酷熊 阅读(1247) 评论(0) 推荐(0)