#include <ObjWidget.h>
Signals | |
void | removalTriggered (find_object::ObjWidget *) |
void | roiChanged (const cv::Rect &) |
void | selectionChanged () |
Public Member Functions | |
void | addRect (QGraphicsRectItem *rect) |
void | clearRoiSelection () |
const QColor & | color () const |
QColor | defaultColor () const |
QPixmap | getSceneAsPixmap () |
int | id () const |
bool | isFeaturesShown () const |
bool | isImageShown () const |
bool | isMirrorView () const |
bool | isSizedFeatures () const |
const std::vector< cv::KeyPoint > | keypoints () const |
ObjWidget (QWidget *parent=0) | |
ObjWidget (int id, const std::vector< cv::KeyPoint > &keypoints, const QImage &image, QWidget *parent=0) | |
const QPixmap & | pixmap () const |
void | resetKptsColor () |
QList< QGraphicsItem * > | selectedItems () const |
std::vector< cv::KeyPoint > | selectedKeypoints () const |
void | setAlpha (int alpha) |
void | setAutoScale (bool autoScale) |
void | setData (const std::vector< cv::KeyPoint > &keypoints, const QImage &image) |
void | setDeletable (bool deletable) |
void | setFeaturesShown (bool shown) |
void | setGraphicsViewMode (bool on) |
void | setId (int id) |
void | setImageShown (bool shown) |
void | setKptColor (int index, const QColor &color) |
void | setMirrorView (bool on) |
void | setSizedFeatures (bool on) |
void | setTextLabel (const QString &text) |
virtual | ~ObjWidget () |
Protected Member Functions | |
virtual void | contextMenuEvent (QContextMenuEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
virtual void | paintEvent (QPaintEvent *event) |
virtual void | resizeEvent (QResizeEvent *event) |
Private Member Functions | |
void | computeScaleOffsets (float &scale, float &offsetX, float &offsetY) |
void | drawKeypoints (QPainter *painter=0) |
void | setupGraphicsView () |
void | setupUi () |
void | updateItemsShown () |
Private Attributes | |
int | alpha_ |
QAction * | autoScale_ |
QColor | color_ |
QAction * | delete_ |
QGraphicsView * | graphicsView_ |
bool | graphicsViewInitialized_ |
QAction * | graphicsViewMode_ |
int | id_ |
QList< KeypointItem * > | keypointItems_ |
std::vector< cv::KeyPoint > | keypoints_ |
QVector< QColor > | kptColors_ |
QLabel * | label_ |
QMenu * | menu_ |
QAction * | mirrorView_ |
QPoint | mouseCurrentPos_ |
QPoint | mousePressedPos_ |
QPixmap | pixmap_ |
QList< QGraphicsRectItem * > | rectItems_ |
QString | savedFileName_ |
QAction * | saveImage_ |
QAction * | setAlpha_ |
QAction * | setColor_ |
QAction * | showFeatures_ |
QAction * | showImage_ |
QAction * | sizedFeatures_ |
Definition at line 50 of file ObjWidget.h.
find_object::ObjWidget::ObjWidget | ( | QWidget * | parent = 0 | ) |
Definition at line 58 of file ObjWidget.cpp.
find_object::ObjWidget::ObjWidget | ( | int | id, |
const std::vector< cv::KeyPoint > & | keypoints, | ||
const QImage & | image, | ||
QWidget * | parent = 0 |
||
) |
Definition at line 68 of file ObjWidget.cpp.
find_object::ObjWidget::~ObjWidget | ( | ) | [virtual] |
Definition at line 79 of file ObjWidget.cpp.
void find_object::ObjWidget::addRect | ( | QGraphicsRectItem * | rect | ) |
Definition at line 323 of file ObjWidget.cpp.
void find_object::ObjWidget::clearRoiSelection | ( | ) | [inline] |
Definition at line 73 of file ObjWidget.h.
const QColor& find_object::ObjWidget::color | ( | ) | const [inline] |
Definition at line 76 of file ObjWidget.h.
void find_object::ObjWidget::computeScaleOffsets | ( | float & | scale, |
float & | offsetX, | ||
float & | offsetY | ||
) | [private] |
Definition at line 394 of file ObjWidget.cpp.
void find_object::ObjWidget::contextMenuEvent | ( | QContextMenuEvent * | event | ) | [protected, virtual] |
Definition at line 558 of file ObjWidget.cpp.
QColor find_object::ObjWidget::defaultColor | ( | ) | const |
Definition at line 724 of file ObjWidget.cpp.
void find_object::ObjWidget::drawKeypoints | ( | QPainter * | painter = 0 | ) | [private] |
Definition at line 681 of file ObjWidget.cpp.
QPixmap find_object::ObjWidget::getSceneAsPixmap | ( | ) |
Definition at line 650 of file ObjWidget.cpp.
int find_object::ObjWidget::id | ( | ) | const [inline] |
Definition at line 75 of file ObjWidget.h.
bool find_object::ObjWidget::isFeaturesShown | ( | ) | const |
Definition at line 348 of file ObjWidget.cpp.
bool find_object::ObjWidget::isImageShown | ( | ) | const |
Definition at line 343 of file ObjWidget.cpp.
bool find_object::ObjWidget::isMirrorView | ( | ) | const |
Definition at line 358 of file ObjWidget.cpp.
bool find_object::ObjWidget::isSizedFeatures | ( | ) | const |
Definition at line 353 of file ObjWidget.cpp.
const std::vector<cv::KeyPoint> find_object::ObjWidget::keypoints | ( | ) | const [inline] |
Definition at line 77 of file ObjWidget.h.
void find_object::ObjWidget::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 525 of file ObjWidget.cpp.
void find_object::ObjWidget::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 514 of file ObjWidget.cpp.
void find_object::ObjWidget::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 535 of file ObjWidget.cpp.
void find_object::ObjWidget::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Definition at line 434 of file ObjWidget.cpp.
const QPixmap& find_object::ObjWidget::pixmap | ( | ) | const [inline] |
Definition at line 78 of file ObjWidget.h.
void find_object::ObjWidget::removalTriggered | ( | find_object::ObjWidget * | ) | [signal] |
Definition at line 287 of file ObjWidget.cpp.
void find_object::ObjWidget::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
Definition at line 505 of file ObjWidget.cpp.
void find_object::ObjWidget::roiChanged | ( | const cv::Rect & | ) | [signal] |
QList< QGraphicsItem * > find_object::ObjWidget::selectedItems | ( | ) | const |
Definition at line 338 of file ObjWidget.cpp.
std::vector< cv::KeyPoint > find_object::ObjWidget::selectedKeypoints | ( | ) | const |
Definition at line 731 of file ObjWidget.cpp.
void find_object::ObjWidget::selectionChanged | ( | ) | [signal] |
void find_object::ObjWidget::setAlpha | ( | int | alpha | ) |
Definition at line 232 of file ObjWidget.cpp.
void find_object::ObjWidget::setAutoScale | ( | bool | autoScale | ) |
Definition at line 179 of file ObjWidget.cpp.
void find_object::ObjWidget::setData | ( | const std::vector< cv::KeyPoint > & | keypoints, |
const QImage & | image | ||
) |
Definition at line 267 of file ObjWidget.cpp.
void find_object::ObjWidget::setDeletable | ( | bool | deletable | ) |
Definition at line 363 of file ObjWidget.cpp.
void find_object::ObjWidget::setFeaturesShown | ( | bool | shown | ) |
Definition at line 381 of file ObjWidget.cpp.
void find_object::ObjWidget::setGraphicsViewMode | ( | bool | on | ) |
Definition at line 146 of file ObjWidget.cpp.
void find_object::ObjWidget::setId | ( | int | id | ) |
Definition at line 136 of file ObjWidget.cpp.
void find_object::ObjWidget::setImageShown | ( | bool | shown | ) |
Definition at line 368 of file ObjWidget.cpp.
void find_object::ObjWidget::setKptColor | ( | int | index, |
const QColor & | color | ||
) |
Definition at line 301 of file ObjWidget.cpp.
void find_object::ObjWidget::setMirrorView | ( | bool | on | ) |
Definition at line 218 of file ObjWidget.cpp.
void find_object::ObjWidget::setSizedFeatures | ( | bool | on | ) |
Definition at line 196 of file ObjWidget.cpp.
void find_object::ObjWidget::setTextLabel | ( | const QString & | text | ) |
Definition at line 262 of file ObjWidget.cpp.
void find_object::ObjWidget::setupGraphicsView | ( | ) | [private] |
Definition at line 748 of file ObjWidget.cpp.
void find_object::ObjWidget::setupUi | ( | ) | [private] |
Definition at line 83 of file ObjWidget.cpp.
void find_object::ObjWidget::updateItemsShown | ( | ) | [private] |
Definition at line 665 of file ObjWidget.cpp.
int find_object::ObjWidget::alpha_ [private] |
Definition at line 119 of file ObjWidget.h.
QAction* find_object::ObjWidget::autoScale_ [private] |
Definition at line 132 of file ObjWidget.h.
QColor find_object::ObjWidget::color_ [private] |
Definition at line 121 of file ObjWidget.h.
QAction* find_object::ObjWidget::delete_ [private] |
Definition at line 130 of file ObjWidget.h.
QGraphicsView* find_object::ObjWidget::graphicsView_ [private] |
Definition at line 115 of file ObjWidget.h.
bool find_object::ObjWidget::graphicsViewInitialized_ [private] |
Definition at line 118 of file ObjWidget.h.
QAction* find_object::ObjWidget::graphicsViewMode_ [private] |
Definition at line 131 of file ObjWidget.h.
int find_object::ObjWidget::id_ [private] |
Definition at line 111 of file ObjWidget.h.
QList<KeypointItem*> find_object::ObjWidget::keypointItems_ [private] |
Definition at line 114 of file ObjWidget.h.
std::vector<cv::KeyPoint> find_object::ObjWidget::keypoints_ [private] |
Definition at line 112 of file ObjWidget.h.
QVector<QColor> find_object::ObjWidget::kptColors_ [private] |
Definition at line 116 of file ObjWidget.h.
QLabel* find_object::ObjWidget::label_ [private] |
Definition at line 120 of file ObjWidget.h.
QMenu* find_object::ObjWidget::menu_ [private] |
Definition at line 125 of file ObjWidget.h.
QAction* find_object::ObjWidget::mirrorView_ [private] |
Definition at line 129 of file ObjWidget.h.
QPoint find_object::ObjWidget::mouseCurrentPos_ [private] |
Definition at line 139 of file ObjWidget.h.
QPoint find_object::ObjWidget::mousePressedPos_ [private] |
Definition at line 138 of file ObjWidget.h.
QPixmap find_object::ObjWidget::pixmap_ [private] |
Definition at line 113 of file ObjWidget.h.
QList<QGraphicsRectItem*> find_object::ObjWidget::rectItems_ [private] |
Definition at line 117 of file ObjWidget.h.
QString find_object::ObjWidget::savedFileName_ [private] |
Definition at line 124 of file ObjWidget.h.
QAction* find_object::ObjWidget::saveImage_ [private] |
Definition at line 128 of file ObjWidget.h.
QAction* find_object::ObjWidget::setAlpha_ [private] |
Definition at line 134 of file ObjWidget.h.
QAction* find_object::ObjWidget::setColor_ [private] |
Definition at line 135 of file ObjWidget.h.
QAction* find_object::ObjWidget::showFeatures_ [private] |
Definition at line 127 of file ObjWidget.h.
QAction* find_object::ObjWidget::showImage_ [private] |
Definition at line 126 of file ObjWidget.h.
QAction* find_object::ObjWidget::sizedFeatures_ [private] |
Definition at line 133 of file ObjWidget.h.