VS+VTK+Dicom(dcm)+CT影像切片窗体界面显示源码
如需远程调试,可加QQ905733049由专业技术人员远程协助!
运行代码如下:
#include
#include "../../QvtkDicomViewer.h"
#include
#include
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'QvtkDicomViewer.h' doesn't include ."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.13.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endifQT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_QvtkDicomViewer_t {QByteArrayData data[52];char stringdata0[863];
};
#define QT_MOC_LITERAL(idx, ofs, len) \Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \qptrdiff(offsetof(qt_meta_stringdata_QvtkDicomViewer_t, stringdata0) + ofs \- idx * sizeof(QByteArrayData)) \)
static const qt_meta_stringdata_QvtkDicomViewer_t qt_meta_stringdata_QvtkDicomViewer = {{
QT_MOC_LITERAL(0, 0, 15), // "QvtkDicomViewer"
QT_MOC_LITERAL(1, 16, 18), // "CursorValueChanged"},"QvtkDicomViewer\0CursorValueChanged\0\0""WindowWLChanged\0AppStateChanged\0""OnPlayerTimerOut\0OnChangeAppState\0""OnChangeCursorValue\0OnChangeWindowsWL\0""OnOpenSeriesFolder\0OnOpenDicomFile\0""OnOpenDicomDirFile\0OnForward\0OnBackward\0""OnResetToFirst\0OnSelectedPointer\0""OnSelectedProtractor\0OnSelectedRuler\0""OnSelectedContour\0OnSelectedBiDimensional\0""OnSelectedGrayLevel\0OnSelectedZoom\0""OnSelectedMove\0OnNegative\0OnReset\0""OnPlay\0OnStop\0OnSwitchProperty\0""on_treeView_customContextMenuRequested\0""pos\0OnShowDicomCurrentTags\0""OnShowSelectedSeries\0OnShowSelectedImage\0""OnSliceScrollBarValueChange\0a\0receiveData\0""data\0OnLatterPatient\0OnPreviousPatient\0""OnWindowWL_Defaut\0OnWindowWL_All\0""OnWindowWL_CT_Abdomen\0OnWindowWL_CT_BloodVessel\0""OnWindowWL_CT_Bones\0OnWindowWL_CT_Brain\0""OnWindowWL_CT_Medias\0OnWindowWL_CT_Lungs\0""OnTestEntrance_01\0OnTestEntrance_02\0""On3D_Reconstruction\0OnSegmentImage\0""OnRegistration"
};
#undef QT_MOC_LITERALstatic const uint qt_meta_data_QvtkDicomViewer[] = {// content:8, // revision0, // classname};void QvtkDicomViewer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{if (_c &#61;&#61; QMetaObject::InvokeMetaMethod) {auto *_t &#61; static_cast(_o);Q_UNUSED(_t)switch (_id) {case 0: _t->CursorValueChanged(); break;case 1: _t->WindowWLChanged(); break;case 2: _t->AppStateChanged(); break;case 3: _t->OnPlayerTimerOut(); break;case 4: _t->OnChangeAppState(); break;case 5: _t->OnChangeCursorValue(); break;default: ;}} else if (_c &#61;&#61; QMetaObject::IndexOfMethod) {int *result &#61; reinterpret_cast(_a[0]);{using _t &#61; void (QvtkDicomViewer::*)();if (*reinterpret_cast<_t *>(_a[1]) &#61;&#61; static_cast<_t>(&QvtkDicomViewer::CursorValueChanged)) {*result &#61; 0;return;}}{using _t &#61; void (QvtkDicomViewer::*)();if (*reinterpret_cast<_t *>(_a[1]) &#61;&#61; static_cast<_t>(&QvtkDicomViewer::WindowWLChanged)) {*result &#61; 1;return;}}{using _t &#61; void (QvtkDicomViewer::*)();if (*reinterpret_cast<_t *>(_a[1]) &#61;&#61; static_cast<_t>(&QvtkDicomViewer::AppStateChanged)) {*result &#61; 2;return;}}}
}QT_INIT_METAOBJECT const QMetaObject QvtkDicomViewer::staticMetaObject &#61; { {&QMainWindow::staticMetaObject,qt_meta_stringdata_QvtkDicomViewer.data,qt_meta_data_QvtkDicomViewer,qt_static_metacall,nullptr,nullptr
} };const QMetaObject *QvtkDicomViewer::metaObject() const
{return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}void *QvtkDicomViewer::qt_metacast(const char *_clname)
{if (!_clname) return nullptr;if (!strcmp(_clname, qt_meta_stringdata_QvtkDicomViewer.stringdata0))return static_cast(this);return QMainWindow::qt_metacast(_clname);
}int QvtkDicomViewer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{_id &#61; QMainWindow::qt_metacall(_c, _id, _a);if (_id <0)return _id;if (_c &#61;&#61; QMetaObject::InvokeMetaMethod) {if (_id <47)qt_static_metacall(this, _c, _id, _a);_id -&#61; 47;} else if (_c &#61;&#61; QMetaObject::RegisterMethodArgumentMetaType) {if (_id <47)*reinterpret_cast(_a[0]) &#61; -1;_id -&#61; 47;}return _id;
}// SIGNAL 0
void QvtkDicomViewer::CursorValueChanged()
{QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}// SIGNAL 1
void QvtkDicomViewer::WindowWLChanged()
{QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}// SIGNAL 2
void QvtkDicomViewer::AppStateChanged()
{QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
实现效果如图&#xff1a;
Python, C&#43;&#43;, PHP语言学习参考实例连接&#xff1a;
C&#43;&#43;学习参考实例&#xff1a;
C&#43;&#43;实现图形界面五子棋游戏源码&#xff1a;
https://blog.csdn.net/alicema1111/article/details/90035420
C&#43;&#43;实现图形界面五子棋游戏源码2&#xff1a;
https://blog.csdn.net/alicema1111/article/details/106479579
C&#43;&#43; OpenCV相片视频人脸识别统计人数&#xff1a;
https://blog.csdn.net/alicema1111/article/details/105833928
VS2017&#43;PCL开发环境配置&#xff1a;
https://blog.csdn.net/alicema1111/article/details/106877145
VS2017&#43;Qt&#43;PCL点云开发环境配置&#xff1a;
https://blog.csdn.net/alicema1111/article/details/105433636
C&#43;&#43; OpenCV汽车检测障碍物与测距&#xff1a;
https://blog.csdn.net/alicema1111/article/details/105833449
Windows VS2017安装配置PCL点云库&#xff1a;
https://blog.csdn.net/alicema1111/article/details/105111110
Python学习参考实例&#xff1a;
Python相片更换背景颜色qt窗体程序&#xff1a;
https://blog.csdn.net/alicema1111/article/details/106919140
Python相片更换背景颜色qt窗体程序&#xff1a;
https://blog.csdn.net/alicema1111/article/details/106919140
OpenCV汽车识别检测数量统计&#xff1a;
https://blog.csdn.net/alicema1111/article/details/106597260
OpenCV视频识别检测人数跟踪统计&#xff1a;
https://blog.csdn.net/alicema1111/article/details/106113042
OpenCV米粒检测数量统计&#xff1a;
https://blog.csdn.net/alicema1111/article/details/106089697
opencv人脸识别与变形哈哈镜&#xff1a;
https://blog.csdn.net/alicema1111/article/details/105833123
OpenCV人脸检测打卡系统&#xff1a;
https://blog.csdn.net/alicema1111/article/details/105315066
Python&#43;OpenCV摄像头人脸识别&#xff1a;
https://blog.csdn.net/alicema1111/article/details/105107286
Python&#43;Opencv识别视频统计人数&#xff1a;
https://blog.csdn.net/alicema1111/article/details/103804032
PHP网页框架&#xff1a;
PHP Laravel框架安装与配置后台管理前台页面显示&#xff1a;
https://blog.csdn.net/alicema1111/article/details/106686523