随笔分类 -  C++

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 33 下一页
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in... 阅读全文
posted @ 2019-06-25 20:13 西北逍遥 阅读(552) 评论(0) 推荐(0)
摘要:#pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #... 阅读全文
posted @ 2019-06-25 20:00 西北逍遥 阅读(222) 评论(0) 推荐(0)
摘要:<osgGA/MatrixManipulator>:No such file or directory 修改为 #include <osgGA/CameraManipulator> osgGA::GUIEventHandler osgGA::CameraManipulator osgGA::Stan 阅读全文
posted @ 2019-06-24 20:26 西北逍遥 阅读(1145) 评论(0) 推荐(0)
摘要:VCNodeMatrix.h VCNodeMatrix.cpp 阅读全文
posted @ 2019-06-24 17:55 西北逍遥 阅读(1400) 评论(0) 推荐(0)
摘要:osg::ref_ptr OSG_Qt_::operateMatrix() { osg::ref_ptr group = new osg::Group; osg::ref_ptr node1 = osgDB::readNodeFile("D:\\参考手册\\BIM\\osg\\tanker.OSGB"); osg::ref_ptr node2 = osgDB::readN... 阅读全文
posted @ 2019-06-23 21:20 西北逍遥 阅读(571) 评论(0) 推荐(0)
摘要:osg::ref_ptr OSG_Qt_::operateMatrix() { osg::ref_ptr group = new osg::Group; osg::ref_ptr node = osgDB::readNodeFile("D:\\参考手册\\BIM\\osg\\tanker.OSGB"); //return node; group->addChild... 阅读全文
posted @ 2019-06-23 20:16 西北逍遥 阅读(1040) 评论(0) 推荐(0)
摘要:osg::ref_ptr OSG_Qt_::createSimple() { osg::ref_ptr geode = new osg::Geode; osg::ref_ptr geometry = new osg::Geometry; //申请顶点 osg::ref_ptr coords = new osg::Vec3Array; //申请颜色 ... 阅读全文
posted @ 2019-06-23 19:48 西北逍遥 阅读(364) 评论(0) 推荐(0)
摘要:osg::ref_ptr OSG_Qt_::createBox() { osg::ref_ptr osg_geode = new osg::Geode; osg::ref_ptr osg_hints = new osg::TessellationHints; osg::ref_ptr osg_box = new osg::Box(osg::Vec3(0.0, 0.0, 0... 阅读全文
posted @ 2019-06-22 21:39 西北逍遥 阅读(315) 评论(0) 推荐(0)
摘要:osg::ref_ptr MyOSGLoadEarth::CreateNode() { osg::ref_ptr _root = new osg::Group; //定义并读取高程文件 //真实高程文件名称为:ASTGTM2_N34E110_dem.tif //属于特殊的tiff格式,GEOTiff //读取的时候使用osg的gdal插件进行读取,所以... 阅读全文
posted @ 2019-06-22 19:23 西北逍遥 阅读(457) 评论(0) 推荐(0)
摘要:void vc_widget::keyPressEvent(QKeyEvent *ev) { if (ev->key() == Qt::Key_Up) { qDebug() key() == Qt::Key_Down) { qDebug() key() == Qt::Key_Left) { qDebug() key() == Qt::Key_Right) ... 阅读全文
posted @ 2019-06-21 07:57 西北逍遥 阅读(6539) 评论(0) 推荐(0)
摘要:std::string cstr;QString qstring; //QString str1 = " D:\\参考手册\\BIM\\osg\\build1.OSGB"; //从std::string 到QString qstring = QString(QString::fromLocal8Bi 阅读全文
posted @ 2019-06-17 16:19 西北逍遥 阅读(3925) 评论(0) 推荐(0)
摘要:graphicswindowqt.h graphicswindowqt.cpp vcqtosgwidget.h vcqtosgwidget.cpp main.cpp 阅读全文
posted @ 2019-06-16 20:11 西北逍遥 阅读(1857) 评论(0) 推荐(0)
摘要:osgViewer::Viewer* _viewer = nullptr; _viewer = new osgViewer::Viewer;osg::ref_ptr<osg::Group> root = new osg::Group;//注意:这两句话的先后顺序 先添加模型在添加相机//root-> 阅读全文
posted @ 2019-06-15 20:27 西北逍遥 阅读(1330) 评论(0) 推荐(0)
摘要:#ifdef _WIN32#include <Windows.h>#endif // _WIN32 #include <osgViewer/Viewer>#include <osgDB/ReadFile>#include <osgGA/GUIEventAdapter>#include <osgVie 阅读全文
posted @ 2019-06-14 20:41 西北逍遥 阅读(224) 评论(0) 推荐(0)
摘要:#include <iostream>#include <algorithm>#include <vector> using namespace std; int main(){ vector<int> vec1; vector<int>::iterator vec_iter1; for (int 阅读全文
posted @ 2019-06-13 10:58 西北逍遥 阅读(414) 评论(0) 推荐(0)
摘要:#include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ 阅读全文
posted @ 2019-06-12 21:32 西北逍遥 阅读(268) 评论(0) 推荐(0)
摘要:#include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ 阅读全文
posted @ 2019-06-12 21:29 西北逍遥 阅读(442) 评论(0) 推荐(0)
摘要:#include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ 阅读全文
posted @ 2019-06-12 21:26 西北逍遥 阅读(439) 评论(0) 推荐(0)
摘要:#include <iostream>#include <algorithm>#include <deque> using namespace std; int main(){ deque<int> deq1; deque<int>::iterator deq_iter1; for (int k=0 阅读全文
posted @ 2019-06-12 21:20 西北逍遥 阅读(380) 评论(0) 推荐(0)
摘要:#include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ 阅读全文
posted @ 2019-06-12 21:15 西北逍遥 阅读(205) 评论(0) 推荐(0)

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 33 下一页