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.
49 lines
1.1 KiB
C
49 lines
1.1 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);
|
||
|
|
|
||
|
|
protected:
|
||
|
|
void AddPoint(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;
|
||
|
|
AwesomeImgViewer *m_srcImgView{ nullptr };
|
||
|
|
int m_imageH{ 0 };
|
||
|
|
int m_imageW{ 0 };
|
||
|
|
|
||
|
|
QPoint m_point1;
|
||
|
|
QPoint m_point2;
|
||
|
|
QPoint m_point3;
|
||
|
|
QPoint m_point4;
|
||
|
|
|
||
|
|
QPoint testPoint;
|
||
|
|
|
||
|
|
double m_length;
|
||
|
|
double m_scale;
|
||
|
|
|
||
|
|
int m_timerID{ 0 };
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|