摘要:
严重性 代码 说明 项目 文件 行 禁止显示状态错误 C1128 节数超过对象文件格式限制: 请使用 /bigobj 进行编译。 默认情况下,对象文件最多可存放 65,536 (2^16) 个可寻址的节。/bigobj将该地址容量增加至 4,294,967,296 (2^32)。大多数模块将从来不会 阅读全文
摘要:
VC3DGraphicsWindowQt::VC3DGraphicsWindowQt(QWidget* parent, Qt::WindowFlags f) { osg::DisplaySettings* ds = osg::DisplaySettings::instance().get(); osg::setNotifyLevel(osg::NotifySeverity::... 阅读全文
摘要:
ViewerWidget* viewerWidget = new ViewerWidget(ifcModel); viewerWidget ->setRootNode(ifcModel->getRootNode()); this->ui.centerDockWidget->setWidget(viewerWidget ); VCIfcTreeWidget* ifcTreeWidget =... 阅读全文
摘要:
ui_ifcproject_20190702.h ifcproject_201907.cpp main.cpp 阅读全文
摘要:
void setRootNode( osg::Group* root ) { m_main_view->setSceneData( root ); if( m_hud_camera ) { root->addChild( m_hud_camera ); } m_system->setRootNode( root ); } 阅读全文
摘要:
1、基础工程:挖槽、垫层、基础底板、基础墙、地圈梁、暖气沟、回填土等;2、主体工程:梁、板、柱、墙等;3、屋顶工程:挑檐、女儿墙、保温、防水、压顶等;4、装修工程:外墙抹灰、墙裙、门窗套、内墙抹灰、粉刷、踢脚线、顶棚、地面等;5、门窗工程:外墙门窗、内墙门窗、阁楼壁柜门、窗帘杆盒等;6、室外工程:坡 阅读全文
摘要:
void initGLWidgetAndViewer() { osgViewer::ViewerBase::ThreadingModel threadingModel = osgViewer::ViewerBase::SingleThreaded; IfcSystem* m_system->getRootNode()->setCullingActive( false ); ... 阅读全文
摘要:
#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #includ... 阅读全文
摘要:
void slotLoadRecentIfcFileClicked() { QPushButton* btn_load = (QPushButton*)sender(); if( !btn_load ) { return; } int row = m_combo_recent_files->currentIndex(); ... 阅读全文
摘要:
Detected IFC version: IFC2X3 Warning: Sweeper::createTriangulated3DFace, carve::triangulate::incorporateHolesIntoPolygon failed , IFC entity: #41824=I 阅读全文
摘要:
下载Carve库 https://github.com/folded/carve 目录结构如下: 用Visual Studio2015打开,点击右键,生成即可 在bin目录下生成了 .lib文件 之前用Visual Studio2017编译过,但在Visual Studio2015和2013中都不能 阅读全文
摘要:
项目环境变量配置 include E:\Qt\Qt5.12.2\5.12.2\msvc2017_64\include E:\OpenSourceGraph\OpenSceneGraph_install\include E:\IFC\boost_1_66_0_vs2017_20190416 E:\IF 阅读全文
摘要:
osg::Shape类 继承自osg::Object类; osg::Shape类是各种内嵌几何体的基类,不但可以用于剔除和碰撞检测,还可用于生成预定义的几何体对象; osg::ShapeDrawable类: 派生自osg::Drawable类; 在osg::ShapeDrawable类的构造函数中提 阅读全文
摘要:
遍历节点树:osg::Node类中有两个辅助函数: 转自:https://www.cnblogs.com/hzhg/archive/2010/12/17/1908764.html 阅读全文
摘要:
//顶点着色器 static const char* vertShader = { "varying vec4 color;\n" "void main(void)\n" "{\n" "color = gl_Vertex;\n" "gl_Position=gl_ModelViewProjectionMatrix*gl_Vertex;\n" "}... 阅读全文
摘要:
日志: “TeslaManage.exe”(Win32): 已加载“F:\OpenScenceGraphProject\OSG_QT_2019\x64\Debug\TeslaManage.exe”。已加载符号。“TeslaManage.exe”(Win32): 已加载“C:\Windows\Syst 阅读全文
摘要:
/******************************************************************************** ** Form generated from reading UI file 'qt_chart1.ui' ** ** Created by: Qt User Interface Compiler version 5.12.2 *... 阅读全文
摘要:
KDChart 甘特图在Qt中的加载使用案例,代码来自官方 mainwindow.h entrydialog.h entrydelegate.h main.cpp ui_mainwindow.h ui_entrydialog.h legend_example.pro 运行效果: QWindowsWi 阅读全文
摘要:
最近开发中需要用到甘特图,感觉KDChart这个插件不错,在这里记录一下编译过程(其实很好编译,而且一次性就过了) 下载,kdchart-2.6.1-source,解压 打开src目录,用Qt Creator打开src.pro 我用的是msvc_2015_64编译,分别用debug模式和releas 阅读全文
摘要:
QString item1 = QString::fromStdString(groupParam->getChild(k)->getName()); QStandardItem* itemProject = new QStandardItem(item1); //设置树形控件子项的属性 itemP 阅读全文
摘要:
阅读全文
摘要:
void TeslaManage::OnlineTreeViewDoubleClick(const QModelIndex & index) { int row = index.row(); qDebug() index(0, 0).child(row, 0).data().toString(); if (root != NULL) { osg... 阅读全文
摘要:
osg::Node* TeslaManage::findOsgNodeByName(QString &nodeNme) { osg::Node* findNode = NULL; std::vector::iterator vec_iter; for (vec_iter = allOsgNode.begin();vec_iter != allOsgNode.end()... 阅读全文
摘要:
void Test::printOsgGroup(osg::ref_ptr &groupParam) { qDebug() getNumChildren(); //std::cout getNumChildren() getNumChildren(); k++) { osg::ref_ptr group_index = groupParam->getC... 阅读全文
摘要:
void TeslaManage::loadModelFile(QString &filename) { file_node = osgDB::readNodeFile(std::string((const char *)filename.toLocal8Bit())); root->addChild(file_node); root->addChild(create... 阅读全文
摘要:
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:... 阅读全文
摘要:
模型节点控制隐藏于显示,只需要调用 节点的 setNodeMask(1);即可,0:隐藏 1:显示 export root nodeNode : RootNodeNode : 三维视图: {三维} eCamera : 涓夌淮瑙嗗浘: {涓夌淮}Node : 基本墙 wall_240 [361750] 阅读全文
摘要:
效果图片: 参考:https://blog.csdn.net/sun222555888/article/details/52083413 阅读全文
摘要:
for (int k = 0; kgetNumChildren(); k++) { //转换编 std::string name = vcfbx1.w2m1(vcfbx1.m2w1(sg->getChild(k)->getName(), CP_UTF8)); } 阅读全文