38 lines
753 B
C++
38 lines
753 B
C++
#ifndef IYWELDSEAMSTATUS_H
|
|
#define IYWELDSEAMSTATUS_H
|
|
|
|
#include <QImage>
|
|
#include <QMetaType>
|
|
#include <QString>
|
|
#include <vector>
|
|
|
|
#include "IVisionApplicationStatus.h"
|
|
|
|
struct WeldSeamPoint : public PositionData<double>
|
|
{
|
|
WeldSeamPoint() = default;
|
|
WeldSeamPoint(double px, double py, double pz)
|
|
{
|
|
x = px;
|
|
y = py;
|
|
z = pz;
|
|
}
|
|
};
|
|
|
|
struct DetectionResult : public DetectionResultData<WeldSeamPoint>
|
|
{
|
|
bool success = true;
|
|
QString message = QStringLiteral("检测成功");
|
|
};
|
|
|
|
class IYWeldSeamStatus : public IVisionApplicationStatus<DetectionResult>
|
|
{
|
|
public:
|
|
virtual ~IYWeldSeamStatus() = default;
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(WeldSeamPoint)
|
|
Q_DECLARE_METATYPE(DetectionResult)
|
|
|
|
#endif // IYWELDSEAMSTATUS_H
|