28 #ifndef RTABMAP_KEYPOINTITEM_H_
29 #define RTABMAP_KEYPOINTITEM_H_
31 #include "rtabmap/gui/rtabmap_gui_export.h"
33 #include <QGraphicsEllipseItem>
34 #include <QGraphicsTextItem>
36 #include <QtGui/QBrush>
37 #include <opencv2/features2d/features2d.hpp>
41 class RTABMAP_GUI_EXPORT
KeypointItem :
public QGraphicsEllipseItem
44 KeypointItem(
int id,
const cv::KeyPoint & kpt,
float depth = 0,
const QColor & color = Qt::green, QGraphicsItem * parent = 0);
47 void setColor(
const QColor & color);
48 const cv::KeyPoint &
keypoint()
const {
return _kpt;}
51 virtual void hoverEnterEvent ( QGraphicsSceneHoverEvent * event );
52 virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
53 virtual void focusInEvent ( QFocusEvent * event );
54 virtual void focusOutEvent ( QFocusEvent * event );
57 void showDescription();
58 void hideDescription();