随笔分类 -  C++

1 2 3 4 5 ··· 33 下一页
摘要:在 Qt 中,QPainter 的 Brush 设置是用于填充图形内部的。一旦你为 QPainter 设置了 Brush,它将被用于所有后续需要填充的绘图操作,直到后续改变这个 Brush 或者关闭填充(例如通过设置一个透明的或者纯色的 Brush)。重置 Brush:可以通过调用 QPainter 阅读全文
posted @ 2026-01-13 20:34 西北逍遥 阅读(11) 评论(0) 推荐(0)
摘要:pipeInputDict /* *- C++ -* *\ | | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2012 | | \\ / A nd | Website 阅读全文
posted @ 2025-12-31 22:43 西北逍遥 阅读(12) 评论(0) 推荐(0)
摘要:C++ Qt绘制图表,用鼠标点击图表的series的名称,实现图表中线条隐藏与显示 private slots: void onLegendMarkerClicked() { bool checked = false; qDebug() << "" << checked; QLegendMarker 阅读全文
posted @ 2025-12-19 23:21 西北逍遥 阅读(57) 评论(0) 推荐(0)
摘要:#include <QApplication> #include <QtCharts/QChartView> #include <QtCharts/QLineSeries> #include <QtCharts/QValueAxis> #include <QFont> #include <QTool 阅读全文
posted @ 2025-12-17 22:20 西北逍遥 阅读(43) 评论(0) 推荐(0)
摘要:#ifndef THERMAL_COLOR_MAP_H #define THERMAL_COLOR_MAP_H #include <QVector> #include <QColor> class ThermalColorMap { public: ThermalColorMap() { // 冷色 阅读全文
posted @ 2025-12-16 23:42 西北逍遥 阅读(41) 评论(0) 推荐(0)
摘要:#include "livox_mid70_sdk.h" #include "livox_mid70_def.h" #include <iostream> #include <thread> #include <chrono> #include <cstring> // 设备状态枚举 typedef 阅读全文
posted @ 2025-12-15 01:20 西北逍遥 阅读(63) 评论(0) 推荐(0)
摘要:const int led_id =13; int led_state = LOW; long previous_millis = 0; long interval = 1000; void setup() { // put your setup code here, to run once: pi 阅读全文
posted @ 2025-11-21 22:16 西北逍遥 阅读(9) 评论(0) 推荐(0)
摘要:/** @brief This data structure holds the values of the robot's fingers. * \struct FingersPosition KinovaTypes.h "Definition" */ struct FingersPosition 阅读全文
posted @ 2025-07-31 22:43 西北逍遥 阅读(11) 评论(0) 推荐(0)
摘要:#include <QJsonDocument> #include <QJsonObject> #include <QJsonArray> #include <QJsonValue> #include <QFile> #include <QIODevice> #include <QDebug> // 阅读全文
posted @ 2025-05-13 17:09 西北逍遥 阅读(20) 评论(0) 推荐(0)
摘要:#include <iostream> #include <cmath> #include <chrono> #include <thread> #include <random> // Simple helper: wraps angle to [-pi, pi] double wrapToPi( 阅读全文
posted @ 2025-01-11 10:27 西北逍遥 阅读(60) 评论(0) 推荐(0)
摘要:IFC数据解析与渲染,施工进度自动生成与施工方案导出 ############################## 阅读全文
posted @ 2024-12-31 02:21 西北逍遥 阅读(85) 评论(0) 推荐(0)
摘要:#include <QApplication> #include <QWidget> #include <QPainter> #include <QPolygonF> #include <QPoint> #include <QMouseEvent> #include <QMessageBox> cl 阅读全文
posted @ 2024-12-29 23:59 西北逍遥 阅读(95) 评论(0) 推荐(0)
摘要:#pragma once #include <osgGA/TrackballManipulator> #include<osgGA/CameraManipulator> #include<osgGA/GUIActionAdapter> #include <osg/Group> #include <o 阅读全文
posted @ 2024-12-28 23:37 西北逍遥 阅读(281) 评论(0) 推荐(2)
摘要:使用C++解析IFC中的构件名称 比如:#1318= IFCWALL('2iW_ibiC5FdBGj9bA43z7h',#42,'\X2\57FA672C5899\X0\:\X2\5899\X0\ 1:7545',$,'\X2\57FA672C5899\X0\:\X2\5899\X0\ 1:1641 阅读全文
posted @ 2024-12-05 14:15 西北逍遥 阅读(89) 评论(0) 推荐(0)
摘要:Qt VTK加载openfoam计算结果.foam文件。 #include <QApplication> #include <QDebug> #include "qvtkopenglwidget.h" #include <vtkSmartPointer.h> #include <vtkGeneric 阅读全文
posted @ 2024-11-28 20:10 西北逍遥 阅读(106) 评论(0) 推荐(0)
摘要:osg三维场景中拾取鼠标在模型表面的点击点 #include <osg/Group> #include <osg/Geode> #include <osg/ShapeDrawable> #include <osgDB/ReadFile> #include <osgViewer/Viewer> #in 阅读全文
posted @ 2024-11-19 21:26 西北逍遥 阅读(299) 评论(0) 推荐(1)
摘要:c++实现livox-mid70/360采集、保存点云数据 void PointCloudCallback(uint32_t handle, const uint8_t dev_type, LivoxLidarEthernetPacket* data, void* client_data) { if 阅读全文
posted @ 2024-11-05 07:54 西北逍遥 阅读(526) 评论(0) 推荐(0)
摘要:QMap<QString, int> map; map["one"] = 1; map["three"] = 3; map["seven"] = 7; map.insert("twelve", 12); int num1 = map["thirteen"]; int num2 = map.value 阅读全文
posted @ 2024-10-02 23:48 西北逍遥 阅读(30) 评论(0) 推荐(0)
摘要:QByteArray arr1 = QByteArray::fromHex("000000A1000000B2000005DC00000000000000900000000000000000000000000000000100000020000000210000000100000000001748C 阅读全文
posted @ 2024-09-27 10:49 西北逍遥 阅读(132) 评论(0) 推荐(0)
摘要:#include <QApplication> #include <QFileDialog> #include <QFile> #include <QTextStream> #include <QMessageBox> void saveFileWithDialog() { QString file 阅读全文
posted @ 2024-09-10 10:14 西北逍遥 阅读(97) 评论(0) 推荐(0)

1 2 3 4 5 ··· 33 下一页