1 Star 0 Fork 0

qinxude/rk3568ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
arealimitsetting.h 2.15 KB
一键复制 编辑 原始数据 按行查看 历史
qinxude 提交于 2024-09-03 09:38 . 3568ui base
#ifndef AREALIMITSETTING_H
#define AREALIMITSETTING_H
#include <QWidget>
#include "datadictionary.h"
#include "toweranalog.h"
namespace Ui {
class AreaLimitSetting;
}
class AreaLimitSetting : public QWidget
{
Q_OBJECT
public:
explicit AreaLimitSetting(QWidget *parent = nullptr);
~AreaLimitSetting();
typedef struct {
quint32 auStartAngle;
quint32 auEndAngle;
double afStartScope;
double afEndScope;
double afShowStartScope;
double afShowEndScope;
}SigCraneInfo_t;
typedef struct {
quint32 auiDevId;
double afArmLength;
double afRelativeDistance;
quint32 auiRelativeAngle;
quint32 auiCurrentAngle;
// double afRelativeHeight;
quint32 auiTowerId;
double afShowArmLength;
quint32 auiShowX;
quint32 auiShowY;
}MultiCraneInfo_t;
protected:
void showEvent(QShowEvent *event);
void hideEvent(QHideEvent *event);
private slots:
void SignalParamDataChange(SignalParamDataIndex_t);
void MonitorRtDataChange(MonitorRtDataIndex_t);
void on_QuiteButton_clicked();
void on_StartScopeLine_returnPressed();
void on_UpButton_clicked();
void on_DownButton_clicked();
void on_EndScopeLine_returnPressed();
void on_StartAngleLine_returnPressed();
void on_EndAngleLine_returnPressed();
void on_Height_returnPressed();
private:
void FixAreaNum(uint32_t index);
void SetAllAlias(uint32_t index);
void SetAreaNum(uint32_t index);
void ShowStartAngle();
void ShowEndAngle();
void ShowStartScope();
void ShowEndScope();
void ShowStartHeight();
void ShowEndHeight();
void SetStartAngle(QString V);
void SetEndAngle(QString V);
void SetStartScope(QString V);
void SetEndScope(QString V);
void SetHeight(QString V);
void GetSigCraneInfo();
void DisplayOverLook();
private:
Ui::AreaLimitSetting *ui;
DataDictionary *m_DataDictionary;
uint32_t m_AreaIndex;
TowerAnalog *m_TowerAnalog;
SigCraneInfo_t m_SigCraneInfo[8];
MultiCraneInfo_t m_CraneInfo;
};
#endif // AREALIMITSETTING_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qinxude/rk3568ui.git
[email protected]:qinxude/rk3568ui.git
qinxude
rk3568ui
rk3568ui
master

搜索帮助