28 #ifndef KEYPOINTITEM_H_ 29 #define KEYPOINTITEM_H_ 31 #include <QGraphicsEllipseItem> 32 #include <QGraphicsTextItem> 34 #include <QtGui/QBrush> 35 #include <opencv2/features2d/features2d.hpp> 42 KeypointItem(
int id, qreal
x, qreal
y,
int r,
const cv::KeyPoint & kpt,
int wordID = -1,
const QColor & color = Qt::green, QGraphicsItem * parent = 0);
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
void setColor(const QColor &color)
virtual void focusOutEvent(QFocusEvent *event)
TFSIMD_FORCE_INLINE const tfScalar & y() const
TFSIMD_FORCE_INLINE const tfScalar & x() const
KeypointItem(int id, qreal x, qreal y, int r, const cv::KeyPoint &kpt, int wordID=-1, const QColor &color=Qt::green, QGraphicsItem *parent=0)
virtual void focusInEvent(QFocusEvent *event)
QGraphicsRectItem * placeHolder_