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.
|
|
|
|
#ifndef _LPIMAGECALIUI_H_
|
|
|
|
|
#define _LPIMAGECALIUI_H_
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include "ui_lpImageCaliUI.h"
|
|
|
|
|
#include "AwesomeImgViewer.h"
|
|
|
|
|
|
|
|
|
|
class lpImageCaliUI : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
lpImageCaliUI(QWidget *parent = Q_NULLPTR);
|
|
|
|
|
~lpImageCaliUI();
|
|
|
|
|
|
|
|
|
|
template<typename _Widget>
|
|
|
|
|
_Widget* replaceWidget(QWidget* pSrcWidget);
|
|
|
|
|
|
|
|
|
|
void setStationFlags(bool bDouble);
|
|
|
|
|
protected:
|
|
|
|
|
double CalLength(QPoint &p1, QPoint &p2);
|
|
|
|
|
void AddPoint(QPoint &p, QString strName);
|
|
|
|
|
void AddPoint_2(QPoint &p, QString strName);
|
|
|
|
|
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::lpImageCaliUI 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;
|
|
|
|
|
double m_length_1;
|
|
|
|
|
double m_scale_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;
|
|
|
|
|
double m_length_2;
|
|
|
|
|
double m_scale_2;
|
|
|
|
|
//
|
|
|
|
|
int m_timerID{ 0 };
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|