GrabBag/AppUtils/UICommon/Inc/ToolExtrinsicWidget.h
2026-06-20 23:50:04 +08:00

50 lines
1.3 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef TOOLEXTRINSICWIDGET_H
#define TOOLEXTRINSICWIDGET_H
#include <QWidget>
#include <QComboBox>
#include <QGroupBox>
#include <QLabel>
#include <QLineEdit>
/**
* @brief 工具外参编辑控件(从 HandEyeCalibWidget 中抽取 m_groupExtrinsic
*
* 纯 QWidget代码构建 UI无 .ui 文件),可嵌入任意 tab/layout。
* 包含:欧拉角顺序 + 姿态调整 + 目标点偏移。
*/
class ToolExtrinsicWidget : public QWidget
{
Q_OBJECT
public:
explicit ToolExtrinsicWidget(QWidget *parent = nullptr);
~ToolExtrinsicWidget();
void setData(int eulerOrder,
double rotX, double rotY, double rotZ,
double offsetX, double offsetY, double offsetZ);
void getData(int& eulerOrder,
double& rotX, double& rotY, double& rotZ,
double& offsetX, double& offsetY, double& offsetZ) const;
void setTargetOffsetVisible(bool visible);
private:
void setupUI();
void initEulerOrderComboBox();
QGroupBox* m_groupExtrinsic;
QComboBox* m_comboEulerOrder;
QLineEdit* m_editRotX;
QLineEdit* m_editRotY;
QLineEdit* m_editRotZ;
QLabel* m_labelTargetOffset;
QLineEdit* m_editOffsetX;
QLineEdit* m_editOffsetY;
QLineEdit* m_editOffsetZ;
};
#endif // TOOLEXTRINSICWIDGET_H