随笔分类 - C++
摘要:在 Qt 中,QPainter 的 Brush 设置是用于填充图形内部的。一旦你为 QPainter 设置了 Brush,它将被用于所有后续需要填充的绘图操作,直到后续改变这个 Brush 或者关闭填充(例如通过设置一个透明的或者纯色的 Brush)。重置 Brush:可以通过调用 QPainter
阅读全文
摘要:pipeInputDict /* *- C++ -* *\ | | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2012 | | \\ / A nd | Website
阅读全文
摘要:C++ Qt绘制图表,用鼠标点击图表的series的名称,实现图表中线条隐藏与显示 private slots: void onLegendMarkerClicked() { bool checked = false; qDebug() << "" << checked; QLegendMarker
阅读全文
摘要:#include <QApplication> #include <QtCharts/QChartView> #include <QtCharts/QLineSeries> #include <QtCharts/QValueAxis> #include <QFont> #include <QTool
阅读全文
摘要:#ifndef THERMAL_COLOR_MAP_H #define THERMAL_COLOR_MAP_H #include <QVector> #include <QColor> class ThermalColorMap { public: ThermalColorMap() { // 冷色
阅读全文
摘要:#include "livox_mid70_sdk.h" #include "livox_mid70_def.h" #include <iostream> #include <thread> #include <chrono> #include <cstring> // 设备状态枚举 typedef
阅读全文
摘要: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
阅读全文
摘要:/** @brief This data structure holds the values of the robot's fingers. * \struct FingersPosition KinovaTypes.h "Definition" */ struct FingersPosition
阅读全文
摘要:#include <QJsonDocument> #include <QJsonObject> #include <QJsonArray> #include <QJsonValue> #include <QFile> #include <QIODevice> #include <QDebug> //
阅读全文
摘要:#include <iostream> #include <cmath> #include <chrono> #include <thread> #include <random> // Simple helper: wraps angle to [-pi, pi] double wrapToPi(
阅读全文
摘要:IFC数据解析与渲染,施工进度自动生成与施工方案导出 ##############################
阅读全文
摘要:#include <QApplication> #include <QWidget> #include <QPainter> #include <QPolygonF> #include <QPoint> #include <QMouseEvent> #include <QMessageBox> cl
阅读全文
摘要:#pragma once #include <osgGA/TrackballManipulator> #include<osgGA/CameraManipulator> #include<osgGA/GUIActionAdapter> #include <osg/Group> #include <o
阅读全文
摘要:使用C++解析IFC中的构件名称 比如:#1318= IFCWALL('2iW_ibiC5FdBGj9bA43z7h',#42,'\X2\57FA672C5899\X0\:\X2\5899\X0\ 1:7545',$,'\X2\57FA672C5899\X0\:\X2\5899\X0\ 1:1641
阅读全文
摘要:Qt VTK加载openfoam计算结果.foam文件。 #include <QApplication> #include <QDebug> #include "qvtkopenglwidget.h" #include <vtkSmartPointer.h> #include <vtkGeneric
阅读全文
摘要:osg三维场景中拾取鼠标在模型表面的点击点 #include <osg/Group> #include <osg/Geode> #include <osg/ShapeDrawable> #include <osgDB/ReadFile> #include <osgViewer/Viewer> #in
阅读全文
摘要:c++实现livox-mid70/360采集、保存点云数据 void PointCloudCallback(uint32_t handle, const uint8_t dev_type, LivoxLidarEthernetPacket* data, void* client_data) { if
阅读全文
摘要: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
阅读全文
摘要:QByteArray arr1 = QByteArray::fromHex("000000A1000000B2000005DC00000000000000900000000000000000000000000000000100000020000000210000000100000000001748C
阅读全文
摘要:#include <QApplication> #include <QFileDialog> #include <QFile> #include <QTextStream> #include <QMessageBox> void saveFileWithDialog() { QString file
阅读全文

浙公网安备 33010602011771号