摘要: #include <Windows.h> #include <osg\Node> #include <osg\Group> #include <osg\Geometry> #include <osg\MatrixTransform> #include <osg\NodeCallback> #incl 阅读全文
posted @ 2021-08-28 14:06 暹罗吹雪 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 选中节点高亮显示 #include <Windows.h> #include <osg/Node> #include <osg/Group> #include <osg/Geode> #include <osg/Switch> #include <osgFX/Scribe> #include <os 阅读全文
posted @ 2021-08-28 12:12 暹罗吹雪 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 查找节点名称 #include <Windows.h> #include <osg\Node> #include <osg\Group> #include <osg\Geometry> #include <osgViewer/Viewer> class FindNameVisitor : publi 阅读全文
posted @ 2021-08-27 22:58 暹罗吹雪 阅读(39) 评论(0) 推荐(0) 编辑
摘要: #include <Windows.h> #include <osg\Node> #include <osg\Group> #include <osg\Geometry> #include <osgViewer/Viewer> osg::Vec3Array* createVertexArray() 阅读全文
posted @ 2021-08-27 22:39 暹罗吹雪 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 矩阵缩放 矩阵旋转 矩阵平移 #include <Windows.h> #include <osg\Node> #include <osg\Group> #include <osg\Geometry> #include <osg\MatrixTransform> #include <osgViewe 阅读全文
posted @ 2021-08-25 17:04 暹罗吹雪 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 手动生成纹理坐标 自动生成纹理坐标 纹理与颜色结合 #include <windows.h> #include <osg\node> #include <osg\group> #include <osg\geometry> #include <osg\matrixtransform> #includ 阅读全文
posted @ 2021-08-25 16:40 暹罗吹雪 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 模式 点显示 osgPolygonModePOINT 线显示 osgPolygonModeLINE 面显示 osgPolygonModeFILL 关于 setRenderBinDetails 与setRenderingHint 的关系 为了简化操作,用户程序还可以使用StateSet::setRen 阅读全文
posted @ 2021-08-25 16:23 暹罗吹雪 阅读(183) 评论(0) 推荐(0) 编辑
摘要: #include <Windows.h> #include <osg\Node> #include <osg\Group> #include <osg\Geometry> #include <osgViewer/Viewer> #include <osgViewer/ViewerEventHandl 阅读全文
posted @ 2021-08-24 17:33 暹罗吹雪 阅读(116) 评论(0) 推荐(0) 编辑
摘要: void example02() { GDALAllRegister(); CPLSetConfigOption("GDAL_FILENAME_IS_UTF8", "NO"); //读取图像 const char* pszFilename = "C:\\Qt\\1.tif"; GDALDataset 阅读全文
posted @ 2021-08-24 10:46 暹罗吹雪 阅读(188) 评论(0) 推荐(0) 编辑
摘要: QGraphicsView //当前项矩阵 void transform(); //转换至视口坐标矩阵 void viewportTransform(); //根据视口坐标提取项 void itemAt(); void items(); //视口坐标 -> 场景坐标 void mapToScene( 阅读全文
posted @ 2021-08-21 17:54 暹罗吹雪 阅读(796) 评论(0) 推荐(0) 编辑