#include <ImageView.h>
Signals | |
| void | configChanged () |
Public Member Functions | |
| void | addFeature (int id, const cv::KeyPoint &kpt, float depth, QColor color) |
| void | addLine (float x1, float y1, float x2, float y2, QColor color) |
| void | clear () |
| void | clearLines () |
| int | getAlpha () const |
| const QColor & | getBackgroundColor () const |
| const QMultiMap< int, rtabmap::KeypointItem * > & | getFeatures () const |
| ImageView (QWidget *parent=0) | |
| bool | isFeaturesShown () const |
| bool | isGraphicsViewMode () const |
| bool | isGraphicsViewScaled () const |
| bool | isImageDepthShown () const |
| bool | isImageShown () const |
| bool | isLinesShown () const |
| void | loadSettings (QSettings &settings, const QString &group="") |
| void | saveSettings (QSettings &settings, const QString &group="") const |
| void | setAlpha (int alpha) |
| void | setBackgroundColor (const QColor &color) |
| void | setFeatureColor (int id, QColor color) |
| void | setFeatures (const std::multimap< int, cv::KeyPoint > &refWords, const cv::Mat &depth=cv::Mat(), const QColor &color=Qt::yellow) |
| void | setFeatures (const std::vector< cv::KeyPoint > &features, const cv::Mat &depth=cv::Mat(), const QColor &color=Qt::yellow) |
| void | setFeaturesColor (QColor color) |
| void | setFeaturesShown (bool shown) |
| void | setGraphicsViewMode (bool on) |
| void | setGraphicsViewScaled (bool scaled) |
| void | setImage (const QImage &image) |
| void | setImageDepth (const QImage &image) |
| void | setImageDepthShown (bool shown) |
| void | setImageShown (bool shown) |
| void | setLinesShown (bool shown) |
| void | setSceneRect (const QRectF &rect) |
| virtual QSize | sizeHint () const |
| float | viewScale () const |
| virtual | ~ImageView () |
Protected Member Functions | |
| virtual void | contextMenuEvent (QContextMenuEvent *e) |
| virtual void | paintEvent (QPaintEvent *event) |
| virtual void | resizeEvent (QResizeEvent *event) |
Private Slots | |
| void | sceneRectChanged (const QRectF &rect) |
Private Member Functions | |
| void | computeScaleOffsets (const QRect &targetRect, float &scale, float &offsetX, float &offsetY) const |
| void | updateOpacity () |
Private Attributes | |
| int | _alpha |
| QMultiMap< int, rtabmap::KeypointItem * > | _features |
| QGraphicsView * | _graphicsView |
| QAction * | _graphicsViewMode |
| QAction * | _graphicsViewScaled |
| QPixmap | _image |
| QPixmap | _imageDepth |
| QGraphicsPixmapItem * | _imageDepthItem |
| QGraphicsPixmapItem * | _imageItem |
| QList< QGraphicsLineItem * > | _lines |
| QMenu * | _menu |
| QString | _savedFileName |
| QAction * | _saveImage |
| QAction * | _setAlpha |
| QAction * | _showFeatures |
| QAction * | _showImage |
| QAction * | _showImageDepth |
| QAction * | _showLines |
Definition at line 47 of file ImageView.h.
| rtabmap::ImageView::ImageView | ( | QWidget * | parent = 0 | ) |
Definition at line 45 of file ImageView.cpp.
| rtabmap::ImageView::~ImageView | ( | ) | [virtual] |
Definition at line 88 of file ImageView.cpp.
| void rtabmap::ImageView::addFeature | ( | int | id, |
| const cv::KeyPoint & | kpt, | ||
| float | depth, | ||
| QColor | color | ||
| ) |
Definition at line 579 of file ImageView.cpp.
| void rtabmap::ImageView::addLine | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| QColor | color | ||
| ) |
Definition at line 593 of file ImageView.cpp.
| void rtabmap::ImageView::clear | ( | ) |
Definition at line 747 of file ImageView.cpp.
| void rtabmap::ImageView::clearLines | ( | ) |
Definition at line 736 of file ImageView.cpp.
| void rtabmap::ImageView::computeScaleOffsets | ( | const QRect & | targetRect, |
| float & | scale, | ||
| float & | offsetX, | ||
| float & | offsetY | ||
| ) | const [private] |
Definition at line 324 of file ImageView.cpp.
| void rtabmap::ImageView::configChanged | ( | ) | [signal] |
| void rtabmap::ImageView::contextMenuEvent | ( | QContextMenuEvent * | e | ) | [protected, virtual] |
Definition at line 448 of file ImageView.cpp.
| int rtabmap::ImageView::getAlpha | ( | ) | const [inline] |
Definition at line 62 of file ImageView.h.
| const QColor & rtabmap::ImageView::getBackgroundColor | ( | ) | const |
Definition at line 155 of file ImageView.cpp.
| const QMultiMap<int, rtabmap::KeypointItem *>& rtabmap::ImageView::getFeatures | ( | ) | const [inline] |
Definition at line 88 of file ImageView.h.
| bool rtabmap::ImageView::isFeaturesShown | ( | ) | const |
Definition at line 140 of file ImageView.cpp.
| bool rtabmap::ImageView::isGraphicsViewMode | ( | ) | const |
Definition at line 145 of file ImageView.cpp.
| bool rtabmap::ImageView::isGraphicsViewScaled | ( | ) | const |
Definition at line 150 of file ImageView.cpp.
| bool rtabmap::ImageView::isImageDepthShown | ( | ) | const |
Definition at line 135 of file ImageView.cpp.
| bool rtabmap::ImageView::isImageShown | ( | ) | const |
Definition at line 130 of file ImageView.cpp.
| bool rtabmap::ImageView::isLinesShown | ( | ) | const |
Definition at line 205 of file ImageView.cpp.
| void rtabmap::ImageView::loadSettings | ( | QSettings & | settings, |
| const QString & | group = "" |
||
| ) |
Definition at line 111 of file ImageView.cpp.
| void rtabmap::ImageView::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Definition at line 369 of file ImageView.cpp.
| void rtabmap::ImageView::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
Definition at line 439 of file ImageView.cpp.
| void rtabmap::ImageView::saveSettings | ( | QSettings & | settings, |
| const QString & | group = "" |
||
| ) | const |
Definition at line 92 of file ImageView.cpp.
| void rtabmap::ImageView::sceneRectChanged | ( | const QRectF & | rect | ) | [private, slot] |
Definition at line 364 of file ImageView.cpp.
| void rtabmap::ImageView::setAlpha | ( | int | alpha | ) |
Definition at line 692 of file ImageView.cpp.
| void rtabmap::ImageView::setBackgroundColor | ( | const QColor & | color | ) |
Definition at line 314 of file ImageView.cpp.
| void rtabmap::ImageView::setFeatureColor | ( | int | id, |
| QColor | color | ||
| ) |
Definition at line 656 of file ImageView.cpp.
| void rtabmap::ImageView::setFeatures | ( | const std::multimap< int, cv::KeyPoint > & | refWords, |
| const cv::Mat & | depth = cv::Mat(), |
||
| const QColor & | color = Qt::yellow |
||
| ) |
Definition at line 547 of file ImageView.cpp.
| void rtabmap::ImageView::setFeatures | ( | const std::vector< cv::KeyPoint > & | features, |
| const cv::Mat & | depth = cv::Mat(), |
||
| const QColor & | color = Qt::yellow |
||
| ) |
Definition at line 563 of file ImageView.cpp.
| void rtabmap::ImageView::setFeaturesColor | ( | QColor | color | ) |
Definition at line 678 of file ImageView.cpp.
| void rtabmap::ImageView::setFeaturesShown | ( | bool | shown | ) |
Definition at line 161 of file ImageView.cpp.
| void rtabmap::ImageView::setGraphicsViewMode | ( | bool | on | ) |
Definition at line 238 of file ImageView.cpp.
| void rtabmap::ImageView::setGraphicsViewScaled | ( | bool | scaled | ) |
Definition at line 295 of file ImageView.cpp.
| void rtabmap::ImageView::setImage | ( | const QImage & | image | ) |
Definition at line 608 of file ImageView.cpp.
| void rtabmap::ImageView::setImageDepth | ( | const QImage & | image | ) |
Definition at line 632 of file ImageView.cpp.
| void rtabmap::ImageView::setImageDepthShown | ( | bool | shown | ) |
Definition at line 190 of file ImageView.cpp.
| void rtabmap::ImageView::setImageShown | ( | bool | shown | ) |
Definition at line 175 of file ImageView.cpp.
| void rtabmap::ImageView::setLinesShown | ( | bool | shown | ) |
Definition at line 210 of file ImageView.cpp.
| void rtabmap::ImageView::setSceneRect | ( | const QRectF & | rect | ) |
Definition at line 717 of file ImageView.cpp.
| QSize rtabmap::ImageView::sizeHint | ( | ) | const [virtual] |
Definition at line 779 of file ImageView.cpp.
| void rtabmap::ImageView::updateOpacity | ( | ) | [private] |
Definition at line 526 of file ImageView.cpp.
| float rtabmap::ImageView::viewScale | ( | ) | const |
Definition at line 224 of file ImageView.cpp.
int rtabmap::ImageView::_alpha [private] |
Definition at line 112 of file ImageView.h.
QMultiMap<int, rtabmap::KeypointItem *> rtabmap::ImageView::_features [private] |
Definition at line 125 of file ImageView.h.
QGraphicsView* rtabmap::ImageView::_graphicsView [private] |
Definition at line 124 of file ImageView.h.
QAction* rtabmap::ImageView::_graphicsViewMode [private] |
Definition at line 121 of file ImageView.h.
QAction* rtabmap::ImageView::_graphicsViewScaled [private] |
Definition at line 122 of file ImageView.h.
QPixmap rtabmap::ImageView::_image [private] |
Definition at line 129 of file ImageView.h.
QPixmap rtabmap::ImageView::_imageDepth [private] |
Definition at line 130 of file ImageView.h.
QGraphicsPixmapItem* rtabmap::ImageView::_imageDepthItem [private] |
Definition at line 128 of file ImageView.h.
QGraphicsPixmapItem* rtabmap::ImageView::_imageItem [private] |
Definition at line 127 of file ImageView.h.
QList<QGraphicsLineItem*> rtabmap::ImageView::_lines [private] |
Definition at line 126 of file ImageView.h.
QMenu* rtabmap::ImageView::_menu [private] |
Definition at line 114 of file ImageView.h.
QString rtabmap::ImageView::_savedFileName [private] |
Definition at line 111 of file ImageView.h.
QAction* rtabmap::ImageView::_saveImage [private] |
Definition at line 119 of file ImageView.h.
QAction* rtabmap::ImageView::_setAlpha [private] |
Definition at line 120 of file ImageView.h.
QAction* rtabmap::ImageView::_showFeatures [private] |
Definition at line 117 of file ImageView.h.
QAction* rtabmap::ImageView::_showImage [private] |
Definition at line 115 of file ImageView.h.
QAction* rtabmap::ImageView::_showImageDepth [private] |
Definition at line 116 of file ImageView.h.
QAction* rtabmap::ImageView::_showLines [private] |
Definition at line 118 of file ImageView.h.