Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
find_object::KeypointItem Class Reference

#include <KeypointItem.h>

Inheritance diagram for find_object::KeypointItem:
Inheritance graph
[legend]

Public Member Functions

int id () 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)
 
void setColor (const QColor &color)
 
void setWordID (int id)
 
int wordID () const
 
virtual ~KeypointItem ()
 

Protected Member Functions

virtual void focusInEvent (QFocusEvent *event)
 
virtual void focusOutEvent (QFocusEvent *event)
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 

Private Member Functions

void hideDescription ()
 
void showDescription ()
 

Private Attributes

int id_
 
cv::KeyPoint kpt_
 
QGraphicsRectItem * placeHolder_
 
int wordID_
 

Detailed Description

Definition at line 39 of file KeypointItem.h.

Constructor & Destructor Documentation

◆ KeypointItem()

find_object::KeypointItem::KeypointItem ( int  id,
qreal  x,
qreal  y,
int  r,
const cv::KeyPoint &  kpt,
int  wordID = -1,
const QColor &  color = Qt::green,
QGraphicsItem *  parent = 0 
)

Definition at line 36 of file KeypointItem.cpp.

◆ ~KeypointItem()

find_object::KeypointItem::~KeypointItem ( )
virtual

Definition at line 50 of file KeypointItem.cpp.

Member Function Documentation

◆ focusInEvent()

void find_object::KeypointItem::focusInEvent ( QFocusEvent *  event)
protectedvirtual

Definition at line 125 of file KeypointItem.cpp.

◆ focusOutEvent()

void find_object::KeypointItem::focusOutEvent ( QFocusEvent *  event)
protectedvirtual

Definition at line 131 of file KeypointItem.cpp.

◆ hideDescription()

void find_object::KeypointItem::hideDescription ( )
private

Definition at line 101 of file KeypointItem.cpp.

◆ hoverEnterEvent()

void find_object::KeypointItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

Definition at line 110 of file KeypointItem.cpp.

◆ hoverLeaveEvent()

void find_object::KeypointItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

Definition at line 116 of file KeypointItem.cpp.

◆ id()

int find_object::KeypointItem::id ( ) const
inline

Definition at line 48 of file KeypointItem.h.

◆ setColor()

void find_object::KeypointItem::setColor ( const QColor &  color)

Definition at line 54 of file KeypointItem.cpp.

◆ setWordID()

void find_object::KeypointItem::setWordID ( int  id)
inline

Definition at line 46 of file KeypointItem.h.

◆ showDescription()

void find_object::KeypointItem::showDescription ( )
private

Definition at line 68 of file KeypointItem.cpp.

◆ wordID()

int find_object::KeypointItem::wordID ( ) const
inline

Definition at line 47 of file KeypointItem.h.

Member Data Documentation

◆ id_

int find_object::KeypointItem::id_
private

Definition at line 62 of file KeypointItem.h.

◆ kpt_

cv::KeyPoint find_object::KeypointItem::kpt_
private

Definition at line 63 of file KeypointItem.h.

◆ placeHolder_

QGraphicsRectItem* find_object::KeypointItem::placeHolder_
private

Definition at line 61 of file KeypointItem.h.

◆ wordID_

int find_object::KeypointItem::wordID_
private

Definition at line 64 of file KeypointItem.h.


The documentation for this class was generated from the following files:


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Dec 12 2022 03:20:10