06 2019 档案
摘要:void ViewerBase::frame(double simulationTime) { if (_done) return; // OSG_NOTICE<<std::endl<<"CompositeViewer::frame()"<<std::endl<<std::endl; if (_fi
阅读全文
摘要:setUpViewOnSingleScreen 和 setUpViewAcrossAllScreens 函数的实现流程与上一日介绍的 setUpViewInWindow 区别不是很大。值得注意的是,setUpViewAcrossAllScreens 函数中调用 GraphicsContext::ge
阅读全文
摘要:当前位置:osgViewer/View.cpp 第 575 行,osgViewer::View::setUpViewInWindow()这个函数有五个传入参数:窗口左上角坐标 x,y,宽度 width,高度 height,以及屏幕数 screenNum。它的作用顾名思义是根据给定的窗口参数来创建一个
阅读全文
摘要:开始:osgViewer/ViewerBase.cpp 389行,startThreading()函数,启动线程 void ViewerBase::startThreading() { if (_threadsRunning) return; OSG_INFO<<"Viewer::startThre
阅读全文
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i...
阅读全文
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i...
阅读全文
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i...
阅读全文
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i...
阅读全文
摘要:int main() { osg::ref_ptr viewer1 = new osgViewer::Viewer; osg::ref_ptr pageLdc1 = new osg::PagedLOD; pageLdc1->setFileName(0, "D:\\参考手册\\BIM\\osg\\library.OSGB"); pageLdc1-...
阅读全文
摘要:[0]osg::Group [1]osg::MatrixTransform [1] osg::MatrixTransform [1]osg::MatrixTransform [2] osg::Geode [3]osg::Geometry [3]osg::Geometry [3] osg::Geome
阅读全文
摘要:[1]osg::Group [2]osg::PositionAttitudeTransform [2]osg::MatrixTransform [3]osg::Geode [2]osg::MatrixTransform [2]osg::MatrixTransform [2]osg::MatrixTr
阅读全文
摘要:x:-89.4588 y:-12.1245 z:-11.7807x:-89.4588 y:-6.44823 z:-11.7807x:-89.2164 y:-9.07239 z:-11.811x:-89.4588 y:-12.1245 z:-11.7807x:-89.2164 y:-9.07239 z
阅读全文
摘要:正在从以下位置加载符号:Microsoft符号服务器 尝试取消禁用后续符号加载 进入VS 工具 选项 调试 符号,看右边有个“Microsoft符号服务器”,将前面的勾去掉,(可能还有删除下面的那个缓存)。然后就不会在调试时加载了! Debug卡顿,可以尝试删除 C:\Users\<username
阅读全文
摘要:osg自带窗口去掉边框
阅读全文
摘要:如果你安装的是Autodesk Inventor Professional 2018,那么序列号为:666-69696969,产品密钥为:797J1, 如果你安装的是Autodesk Inventor 2018,那么序列号为:666-69696969,产品密钥为:208J1,输入完后点击下一步; 激
阅读全文
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in...
阅读全文
摘要:Civil 3D 2018百度云地址 https://pan.baidu.com/s/1edeVhG Civil 3D 2019注册机百度云地址 链接: https://pan.baidu.com/s/1KR6R43TXHzQ8tvmNFHWyrg 提取码: gg9w 输入序列号:666-69696
阅读全文
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in...
阅读全文
摘要:#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; //申请颜色 ...
阅读全文
摘要:01 北京 15:00 02 宣化 17:50 17:52 2分钟03 张家口南 18:11 18:17 6分钟04 大同 21:01 21:09 8分钟05 集宁南 22:45 22:51 6分钟06 呼和浩特东 23:53 23:59 6分钟07 包头 01:39 02:05 26分钟08 临河
阅读全文
摘要: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) ...
阅读全文
摘要:(flappbird) luo@luo-All-Series:~/MyFile/TensorflowProject/Mask_RCNN/mask_rcnn_20190518/Mask_RCNN/models/research$ (flappbird) luo@luo-All-Series:~/MyF
阅读全文
摘要:img_data_box_1500 798.jpg /home/luo/TensorflowProject/labelImg/img_data_box_1500/798.jpg Unknown 160 117 3 0
阅读全文
摘要:emit toLine(lineQStr);connect(vcthread, SIGNAL(toLine(QString)), this, SLOT(appendText(QString)));
阅读全文
摘要:/******************************************************************************** ** Form generated from reading UI file 'Qt_img.ui' ** ** Created by: Qt User Interface Compiler version 5.12.2 ** ** ...
阅读全文
摘要:QPainter p(this); QPixmap pixmap; pixmap.load("E:\\参考文件\\image\\1.jpg"); //QPixmap->QImage QImage tempImage = pixmap.toImage(); p.drawImage(0,0,tempIm
阅读全文
摘要:std::string cstr;QString qstring; //QString str1 = " D:\\参考手册\\BIM\\osg\\build1.OSGB"; //从std::string 到QString qstring = QString(QString::fromLocal8Bi
阅读全文
摘要:下载地址:http://pan.baidu.com/download 如果没有安装alien,安装 luo@luo-ThinkPad-W540:~$sudo apt-get install alien Reading package lists... DoneBuilding dependency
阅读全文
摘要: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
阅读全文
摘要:vector<int>::iterator iter1 = partial_sort_copy(deq1.begin(), deq1.end(), vec1.begin(), vec1.end());
阅读全文
摘要:#include <iostream>#include <deque>#include <algorithm>#include <vector>#include <functional> using namespace std; int main(){ deque<int> deq1; deque<
阅读全文
摘要:#include <iostream>#include <deque>#include <algorithm>#include <vector> using namespace std; int main(){ deque<int> deq1; deque<int>::iterator deq_it
阅读全文
摘要:#include <iostream>#include <deque>#include <algorithm>#include <vector> using namespace std; int main(){ deque<int> deq1; deque<int>::iterator deq_it
阅读全文
摘要:#include <iostream>#include <deque>#include <algorithm>#include <functional> using namespace std; int main(){ deque<int> deque1; for (int k=0;k<15;k++
阅读全文
摘要:#include <iostream>#include <algorithm>#include <vector> using namespace std; int main(){ vector<int> vec1; for (int k=0;k<5;k++) { vec1.push_back(ran
阅读全文
摘要:#include <iostream>#include <algorithm>#include <vector>#include <iterator> using namespace std; int main(){ vector<int> vec1; for (int k=0;k<10;k++)
阅读全文
摘要:#include <iostream>#include <algorithm>#include <list>#include <iterator>#include <functional> using namespace std; int main(){ int source[] = { 1,2,3
阅读全文
摘要:#include <iostream>#include <algorithm>#include <list>#include <vector>#include <functional> using namespace std; int main(){ list<int> list1; for (in
阅读全文
摘要:#include <iostream>#include <list>#include <algorithm>#include <iterator>#include <functional> using namespace std; int main(){ list<int> list1; list<
阅读全文
摘要:#include <iostream>#include <algorithm>#include <vector>#include <list>#include <string>#include <functional>#include<iterator> using namespace std; i
阅读全文
摘要:#include <iostream>#include <vector>#include <deque>#include <algorithm> using namespace std; int main(){ vector<int> vec1; deque<int> deq1; for (int
阅读全文
摘要:#include<iostream>#include<vector>#include <list>#include <algorithm>#include <functional> using namespace std; //不需拷贝,速度快void square(int &elementPara
阅读全文
摘要:list<char>::iterator pos; 一般使用前置式递增(preincrement),因为它比后置式递增(postincrement)效率高,因为后置式递增内部需要一个临时对象,因为它必须存放迭代器原来的位置并返回之。
阅读全文
摘要:#include<iostream>#include<vector>#include <list>#include <algorithm>#include <functional> using namespace std; int main(){ vector<int> vec1; list<int
阅读全文
摘要:#include <iostream>#include <algorithm>#include <vector>#include <functional>#include <list> using namespace std; int main(){ list<int> list1; for (in
阅读全文
摘要:#include <iostream>#include <algorithm>#include <list>#include <functional>#include <vector> using namespace std; //已序区间查找int main(){ list<int> list1;
阅读全文
摘要:#include <iostream>#include <algorithm>#include <deque>#include <list>#include <vector>#include <functional> using namespace std; //二元谓词bool isEven(in
阅读全文
摘要:#include <iostream>#include <list>#include <algorithm> using namespace std; int main(){ list<int> list1; for (int k=0;k<10;k++) { list1.push_back(k);
阅读全文
摘要:#include <iostream>#include <algorithm>#include <deque> using namespace std; //二元谓词//比较两个数的大小bool absLess(int elementParam1,int elementParam2){ return
阅读全文
摘要:#include <iostream>#include <algorithm>#include <vector>#include <functional>#include<set> using namespace std; //一元谓词bool isEven(int elementParam){ i
阅读全文
摘要:#include <iostream>#include <set> using namespace std; template<typename Container>void PrintContents(const Container& con); template<typename Contain
阅读全文
摘要:template<typename Container>void PrintContents(const Container& con) { Container::const_iterator iter = con.begin(); while (iter != con.end()) { cout
阅读全文
摘要:#include <iostream>#include <map>#include <string> using namespace std; int main(){ map<int, string> map1; multimap<int, string> multimap1; map1.inser
阅读全文
摘要:#include <iostream>#include <string> using namespace std; int main(){ string str1("hello"); string str2("hello"); string str3("world"); if (str1 != st
阅读全文
摘要:#include <iostream>#include <string> using namespace std; int main(){ string str1("hello"); string str2(" study c++"); string::iterator str_iter = str
阅读全文
摘要:#include <iostream>#include <string> using namespace std; int main(){ string a1; cout << a1<< endl; string s2(5,'a'); cout << s2 << endl; string s3(s2
阅读全文
摘要:#include <iostream>#include <vector> using namespace std; int main(){ vector<int> vec1; for (int k=0;k<20;k++) { vec1.push_back(k); cout << "size:"<<v
阅读全文
摘要:#include <iostream>#include <vector>#include <list>#include <deque> using namespace std; int main(){ vector<int> a; vector<int> b; a.push_back(10); a.
阅读全文
摘要:#include <iostream>#include <list>#include <algorithm>#include <string> using namespace std; int main(){ list<string> slist; slist.push_back("A"); sli
阅读全文
摘要:#pragma oncetemplate<typename T>class smart_pointer{private: T* m_pRawPointer;public: smart_pointer(T* pData) :m_pRawPointer(pData) {} //复制构造函数 smart_
阅读全文
摘要:try { for (int i = 0; i<1000; i++) { test1 = new Test(); cout << i << " new dog success..." << endl; } } catch (bad_alloc err) { cout << "fail:"<<err.
阅读全文
摘要:#include <iostream> using namespace std; const int DefaultSize = 10; class Array{public: Array(int itsSize=DefaultSize); ~Array() { delete[] pType; }
阅读全文
摘要:#include <iostream>#include <stdio.h> using namespace std; class IOException{};class FileException{};class UndefineError{}; void my_copy(const char* s
阅读全文
摘要:#include <iostream>#include <stdio.h> using namespace std; void my_copy(const char* src_file, const char* dest_file){ FILE *in_file, *out_file; in_fil
阅读全文
摘要:#include <iostream>#include <stdio.h> using namespace std; int my_copy(const char* src_file,const char* dest_file){ FILE *in_file, *out_file; in_file
阅读全文
摘要:template<class T> void Queue<T>::Push(const T& item){ /*if (rear == capacity-1) { rear = 0; } else { rear++; }*/ //判断队列是否存满 if ((rear+1)%capacity == f
阅读全文
摘要:package com.bim.rrt_20190529; import static java.lang.Math.pow;import static java.lang.Math.sqrt; import java.util.ArrayList; public class Tree { Node
阅读全文
摘要:#include<iostream>#include<algorithm>#include<vector>using namespace std; int main(){ vector<int> v1; for(int i=0;i<10;++i) { v1.push_back(i); } for_e
阅读全文
摘要:#include <iostream>#include <vector>#include <list> using namespace std; int main(){ vector<int> a; for (int k=0;k<10;k++) { a.push_back(k); } list<ch
阅读全文
摘要:#include <iostream> using namespace std; class AHasPtr {public: AHasPtr(int *p, int i):ptr(p), val(i) {} int getVal() { return this->val; } int *getPt
阅读全文
摘要:#include <iostream> using namespace std; class CDemo {public: CDemo(int pa,char *cstr) { this->a = pa; this->str = new char[104]; strcpy(this->str,cst
阅读全文
摘要:#include <iostream>#include <string>#include <fstream>#include <sstream> using namespace std; template<typename T>int compare(const T &v1, const T &v2
阅读全文
摘要:#pragma once#include <iostream>#include <iomanip> using namespace std; template<class T>class Queue{ struct Node { T a; Node *next; }; public: Queue()
阅读全文
摘要:#pragma once#include <iostream>#include <iomanip> using namespace std; class Queue{ struct Node { int a; Node *next; }; public: Queue(); void push(int
阅读全文
摘要:public slots: //打开Pts文件按钮点击事件 void OnOpenFileButtonClick(); //分析按钮点击事件 void OnAnalysisButtonClick(); //保存按钮点击事件 void OnSaveButtonClock(); //连接按钮点击事件 v
阅读全文