You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
C
60 lines
1.4 KiB
C
|
4 years ago
|
#ifndef _LPIMAGECALIUI4P_H_
|
||
|
|
#define _LPIMAGECALIUI4P_H_
|
||
|
|
|
||
|
|
#include <QWidget>
|
||
|
|
#include "ui_lpImageCaliUI4P.h"
|
||
|
|
#include "AwesomeImgViewer.h"
|
||
|
|
class lpImageCaliUI4P : public QWidget
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
lpImageCaliUI4P(QWidget *parent = Q_NULLPTR);
|
||
|
|
~lpImageCaliUI4P();
|
||
|
|
template<typename _Widget>
|
||
|
|
_Widget* replaceWidget(QWidget* pSrcWidget);
|
||
|
|
|
||
|
|
void setStationFlags(bool bDouble);
|
||
|
|
protected:
|
||
|
|
void AddPoint(QPoint &p, QString strName, QColor color = QColor(0, 255, 0));
|
||
|
|
void AddPoint_2(QPoint &p, QString strName, QColor color = QColor(0, 255, 0));
|
||
|
|
Q_SLOT void onButtonClicked();
|
||
|
|
Q_SLOT void onROIChange(const AwesomeRoiInfo& roiInfo, QString strID);
|
||
|
|
Q_SLOT void onPixelClicked(QPoint point);
|
||
|
|
Q_SLOT void onImageScale(qreal scale);
|
||
|
|
Q_SLOT void onRoiLockIng(QString strName);
|
||
|
|
protected:
|
||
|
|
virtual void showEvent(QShowEvent *event);
|
||
|
|
virtual void changeEvent(QEvent *event);
|
||
|
|
virtual void timerEvent(QTimerEvent *event);
|
||
|
|
private:
|
||
|
|
Ui::lpImageCaliUI4P ui;
|
||
|
|
|
||
|
|
//1
|
||
|
|
AwesomeImgViewer *m_srcImgView_1{ nullptr };
|
||
|
|
int m_imageH_1{ 0 };
|
||
|
|
int m_imageW_1{ 0 };
|
||
|
|
|
||
|
|
QPoint m_point1_1;
|
||
|
|
QPoint m_point2_1;
|
||
|
|
QPoint m_point3_1;
|
||
|
|
QPoint m_point4_1;
|
||
|
|
QPoint m_testPoint_1;
|
||
|
|
|
||
|
|
//2
|
||
|
|
AwesomeImgViewer *m_srcImgView_2{ nullptr };
|
||
|
|
int m_imageH_2{ 0 };
|
||
|
|
int m_imageW_2{ 0 };
|
||
|
|
|
||
|
|
QPoint m_point1_2;
|
||
|
|
QPoint m_point2_2;
|
||
|
|
QPoint m_point3_2;
|
||
|
|
QPoint m_point4_2;
|
||
|
|
QPoint m_testPoint_2;
|
||
|
|
//
|
||
|
|
int m_timerID{ 0 };
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|