开源项目推荐:3D点云可视化软件(Qt+OpenGL组合库);重点是ccViewer和libQGLViewer

1、Qt官方自带的案例

https://doc.qt.io/qt-5/qtopengl-index.html

F:\Qt\Qt5.12.9\Examples\Qt-5.12.9\opengl

2、OpenGL学习教程

LearnOpenGL

https://learnopengl.com/

https://github.com/JoeyDeVries/LearnOpenGL

https://github.com/MidoriYakumo/learnopengl-qt3d

Tutorials for Qt5 OpenGL implementation

https://github.com/TReed0803/QtOpenGL

https://github.com/chenzilin/qt-opengl

3、开源项目

Qt官方自带的QGLWidget/QOpenGLWidget类,仅仅提供了基本的框架,但是很多交互操作(例如鼠标拖动,缩放,旋转,俯视图/主视图等)是没有的,还需要程序员自己写代码实现。

(1)QGLWidget 是Qt OpenGL模块,但是从其官方说明,推荐在Qt5.4 之后,使用QOpenGLWidget类,具体说明如下: Note: This class is part of the legacy Qt OpenGL module and, like the other QGL classes, should be avoided in the new applications. Instead, starting from Qt 5.4, prefer using QOpenGLWidget and the QOpenGL classes.

(2)QGLWidget的支持最高到Qt5.4.2,如果对于新软件新平台的开发,则按照官方推荐的QOpenGLWidget类。

(3)而开源项目ccViewer和libQGLViewer等等则实现了QOpenGLWidget二次封装和扩展,使得用户更容易实现3D绘图与交互。 以下是详细介绍与网站链接。

CloudCompare

https://github.com/CloudCompare/CloudCompare

里面有ccViewer小工具:

https://github.com/CloudCompare/CloudCompare/tree/master/ccViewer

从源码\CloudCompare-master\libs\qCC_glWindow\include\ccGLWindow.h可以看到ccGLWindow 派生于QOpenGLWidget

using ccGLWindowParent = QOpenGLWidget;
//! OpenGL 3D view
class CCGLWINDOW_LIB_API ccGLWindow : public ccGLWindowParent, public ccGenericGLDisplay

详情见我的另一篇博文:

开源项目推荐:3D点云处理软件CloudCompare,基于Qt和OpenGL_libaineu2004的博客-CSDN博客_开源点云处理软件

libQGLViewer

libQGLViewer 是一个用以简化了Qt开发OpenGL三维浏览器的C++库。它提供了一些典型的3D查看器的功能,如能够使用鼠标移动/缩放图像等。

从源码qglviewer.h可以看到QGLViewer派生于QOpenGLWidget

class QGLVIEWER_EXPORT QGLViewer : public QOpenGLWidget

另外,libQGLViewer源代码需要自己编译,生成dll文件。

http://libqglviewer.com/

https://github.com/GillesDebunne/libQGLViewer

CloudViewer

A cross-platform point cloud visualization software powered by PCL and Qt

https://github.com/nightn/CloudViewer

x.其他

Candle

https://github.com/Denvi/Candle

QtImGui

https://github.com/ocornut/imgui

https://github.com/seanchas116/qtimgui

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值