Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
rtabmap::ImageView Class Reference

#include <ImageView.h>

Inheritance diagram for rtabmap::ImageView:
Inheritance graph
[legend]

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, const QString &text=QString())
 
void clear ()
 
void clearFeatures ()
 
void clearLines ()
 
int getAlpha () const
 
const QColor & getBackgroundColor () const
 
const QColor & getDefaultBackgroundColor () const
 
const QColor & getDefaultFeatureColor () const
 
const QColor & getDefaultMatchingFeatureColor () const
 
const QColor & getDefaultMatchingLineColor () const
 
uCvQtDepthColorMap getDepthColorMap () const
 
const QMultiMap< int, rtabmap::KeypointItem * > & getFeatures () const
 
int getFeaturesSize () const
 
 ImageView (QWidget *parent=0)
 
bool isFeaturesShown () const
 
bool isGraphicsViewMode () const
 
bool isGraphicsViewScaled () const
 
bool isGraphicsViewScaledToHeight () 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
 
QRectF sceneRect () const
 
void setAlpha (int alpha)
 
void setBackgroundColor (const QColor &color)
 
void setDefaultBackgroundColor (const QColor &color)
 
void setDefaultFeatureColor (const QColor &color)
 
void setDefaultMatchingFeatureColor (const QColor &color)
 
void setDefaultMatchingLineColor (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 setFeaturesSize (int size)
 
void setGraphicsViewMode (bool on)
 
void setGraphicsViewScaled (bool scaled)
 
void setGraphicsViewScaledToHeight (bool scaled)
 
void setImage (const QImage &image)
 
void setImageDepth (const cv::Mat &imageDepth)
 
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
 
QIcon createIcon (const QColor &color)
 
void updateOpacity ()
 

Private Attributes

int _alpha
 
QAction * _colorMapBlackToWhite
 
QAction * _colorMapBlueToRed
 
QAction * _colorMapRedToBlue
 
QAction * _colorMapWhiteToBlack
 
QColor _defaultBgColor
 
QColor _defaultFeatureColor
 
QColor _defaultMatchingFeatureColor
 
QColor _defaultMatchingLineColor
 
QMenu * _featureMenu
 
QMultiMap< int, rtabmap::KeypointItem * > _features
 
int _featuresSize
 
QGraphicsView * _graphicsView
 
QAction * _graphicsViewMode
 
QAction * _graphicsViewNoScaling
 
QAction * _graphicsViewScaled
 
QAction * _graphicsViewScaledToHeight
 
QPixmap _image
 
QPixmap _imageDepth
 
cv::Mat _imageDepthCv
 
QGraphicsPixmapItem * _imageDepthItem
 
QGraphicsPixmapItem * _imageItem
 
QList< QGraphicsLineItem * > _lines
 
QMenu * _menu
 
QString _savedFileName
 
QAction * _saveImage
 
QMenu * _scaleMenu
 
QAction * _setAlpha
 
QAction * _setFeatureColor
 
QAction * _setFeaturesSize
 
QAction * _setMatchingFeatureColor
 
QAction * _setMatchingLineColor
 
QAction * _showFeatures
 
QAction * _showImage
 
QAction * _showImageDepth
 
QAction * _showLines
 

Detailed Description

Definition at line 48 of file ImageView.h.

Constructor & Destructor Documentation

rtabmap::ImageView::ImageView ( QWidget *  parent = 0)

Definition at line 165 of file ImageView.cpp.

rtabmap::ImageView::~ImageView ( )
virtual

Definition at line 265 of file ImageView.cpp.

Member Function Documentation

void rtabmap::ImageView::addFeature ( int  id,
const cv::KeyPoint &  kpt,
float  depth,
QColor  color 
)

Definition at line 1066 of file ImageView.cpp.

void rtabmap::ImageView::addLine ( float  x1,
float  y1,
float  x2,
float  y2,
QColor  color,
const QString &  text = QString() 
)

Definition at line 1084 of file ImageView.cpp.

void rtabmap::ImageView::clear ( )

Definition at line 1297 of file ImageView.cpp.

void rtabmap::ImageView::clearFeatures ( )

Definition at line 1286 of file ImageView.cpp.

void rtabmap::ImageView::clearLines ( )

Definition at line 1275 of file ImageView.cpp.

void rtabmap::ImageView::computeScaleOffsets ( const QRect &  targetRect,
float &  scale,
float &  offsetX,
float &  offsetY 
) const
private

Definition at line 679 of file ImageView.cpp.

void rtabmap::ImageView::configChanged ( )
signal
void rtabmap::ImageView::contextMenuEvent ( QContextMenuEvent *  e)
protectedvirtual

Definition at line 812 of file ImageView.cpp.

QIcon rtabmap::ImageView::createIcon ( const QColor &  color)
private

Definition at line 158 of file ImageView.cpp.

int rtabmap::ImageView::getAlpha ( ) const
inline

Definition at line 64 of file ImageView.h.

const QColor & rtabmap::ImageView::getBackgroundColor ( ) const

Definition at line 377 of file ImageView.cpp.

const QColor & rtabmap::ImageView::getDefaultBackgroundColor ( ) const

Definition at line 360 of file ImageView.cpp.

const QColor & rtabmap::ImageView::getDefaultFeatureColor ( ) const

Definition at line 364 of file ImageView.cpp.

const QColor & rtabmap::ImageView::getDefaultMatchingFeatureColor ( ) const

Definition at line 368 of file ImageView.cpp.

const QColor & rtabmap::ImageView::getDefaultMatchingLineColor ( ) const

Definition at line 372 of file ImageView.cpp.

uCvQtDepthColorMap rtabmap::ImageView::getDepthColorMap ( ) const

Definition at line 382 of file ImageView.cpp.

const QMultiMap<int, rtabmap::KeypointItem *>& rtabmap::ImageView::getFeatures ( ) const
inline

Definition at line 104 of file ImageView.h.

int rtabmap::ImageView::getFeaturesSize ( ) const
inline

Definition at line 65 of file ImageView.h.

bool rtabmap::ImageView::isFeaturesShown ( ) const

Definition at line 340 of file ImageView.cpp.

bool rtabmap::ImageView::isGraphicsViewMode ( ) const

Definition at line 345 of file ImageView.cpp.

bool rtabmap::ImageView::isGraphicsViewScaled ( ) const

Definition at line 350 of file ImageView.cpp.

bool rtabmap::ImageView::isGraphicsViewScaledToHeight ( ) const

Definition at line 355 of file ImageView.cpp.

bool rtabmap::ImageView::isImageDepthShown ( ) const

Definition at line 335 of file ImageView.cpp.

bool rtabmap::ImageView::isImageShown ( ) const

Definition at line 330 of file ImageView.cpp.

bool rtabmap::ImageView::isLinesShown ( ) const

Definition at line 445 of file ImageView.cpp.

void rtabmap::ImageView::loadSettings ( QSettings &  settings,
const QString &  group = "" 
)

Definition at line 295 of file ImageView.cpp.

void rtabmap::ImageView::paintEvent ( QPaintEvent *  event)
protectedvirtual

Definition at line 724 of file ImageView.cpp.

void rtabmap::ImageView::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Definition at line 794 of file ImageView.cpp.

void rtabmap::ImageView::saveSettings ( QSettings &  settings,
const QString &  group = "" 
) const

Definition at line 269 of file ImageView.cpp.

QRectF rtabmap::ImageView::sceneRect ( ) const

Definition at line 325 of file ImageView.cpp.

void rtabmap::ImageView::sceneRectChanged ( const QRectF &  rect)
privateslot

Definition at line 719 of file ImageView.cpp.

void rtabmap::ImageView::setAlpha ( int  alpha)

Definition at line 1205 of file ImageView.cpp.

void rtabmap::ImageView::setBackgroundColor ( const QColor &  color)

Definition at line 669 of file ImageView.cpp.

void rtabmap::ImageView::setDefaultBackgroundColor ( const QColor &  color)

Definition at line 585 of file ImageView.cpp.

void rtabmap::ImageView::setDefaultFeatureColor ( const QColor &  color)

Definition at line 591 of file ImageView.cpp.

void rtabmap::ImageView::setDefaultMatchingFeatureColor ( const QColor &  color)

Definition at line 610 of file ImageView.cpp.

void rtabmap::ImageView::setDefaultMatchingLineColor ( const QColor &  color)

Definition at line 639 of file ImageView.cpp.

void rtabmap::ImageView::setFeatureColor ( int  id,
QColor  color 
)

Definition at line 1169 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 1002 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 1034 of file ImageView.cpp.

void rtabmap::ImageView::setFeaturesColor ( QColor  color)

Definition at line 1191 of file ImageView.cpp.

void rtabmap::ImageView::setFeaturesShown ( bool  shown)

Definition at line 401 of file ImageView.cpp.

void rtabmap::ImageView::setFeaturesSize ( int  size)

Definition at line 1230 of file ImageView.cpp.

void rtabmap::ImageView::setGraphicsViewMode ( bool  on)

Definition at line 478 of file ImageView.cpp.

void rtabmap::ImageView::setGraphicsViewScaled ( bool  scaled)

Definition at line 545 of file ImageView.cpp.

void rtabmap::ImageView::setGraphicsViewScaledToHeight ( bool  scaled)

Definition at line 564 of file ImageView.cpp.

void rtabmap::ImageView::setImage ( const QImage &  image)

Definition at line 1099 of file ImageView.cpp.

void rtabmap::ImageView::setImageDepth ( const cv::Mat &  imageDepth)

Definition at line 1126 of file ImageView.cpp.

void rtabmap::ImageView::setImageDepth ( const QImage &  image)

Definition at line 1132 of file ImageView.cpp.

void rtabmap::ImageView::setImageDepthShown ( bool  shown)

Definition at line 430 of file ImageView.cpp.

void rtabmap::ImageView::setImageShown ( bool  shown)

Definition at line 415 of file ImageView.cpp.

void rtabmap::ImageView::setLinesShown ( bool  shown)

Definition at line 450 of file ImageView.cpp.

void rtabmap::ImageView::setSceneRect ( const QRectF &  rect)

Definition at line 1250 of file ImageView.cpp.

QSize rtabmap::ImageView::sizeHint ( ) const
virtual

Definition at line 1329 of file ImageView.cpp.

void rtabmap::ImageView::updateOpacity ( )
private

Definition at line 981 of file ImageView.cpp.

float rtabmap::ImageView::viewScale ( ) const

Definition at line 464 of file ImageView.cpp.

Member Data Documentation

int rtabmap::ImageView::_alpha
private

Definition at line 130 of file ImageView.h.

QAction* rtabmap::ImageView::_colorMapBlackToWhite
private

Definition at line 153 of file ImageView.h.

QAction* rtabmap::ImageView::_colorMapBlueToRed
private

Definition at line 155 of file ImageView.h.

QAction* rtabmap::ImageView::_colorMapRedToBlue
private

Definition at line 154 of file ImageView.h.

QAction* rtabmap::ImageView::_colorMapWhiteToBlack
private

Definition at line 152 of file ImageView.h.

QColor rtabmap::ImageView::_defaultBgColor
private

Definition at line 132 of file ImageView.h.

QColor rtabmap::ImageView::_defaultFeatureColor
private

Definition at line 133 of file ImageView.h.

QColor rtabmap::ImageView::_defaultMatchingFeatureColor
private

Definition at line 134 of file ImageView.h.

QColor rtabmap::ImageView::_defaultMatchingLineColor
private

Definition at line 135 of file ImageView.h.

QMenu* rtabmap::ImageView::_featureMenu
private

Definition at line 156 of file ImageView.h.

QMultiMap<int, rtabmap::KeypointItem *> rtabmap::ImageView::_features
private

Definition at line 160 of file ImageView.h.

int rtabmap::ImageView::_featuresSize
private

Definition at line 131 of file ImageView.h.

QGraphicsView* rtabmap::ImageView::_graphicsView
private

Definition at line 159 of file ImageView.h.

QAction* rtabmap::ImageView::_graphicsViewMode
private

Definition at line 148 of file ImageView.h.

QAction* rtabmap::ImageView::_graphicsViewNoScaling
private

Definition at line 151 of file ImageView.h.

QAction* rtabmap::ImageView::_graphicsViewScaled
private

Definition at line 149 of file ImageView.h.

QAction* rtabmap::ImageView::_graphicsViewScaledToHeight
private

Definition at line 150 of file ImageView.h.

QPixmap rtabmap::ImageView::_image
private

Definition at line 164 of file ImageView.h.

QPixmap rtabmap::ImageView::_imageDepth
private

Definition at line 165 of file ImageView.h.

cv::Mat rtabmap::ImageView::_imageDepthCv
private

Definition at line 166 of file ImageView.h.

QGraphicsPixmapItem* rtabmap::ImageView::_imageDepthItem
private

Definition at line 163 of file ImageView.h.

QGraphicsPixmapItem* rtabmap::ImageView::_imageItem
private

Definition at line 162 of file ImageView.h.

QList<QGraphicsLineItem*> rtabmap::ImageView::_lines
private

Definition at line 161 of file ImageView.h.

QMenu* rtabmap::ImageView::_menu
private

Definition at line 137 of file ImageView.h.

QString rtabmap::ImageView::_savedFileName
private

Definition at line 129 of file ImageView.h.

QAction* rtabmap::ImageView::_saveImage
private

Definition at line 145 of file ImageView.h.

QMenu* rtabmap::ImageView::_scaleMenu
private

Definition at line 157 of file ImageView.h.

QAction* rtabmap::ImageView::_setAlpha
private

Definition at line 146 of file ImageView.h.

QAction* rtabmap::ImageView::_setFeatureColor
private

Definition at line 142 of file ImageView.h.

QAction* rtabmap::ImageView::_setFeaturesSize
private

Definition at line 147 of file ImageView.h.

QAction* rtabmap::ImageView::_setMatchingFeatureColor
private

Definition at line 143 of file ImageView.h.

QAction* rtabmap::ImageView::_setMatchingLineColor
private

Definition at line 144 of file ImageView.h.

QAction* rtabmap::ImageView::_showFeatures
private

Definition at line 140 of file ImageView.h.

QAction* rtabmap::ImageView::_showImage
private

Definition at line 138 of file ImageView.h.

QAction* rtabmap::ImageView::_showImageDepth
private

Definition at line 139 of file ImageView.h.

QAction* rtabmap::ImageView::_showLines
private

Definition at line 141 of file ImageView.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:37:08