diff --git a/HPPA/DepthCamera.ui b/HPPA/DepthCamera.ui new file mode 100644 index 0000000..6a1f544 --- /dev/null +++ b/HPPA/DepthCamera.ui @@ -0,0 +1,160 @@ + + + DepthCameraClass + + + + 0 + 0 + 416 + 219 + + + + + 0 + 0 + + + + DepthCamera + + + QGroupBox +{ + border: 12px solid transparent; + /*border-top: 12px solid transparent; + border-right: 0px solid transparent; + border-bottom: 0px solid transparent; + border-left: 0px solid transparent;*/ + color: #ACCDFF; +} + +QPushButton +{ + /*width: 172px; + height: 56px;*/ + font: 19pt "新宋体"; + background-color: qlineargradient( + spread:pad, + x1:0.5, y1:0, x2:0.5, y2:1, + stop:0 #283D86, + stop:1 #0F1A40 + ); + color: white; + border: none; + padding: 8px 16px; + border-radius: 4px; +} +QPushButton:hover +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #3A4875, + stop:1 #5F6B91 + ); +} +/* 按下时的效果 */ +QPushButton:pressed +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #1A254F, + stop:1 #3A466B + ); + /* 可选:添加下压效果 */ + padding-top: 9px; + padding-bottom: 7px; +} + + + + + + Qt::Vertical + + + + 18 + 100 + + + + + + + + Qt::Horizontal + + + + 135 + 20 + + + + + + + + + + + 0 + 0 + + + + 关 闭 + + + + + + + + 0 + 0 + + + + 打 开 + + + + + + + + + Qt::Horizontal + + + + 135 + 20 + + + + + + + + Qt::Vertical + + + + 18 + 100 + + + + + + + + + + diff --git a/HPPA/DepthCameraWindow.cpp b/HPPA/DepthCameraWindow.cpp new file mode 100644 index 0000000..58fad2a --- /dev/null +++ b/HPPA/DepthCameraWindow.cpp @@ -0,0 +1,24 @@ +#include "DepthCameraWindow.h" + +DepthCameraWindow::DepthCameraWindow(QWidget* parent) + : QDialog(parent) +{ + ui.setupUi(this); + + connect(ui.openDepthCamera_btn, &QPushButton::clicked, this, &DepthCameraWindow::openDepthCamera); + connect(ui.closeDepthCamera_btn, &QPushButton::clicked, this, &DepthCameraWindow::closeDepthCamera); +} + +DepthCameraWindow::~DepthCameraWindow() +{ +} + +void DepthCameraWindow::openDepthCamera() +{ + +} + +void DepthCameraWindow::closeDepthCamera() +{ + +} diff --git a/HPPA/DepthCameraWindow.h b/HPPA/DepthCameraWindow.h new file mode 100644 index 0000000..184b0cd --- /dev/null +++ b/HPPA/DepthCameraWindow.h @@ -0,0 +1,27 @@ +#pragma once + +#include +#include +#include +#include + +#include "ui_DepthCamera.h" + +class DepthCameraWindow : public QDialog +{ + Q_OBJECT + +public: + DepthCameraWindow(QWidget* parent = nullptr); + ~DepthCameraWindow(); + + +public Q_SLOTS: + void PlotRgbImageSignal(); + void CamClosedSignal(); + +signals: + +private: + Ui::DepthCameraClass ui; +}; diff --git a/HPPA/HPPA.cpp b/HPPA/HPPA.cpp index 75c641d..f4f1274 100644 --- a/HPPA/HPPA.cpp +++ b/HPPA/HPPA.cpp @@ -753,6 +753,9 @@ void HPPA::initControlTabwidget() this, SLOT(onBandSelectionChanged(double, double, double))); ui.controlTabWidget->addTab(m_ic, QString::fromLocal8Bit("图像控制"));//????????????????????????????????????????????????????????????????????????????????????????????????? + m_depthCameraWindow = new DepthCameraWindow(); + ui.controlTabWidget->addTab(m_depthCameraWindow, QString::fromLocal8Bit("深度相机")); + //rgb相机 m_rgbCameraControlWindow = new rgbCameraWindow(); connect(m_rgbCameraControlWindow, &rgbCameraWindow::PlotRgbImageSignal, this, &HPPA::onPlotRgbImage); diff --git a/HPPA/HPPA.h b/HPPA/HPPA.h index eb65c0d..5cfbf4d 100644 --- a/HPPA/HPPA.h +++ b/HPPA/HPPA.h @@ -78,6 +78,7 @@ #include "FileNameLineEdit.h" #include "rgbCameraWindow.h" +#include "DepthCameraWindow.h" #define PI 3.1415926 @@ -278,6 +279,7 @@ private: HyperImagerControl* m_hic; rgbCameraWindow* m_rgbCameraControlWindow; ImageControl* m_ic; + DepthCameraWindow* m_depthCameraWindow; adjustTable* m_adt; PowerControl* m_pc; RobotArmControl* m_rac; diff --git a/HPPA/HPPA.vcxproj b/HPPA/HPPA.vcxproj index e25dafa..c3a9527 100644 --- a/HPPA/HPPA.vcxproj +++ b/HPPA/HPPA.vcxproj @@ -114,6 +114,7 @@ + @@ -162,6 +163,7 @@ + @@ -211,6 +213,7 @@ + diff --git a/HPPA/HPPA.vcxproj.filters b/HPPA/HPPA.vcxproj.filters index a1b4b45..4553bb2 100644 --- a/HPPA/HPPA.vcxproj.filters +++ b/HPPA/HPPA.vcxproj.filters @@ -214,6 +214,9 @@ Source Files + + Source Files + @@ -348,6 +351,9 @@ Header Files + + Header Files + @@ -439,6 +445,9 @@ Form Files + + Form Files +