Class ObjWidget

Inheritance Relationships

Base Type

  • public QWidget

Class Documentation

class ObjWidget : public QWidget

Public Functions

ObjWidget(QWidget *parent = 0)
ObjWidget(int id, const std::vector<cv::KeyPoint> &keypoints, const QMultiMap<int, int> &words, const QImage &image, QWidget *parent = 0)
virtual ~ObjWidget()
void setId(int id)
void updateImage(const QImage &image)
void updateData(const std::vector<cv::KeyPoint> &keypoints, const QMultiMap<int, int> &words = QMultiMap<int, int>())
void updateWords(const QMultiMap<int, int> &words)
void setTextLabel(const QString &text)
void resetKptsColor()
void resetKptsWordID()
void setKptColor(int index, const QColor &color)
void setKptWordID(int index, int wordId)
void setGraphicsViewMode(bool on)
void setAutoScale(bool autoScale)
void setSizedFeatures(bool on)
void setMirrorView(bool on)
void setAlpha(int alpha)
void setDeletable(bool deletable)
void setImageShown(bool shown)
void setFeaturesShown(bool shown)
void addRect(QGraphicsRectItem *rect)
inline void clearRoiSelection()
inline int id() const
inline const QColor &color() const
inline const std::vector<cv::KeyPoint> keypoints() const
inline const QMap<int, int> &words() const
inline const QPixmap &pixmap() const
QColor defaultColor(int id) const
bool isImageShown() const
bool isFeaturesShown() const
bool isSizedFeatures() const
bool isMirrorView() const
std::vector<cv::KeyPoint> selectedKeypoints() const
QList<QGraphicsItem*> selectedItems() const
QPixmap getSceneAsPixmap()

Signals

void removalTriggered(find_object::ObjWidget*)
void selectionChanged()
void roiChanged(const cv::Rect&)

Protected Functions

virtual void paintEvent(QPaintEvent *event)
virtual void contextMenuEvent(QContextMenuEvent *event)
virtual void resizeEvent(QResizeEvent *event)
virtual void mousePressEvent(QMouseEvent *event)
virtual void mouseMoveEvent(QMouseEvent *event)
virtual void mouseReleaseEvent(QMouseEvent *event)