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.
30 lines
661 B
C
30 lines
661 B
C
#pragma once
|
|
|
|
#include <QtCore/qglobal.h>
|
|
|
|
#include <QtCore>
|
|
#include <QColor>
|
|
#include <QGraphicsItem>
|
|
#include <QPolygonF>
|
|
|
|
#include "lp_qt_utils.h"
|
|
|
|
typedef struct lpDefectNode {
|
|
int type_;
|
|
QString alias_; // user defined
|
|
QPointF center_;
|
|
QString text_;
|
|
QColor color_;
|
|
qreal node_scale_{ 1.0 };
|
|
|
|
// if item_ptr_ is null, use QGraphicsTextItem
|
|
QSharedPointer<QGraphicsItem*> item_ptr_{ nullptr };
|
|
|
|
// generated inner
|
|
QString uuid_;
|
|
}LP_DEFECT_NODE;
|
|
|
|
typedef QSharedPointer<LP_DEFECT_NODE> LP_DEFECT_NODE_SPTR;
|
|
|
|
Q_DECLARE_METATYPE(QSharedPointer<LP_DEFECT_NODE>)
|
|
Q_DECLARE_METATYPE(LP_DEFECT_NODE) |