随笔分类 - C++
摘要:计算斜率k double calculate_k(float x1,float y1,float x2,float y2) { double k1 = 0.00001; if (x1 == x2 && y1 == y2)//1.共位 { k1 = 0.00001; } else if (x1 ==
阅读全文
摘要:osg创建立方体 osg::Geode* createBox(double minX, double maxX, double minY, double maxY, double minZ, double maxZ) { double X1 = minX; double X2 = maxX; dou
阅读全文
摘要:QMap #include <QMap> Public Functions QMap() QMap(std::initializer_list<std::pair<Key, T> > list) QMap(const QMap<Key, T> &other) QMap(QMap<Key, T> &&
阅读全文
摘要:QQuickStyle QQuickStyle类用来配置应用程序样式 Header: #include <QQuickStyle> Since: Qt 5.7 List of all members, including inherited members Static Public Members
阅读全文
摘要:Qt遍历目录下的文件 QList<QString> getAllPCDFileName(QString dirPath) { QList<QString> list1; QDir dir1(dirPath); dir1.setFilter(QDir::Files | QDir::Hidden | Q
阅读全文
摘要:QDateEdit *dateEdit_date_morning;dateEdit_date_morning = new QDateEdit(centralWidget);dateEdit_date_morning->setObjectName(QStringLiteral("dateEdit_da
阅读全文
摘要:QAbstractSocket #include <QAbstractSocket> Public Types enum BindFlag { ShareAddress, DontShareAddress, ReuseAddressHint, DefaultForPlatform } flags B
阅读全文
摘要:QBEInteger #include <QBEInteger> Public Functions QBEInteger(T value) T operator T() const bool operator!=(QBEInteger<T> other) const QBEInteger<T> &
阅读全文
摘要:实验数据日志 建图开始时间:22:22:11 建图结束时间:22:22:16 A*开始时间:22:22:17 A*结束时间:22:22:17 原始路径节点数量:13 A*路径节点数量:39 A*路径实际长度:22428.5 A*路径曼哈顿长度:5875.8 RRT开始时间:22:22:23 RRT结
阅读全文
摘要:Qt线程测试 #include "vcmainthread.h" VCMainThread::VCMainThread(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); videoThread1 = new VideoThread(
阅读全文
摘要:QFont Header: #include <QFont> Public Types enum Capitalization { MixedCase, AllUppercase, AllLowercase, SmallCaps, Capitalize } enum HintingPreferenc
阅读全文
摘要:实验数据3 打开:G:/PCL_data/2022082601/20220826124637_16_c.jpg 开始加载点云文件 2022-12-29 19:52:27.050 完成加载点云文件 2022-12-29 19:53:21.687 x:277 y:243 x:1041 y:232 x:1
阅读全文
摘要:实验日志 打开:G:/PCL_data/2022082601/20220826122908_4_c.pcd x:376 y:256 x:933 y:264 x:1220 y:646 x:73 y:657 开始加载点云文件 2022-12-26 09:00:57.823 完成加载点云文件 2022-1
阅读全文
摘要:卷积计算 卷积核 0 -1 0 -1 5 -1 0 -1 0 矩阵一 1 1 1 4 1 3 1 1 1 1 -1 1 -2 1 1 1 1 1 1 1 1 5 2 1 1 1 4 0 -3 -2 1 1 5 1 1 矩阵二 1 1 3 1 1 1 1 1 6 1 1 -5 21 1 1 2 1 1
阅读全文
摘要:// 浅拷贝 QImage(uchar * data, int width, int height, Format format) // 浅拷贝 QImage(const uchar * data, int width, int height, Format format) // 浅拷贝 QImag
阅读全文
摘要:QImage 是用于读写绘制图像的基本类库,显示图像,我们借助于QImage,重点是如何通过图像二维数组(或三维数组)构造一个QImage对象。 以下来至于QImage构造函数QImage::QImage(uchar *data, int width, int height, QImage::For
阅读全文
摘要:QBuffer #include <QBuffer> Public Functions QBuffer(QObject *parent = nullptr) QBuffer(QByteArray *byteArray, QObject *parent = nullptr) virtual ~QBuf
阅读全文
摘要:QChar #include <QChar> Public Types enum Category { Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing, Number_DecimalDigit, ..., Symbol_Other } e
阅读全文
摘要:冒泡排序 QList<int> Qt_2022121201::sortList(QList<int> list_param) { for (int k = 0; k < list_param.size()-1;k++) { for (int j = 0; j < list_param.size()
阅读全文
摘要:#include <QFont> Public Types enum Capitalization { MixedCase, AllUppercase, AllLowercase, SmallCaps, Capitalize } enum HintingPreference { PreferDefa
阅读全文