随笔分类 - C++
摘要:/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OS
阅读全文
摘要:/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public Lic...
阅读全文
摘要:double x = vec_endPoint_rotate.x(); double y = vec_endPoint_rotate.y(); double dx = vec_center_rotate.x(); double dy = vec_center_rotate.y(); //一个点(x,
阅读全文
摘要:node->getBound().center() * osg::computeLocalToWorld(node->getParentalNodePaths()[0]) 不知为啥, hNode2->getParentalNodePaths(0);一直报错 Program: ...laManageP
阅读全文
摘要:1> 已启动全部重新生成: 项目: TeslaManage, 配置: Debug x64 1> Moc'ing teslamanage.h...1> Uic'ing teslamanage.ui...1> Moc'ing VCArmEventHandler.h...1> Moc'ing vcgant
阅读全文
摘要:机械臂模拟 Spacerorate cAngle:30hook x:8 y:19.7224 z:4.5hook x:8 y:19.7224 z:5.5hook x:8 y:19.7224 z:6.5hook x:8 y:19.7224 z:7.5hook x:8 y:19.7224 z:8.5hoo
阅读全文
摘要:void VCAdmin::searchAllUser() { strID_Index = ""; if (NULL == vcManageDatabaseObj) { vc_admin_ui.label_msg->setText(QString::fromLocal8Bit("请连接数据库!")); return; } QSqlQuery query_sql = vcManageDatabase
阅读全文
摘要:vs下开发Qt连接mysql程序,开发过程中操作MySQL没有问题,但打包以后安装在别的电脑上发现竟然无法连接MySQL,打包的时候,所需的libmysql.dll等dll文件拷贝到exe同级目录了,发现一直提示driver not load driver not load,最后经过一天的测试,发现
阅读全文
摘要:QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'PtsData' [1025]. Previously registered size 216, now registering size 6
阅读全文
摘要:#include<iostream> #include <opencv2/opencv.hpp> using namespace std; using namespace cv; int test1() { Mat img1, img2,img3; img2 = cv::Mat(640, 480,CV_8UC3); img1 = imread("D://images//opencv测试图片//19
阅读全文
摘要:QString转int 直接调用toInt()函数 例: QString str("100"); int tmp = str.toInt(); 或者: bool ok; QString str("100"); int tmp = str.toInt(&ok); 注:ok表示转换是否成功,成功则ok为
阅读全文
摘要:void MobileCrane::rotateRope2() { //double r_angle1 = rotateRope + rorate3; //std::cout setMatrix(osg::Matrix::rotate(osg::DegreesToRadians(rotateRope), 0, 1, 0)); ropeMatrix = osg::Matri...
阅读全文
摘要:osg::Vec3f vec3f1 = hookNode->getBound().center(); osg::NodePathList nodePAthList1 = hookNode->getParentalNodePaths(0); updateHookPosition_20190914(vec3f1, nodePAthList1); osg::Vec3 point3 = vec3f1 *...
阅读全文
摘要:error C1002: 在第 2 遍中编译器的堆空间不足 fatal error C1083: Not enough space 打开VS2015 x64 x86 兼容工具命令提示符,在此命令行中再执行:XXX.sln,即可使用vs2015打开解决方案,此时的vs2015在编译的时候就是使用了64
阅读全文