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);
|
|
|
|
|
|
|
|
|
|
virtual void showEvent(QShowEvent *event);
|
|
|
|
|
protected:
|
|
|
|
|
double CalLength(QPoint &p1, QPoint &p2);
|
|
|
|
|
void AddPoint(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 onRoiLockIng(QString strName);
|
|
|
|
|
|
|
|
|
|
virtual void timerEvent(QTimerEvent *event);
|
|
|
|
|
private:
|
|
|
|
|
Ui::lpImageCaliUI ui;
|
|
|
|
|
|
|
|
|
|
AwesomeImgViewer *m_srcImgView{ nullptr };
|
|
|
|
|
int m_imageH{0};
|
|
|
|
|
int m_imageW{0};
|
|
|
|
|
|
|
|
|
|
QPoint m_point1;
|
|
|
|
|
QPoint m_point2;
|
|
|
|
|
double m_length;
|
|
|
|
|
double m_scale;
|
|
|
|
|
|
|
|
|
|
int m_timerID{ 0 };
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|