随笔分类 - C++
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in...
阅读全文
摘要:#pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #...
阅读全文
摘要:<osgGA/MatrixManipulator>:No such file or directory 修改为 #include <osgGA/CameraManipulator> osgGA::GUIEventHandler osgGA::CameraManipulator osgGA::Stan
阅读全文
摘要:VCNodeMatrix.h VCNodeMatrix.cpp
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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; //申请颜色 ...
阅读全文
摘要: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...
阅读全文
摘要:osg::ref_ptr MyOSGLoadEarth::CreateNode() { osg::ref_ptr _root = new osg::Group; //定义并读取高程文件 //真实高程文件名称为:ASTGTM2_N34E110_dem.tif //属于特殊的tiff格式,GEOTiff //读取的时候使用osg的gdal插件进行读取,所以...
阅读全文
摘要: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) ...
阅读全文
摘要:std::string cstr;QString qstring; //QString str1 = " D:\\参考手册\\BIM\\osg\\build1.OSGB"; //从std::string 到QString qstring = QString(QString::fromLocal8Bi
阅读全文
摘要:graphicswindowqt.h graphicswindowqt.cpp vcqtosgwidget.h vcqtosgwidget.cpp main.cpp
阅读全文
摘要:osgViewer::Viewer* _viewer = nullptr; _viewer = new osgViewer::Viewer;osg::ref_ptr<osg::Group> root = new osg::Group;//注意:这两句话的先后顺序 先添加模型在添加相机//root->
阅读全文
摘要:#ifdef _WIN32#include <Windows.h>#endif // _WIN32 #include <osgViewer/Viewer>#include <osgDB/ReadFile>#include <osgGA/GUIEventAdapter>#include <osgVie
阅读全文
摘要:#include <iostream>#include <algorithm>#include <vector> using namespace std; int main(){ vector<int> vec1; vector<int>::iterator vec_iter1; for (int
阅读全文
摘要:#include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ
阅读全文
摘要:#include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ
阅读全文
摘要:#include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ
阅读全文
摘要:#include <iostream>#include <algorithm>#include <deque> using namespace std; int main(){ deque<int> deq1; deque<int>::iterator deq_iter1; for (int k=0
阅读全文
摘要:#include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ
阅读全文