上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 96 下一页
摘要: KDChart 甘特图在Qt中的加载使用案例,代码来自官方 mainwindow.h entrydialog.h entrydelegate.h main.cpp ui_mainwindow.h ui_entrydialog.h legend_example.pro 运行效果: QWindowsWi 阅读全文
posted @ 2019-07-17 19:37 西北逍遥 阅读(3392) 评论(0) 推荐(0)
摘要: 最近开发中需要用到甘特图,感觉KDChart这个插件不错,在这里记录一下编译过程(其实很好编译,而且一次性就过了) 下载,kdchart-2.6.1-source,解压 打开src目录,用Qt Creator打开src.pro 我用的是msvc_2015_64编译,分别用debug模式和releas 阅读全文
posted @ 2019-07-17 19:19 西北逍遥 阅读(2504) 评论(0) 推荐(0)
摘要: QString item1 = QString::fromStdString(groupParam->getChild(k)->getName()); QStandardItem* itemProject = new QStandardItem(item1); //设置树形控件子项的属性 itemP 阅读全文
posted @ 2019-07-16 11:15 西北逍遥 阅读(1111) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-07-15 19:33 西北逍遥 阅读(212) 评论(0) 推荐(0)
摘要: void TeslaManage::OnlineTreeViewDoubleClick(const QModelIndex & index) { int row = index.row(); qDebug() index(0, 0).child(row, 0).data().toString(); if (root != NULL) { osg... 阅读全文
posted @ 2019-07-15 18:13 西北逍遥 阅读(7377) 评论(0) 推荐(0)
摘要: osg::Node* TeslaManage::findOsgNodeByName(QString &nodeNme) { osg::Node* findNode = NULL; std::vector::iterator vec_iter; for (vec_iter = allOsgNode.begin();vec_iter != allOsgNode.end()... 阅读全文
posted @ 2019-07-14 18:15 西北逍遥 阅读(732) 评论(0) 推荐(0)
摘要: void Test::printOsgGroup(osg::ref_ptr &groupParam) { qDebug() getNumChildren(); //std::cout getNumChildren() getNumChildren(); k++) { osg::ref_ptr group_index = groupParam->getC... 阅读全文
posted @ 2019-07-14 10:18 西北逍遥 阅读(614) 评论(0) 推荐(0)
摘要: void TeslaManage::loadModelFile(QString &filename) { file_node = osgDB::readNodeFile(std::string((const char *)filename.toLocal8Bit())); root->addChild(file_node); root->addChild(create... 阅读全文
posted @ 2019-07-13 12:25 西北逍遥 阅读(496) 评论(0) 推荐(0)
摘要: int main() { osg::ref_ptr viewer1 = new osgViewer::Viewer; osg::ref_ptr group1 = new osg::Group; osg::ref_ptr group2 = new osg::Group; //osg::ref_ptr node1 = osgDB::readNodeFile("I:... 阅读全文
posted @ 2019-07-11 07:28 西北逍遥 阅读(683) 评论(0) 推荐(0)
摘要: 模型节点控制隐藏于显示,只需要调用 节点的 setNodeMask(1);即可,0:隐藏 1:显示 export root nodeNode : RootNodeNode : 三维视图: {三维} eCamera : 涓夌淮瑙嗗浘: {涓夌淮}Node : 基本墙 wall_240 [361750] 阅读全文
posted @ 2019-07-09 10:12 西北逍遥 阅读(1129) 评论(0) 推荐(0)
摘要: 效果图片: 参考:https://blog.csdn.net/sun222555888/article/details/52083413 阅读全文
posted @ 2019-07-08 13:05 西北逍遥 阅读(3109) 评论(0) 推荐(0)
摘要: for (int k = 0; kgetNumChildren(); k++) { //转换编 std::string name = vcfbx1.w2m1(vcfbx1.m2w1(sg->getChild(k)->getName(), CP_UTF8)); } 阅读全文
posted @ 2019-07-07 21:46 西北逍遥 阅读(577) 评论(0) 推荐(0)
摘要: class CPickHandler :public osgGA::GUIEventHandler { public: CPickHandler(osgViewer::Viewer *viewer) :mViewer(viewer) {} virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionA... 阅读全文
posted @ 2019-07-07 21:44 西北逍遥 阅读(1018) 评论(2) 推荐(0)
摘要: void setNodeStateset(osg::Node *nodeParam) { osg::ref_ptr stateset1 = nodeParam->getOrCreateStateSet(); osg::ref_ptr program1 = new osg::Program; program1->addShader(new osg::Shader(os... 阅读全文
posted @ 2019-07-07 21:13 西北逍遥 阅读(1136) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-07-07 21:00 西北逍遥 阅读(623) 评论(0) 推荐(0)
摘要: fbx model element count:80 三维视图: {三维} 4294967295 osg::MatrixTransform1 基本墙 wall_240 [361750] 4294967295 osg::MatrixTransform2 基本墙 wall_240 [361813] 42 阅读全文
posted @ 2019-07-07 15:47 西北逍遥 阅读(1096) 评论(0) 推荐(0)
摘要: count:560 construction_worker 4294967295 osg::MatrixTransform1 Bip001 L Finger02 4294967295 osg::MatrixTransform2 Bip001 L Finger01 4294967295 osg::Ma 阅读全文
posted @ 2019-07-06 22:29 西北逍遥 阅读(500) 评论(0) 推荐(0)
摘要: std::string name = w2m(m2w(obj->GetName(), CP_UTF8));//转换编码 阅读全文
posted @ 2019-07-05 21:39 西北逍遥 阅读(551) 评论(0) 推荐(0)
摘要: export root nodeNode : RootNodeNode : RootNodeNode : construction_workerNode : Bip001Node : Bip001 PelvisNode : Bip001 SpineNode : Bip001 Spine1Node : 阅读全文
posted @ 2019-07-05 11:05 西北逍遥 阅读(2118) 评论(0) 推荐(0)
摘要: 使用osg加载fbx模型,需要自己编译fbx插件,编译流程与插件使用案例如下 代码地址:https://github.com/shelltdf/osgFBX CMake Error: The following variables are used in this project, but they 阅读全文
posted @ 2019-07-04 20:09 西北逍遥 阅读(3254) 评论(0) 推荐(0)
摘要: #ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in... 阅读全文
posted @ 2019-07-04 18:10 西北逍遥 阅读(1320) 评论(0) 推荐(1)
摘要: #ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in... 阅读全文
posted @ 2019-07-04 16:38 西北逍遥 阅读(676) 评论(0) 推荐(0)
摘要: #ifdef _WIN32 #include <Windows.h> #endif // _WIN32 #include <osg/Group> #include <osg/Camera> #include <osgDB/ReadFile> #include <osg/Node> #include 阅读全文
posted @ 2019-07-03 11:05 西北逍遥 阅读(762) 评论(1) 推荐(0)
摘要: 当前位置:osgViewer/Viewer.cpp 第 643行,osgViewer:: Viewer::advance() 好的,现在我们终于正式进入仿真循环当中了,之前的 realize 函数虽然十分重要,但它实际上是循环运行前的准备工作。而从这一日开始介绍的 advance,eventTrav 阅读全文
posted @ 2019-07-02 16:03 西北逍遥 阅读(1350) 评论(0) 推荐(1)
摘要: #ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i... 阅读全文
posted @ 2019-07-02 11:06 西北逍遥 阅读(2041) 评论(0) 推荐(0)
摘要: //获取系统分辨率 osg::GraphicsContext::WindowingSystemInterface *wsInterface = osg::GraphicsContext::getWindowingSystemInterface(); if (!wsInterface) { retur 阅读全文
posted @ 2019-07-02 10:12 西北逍遥 阅读(825) 评论(0) 推荐(0)
摘要: #ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #inc... 阅读全文
posted @ 2019-07-01 20:37 西北逍遥 阅读(422) 评论(0) 推荐(0)
摘要: #ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i... 阅读全文
posted @ 2019-07-01 20:13 西北逍遥 阅读(1030) 评论(0) 推荐(0)
摘要: void ViewerBase::frame(double simulationTime) { if (_done) return; // OSG_NOTICE<<std::endl<<"CompositeViewer::frame()"<<std::endl<<std::endl; if (_fi 阅读全文
posted @ 2019-06-30 21:23 西北逍遥 阅读(1486) 评论(0) 推荐(0)
摘要: setUpViewOnSingleScreen 和 setUpViewAcrossAllScreens 函数的实现流程与上一日介绍的 setUpViewInWindow 区别不是很大。值得注意的是,setUpViewAcrossAllScreens 函数中调用 GraphicsContext::ge 阅读全文
posted @ 2019-06-30 18:00 西北逍遥 阅读(626) 评论(0) 推荐(0)
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 96 下一页