obj加载/三维图像拖动放大缩小旋转/二维图像的缩略图预览


模仿photoscan界面,右键左上角空白区域加载二维图像或者三维图像,得到chunk或者chunk3d,双击选择文件,二维图选择图片文件,三维图选择obj文件。右侧显示区会得到相应的tab分页,点击即可,支持放大缩小,旋转。拖动。
资源截图
代码片段和文件信息
/****************************************************************************
** meta object code from reading C++ file ‘imgscan.h‘
**
** Created by: The Qt meta object Compiler version 67 (Qt 5.9.8)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include “../../my_photoscan/imgscan.h“
#include 
#include tatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error “The header file ‘imgscan.h‘ doesn‘t include ject>.“
#elif Q_MOC_OUTPUT_REVISION != 67
#error “This file was generated using the moc from 5.9.8. It“
#error “cannot be used with the include files from this version of Qt.“
#error “(The moc has changed too much.)“
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_imgscan_t {
    QByteArrayData data[6];
    char stringdata0[62];
};
#define QT_MOC_LITERAL(idx ofs len) 
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len 
    qptrdiff(offsetof(qt_meta_stringdata_imgscan_t stringdata0) + ofs 
        - idx * sizeof(QByteArrayData)) 
    )
static const qt_meta_stringdata_imgscan_t qt_meta_stringdata_imgscan = {
    {
QT_MOC_LITERAL(0 0 7) // “imgscan“
QT_MOC_LITERAL(1 8 13) // “onZoomInImage“
QT_MOC_LITERAL(2 22 0) // ““
QT_MOC_LITERAL(3 23 14) // “onZoomOutImage“
QT_MOC_LITERAL(4 38 6) // “getBIG“
QT_MOC_LITERAL(5 45 16) // “QListWidgetItem*“

    }
    “imgscanonZoomInImageonZoomOutImage“
    “getBIGQListWidgetItem*“
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_imgscan[] = {

 // content:
       7       // revision
       0       // classname
       0    0 // classinfo
       3   14 // methods
       0    0 // properties
       0    0 // enums/sets
       0    0 // constructors
       0       // flags
       0       // signalCount

 // slots: name argc parameters tag flags
       1    0   29    2 0x0a /* Public */
       3    0   30    2 0x0a /* Public */
       4    1   31    2 0x0a /* Public */

 // slots: parameters
    QmetaType::Void
    QmetaType::Void
    QmetaType::Void 0x80000000 | 5    2

       0        // eod
};

void imgscan::qt_static_metacall(Qobject *_o Qmetaobject::Call _c int _id void **_a)
{
    if (_c == Qmetaobject::InvokemetaMethod) {
        imgscan *_t = static_cast(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->onZoomInImage(); break;
        case 1: _t->onZoomOutImage(); break;
        case 2: _t->getBIG((*reinterpret_cast< QListWidgetItem*(*)>(_a[1]))); break;
        default: ;
        }
    }
}

const Qmetaobject imgscan::staticmetaobject = {
    { &QWidget::staticmetaobject qt_meta_stringdata_imgscan.data
      qt_meta_data_imgscan  qt_static_metacall nullptr nullptr}
};


const Qmetaobject *imgscan::metaobject() con

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-08-03 10:14  my_photoscan_final
     目录           0  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debug
     文件        1452  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debug.qmake.stash
     目录           0  2020-08-03 11:35  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebug
     文件      139635  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugimgscan.obj
     文件      273289  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugloadimgdk.obj
     文件      154661  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmain.obj
     文件     1821487  2020-08-03 11:35  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmainwindow.obj
     文件        3876  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmoc_imgscan.cpp
     文件      101504  2020-08-03 10:15  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmoc_imgscan.obj
     文件        5491  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmoc_loadimgdk.cpp
     文件      151457  2020-08-03 10:15  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmoc_loadimgdk.obj
     文件        4235  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmoc_mainwindow.cpp
     文件      195080  2020-08-03 10:15  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmoc_mainwindow.obj
     文件        5949  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmoc_photodock.cpp
     文件      171961  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmoc_photodock.obj
     文件         276  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmoc_predefs.h
     文件      516608  2020-08-03 11:35  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmy_photoscan.exe
     文件     3255384  2020-08-03 11:35  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmy_photoscan.ilk
     文件     3928064  2020-08-03 11:35  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmy_photoscan.pdb
     文件     3149824  2020-08-03 11:35  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugmy_photoscan.vc.pdb
     文件      183380  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugphotodock.obj
     文件        7136  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugqrc_qml.cpp
     文件        8784  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugdebugqrc_qml.obj
     文件       32555  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-DebugMakefile
     文件      123173  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-DebugMakefile.Debug
     文件      123256  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-DebugMakefile.Release
     目录           0  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debug
elease
     文件       79864  2020-08-03 10:14  my_photoscan_finaluild-my_photoscan-Desktop_Qt_5_9_8_MSVC2017_64bit-Debugui_mainwindow.h
     目录           0  2020-08-03 09:42  my_photoscan_finaldata
     文件          88  2020-07-08 15:46  my_photoscan_finaldata1.mtl
............此处省略26个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)