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
 
float getDepthColorMapMaxRange () const
 
float getDepthColorMapMinRange () const
 
const QMultiMap< int, rtabmap::KeypointItem * > & getFeatures () const
 
int getFeaturesSize () const
 
int getLinesWidth () 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 setDepthColorMapRange (float min, float max)
 
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, const std::vector< CameraModel > &models=std::vector< CameraModel >(), const Transform &pose=Transform())
 
void setImageDepth (const cv::Mat &imageDepth)
 
void setImageDepth (const QImage &image)
 
void setImageDepthShown (bool shown)
 
void setImageShown (bool shown)
 
void setLinesShown (bool shown)
 
void setLinesWidth (int width)
 
void setSceneRect (const QRectF &rect)
 
virtual QSize sizeHint () const
 
float viewScale () const
 
virtual ~ImageView ()
 

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *e)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
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 * _colorMapMaxRange
 
QAction * _colorMapMinRange
 
QAction * _colorMapRedToBlue
 
QAction * _colorMapWhiteToBlack
 
QColor _defaultBgColor
 
QColor _defaultFeatureColor
 
QColor _defaultMatchingFeatureColor
 
QColor _defaultMatchingLineColor
 
float _depthColorMapMaxRange
 
float _depthColorMapMinRange
 
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
 
int _linesWidth
 
QMenu * _menu
 
std::vector< CameraModel_models
 
QAction * _mouseTracking
 
Transform _pose
 
QString _savedFileName
 
QAction * _saveImage
 
QMenu * _scaleMenu
 
QAction * _setAlpha
 
QAction * _setFeatureColor
 
QAction * _setFeaturesSize
 
QAction * _setLinesWidth
 
QAction * _setMatchingFeatureColor
 
QAction * _setMatchingLineColor
 
QAction * _showFeatures
 
QAction * _showImage
 
QAction * _showImageDepth
 
QAction * _showLines
 

Detailed Description

Definition at line 49 of file ImageView.h.

Constructor & Destructor Documentation

◆ ImageView()

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

Definition at line 172 of file ImageView.cpp.

◆ ~ImageView()

rtabmap::ImageView::~ImageView ( )
virtual

Definition at line 284 of file ImageView.cpp.

Member Function Documentation

◆ addFeature()

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

Definition at line 1201 of file ImageView.cpp.

◆ addLine()

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

Definition at line 1219 of file ImageView.cpp.

◆ clear()

void rtabmap::ImageView::clear ( )

Definition at line 1451 of file ImageView.cpp.

◆ clearFeatures()

void rtabmap::ImageView::clearFeatures ( )

Definition at line 1440 of file ImageView.cpp.

◆ clearLines()

void rtabmap::ImageView::clearLines ( )

Definition at line 1429 of file ImageView.cpp.

◆ computeScaleOffsets()

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

Definition at line 722 of file ImageView.cpp.

◆ configChanged

void rtabmap::ImageView::configChanged ( )
signal

◆ contextMenuEvent()

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

Definition at line 854 of file ImageView.cpp.

◆ createIcon()

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

Definition at line 165 of file ImageView.cpp.

◆ getAlpha()

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

Definition at line 65 of file ImageView.h.

◆ getBackgroundColor()

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

Definition at line 403 of file ImageView.cpp.

◆ getDefaultBackgroundColor()

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

Definition at line 386 of file ImageView.cpp.

◆ getDefaultFeatureColor()

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

Definition at line 390 of file ImageView.cpp.

◆ getDefaultMatchingFeatureColor()

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

Definition at line 394 of file ImageView.cpp.

◆ getDefaultMatchingLineColor()

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

Definition at line 398 of file ImageView.cpp.

◆ getDepthColorMap()

uCvQtDepthColorMap rtabmap::ImageView::getDepthColorMap ( ) const

Definition at line 418 of file ImageView.cpp.

◆ getDepthColorMapMaxRange()

float rtabmap::ImageView::getDepthColorMapMaxRange ( ) const

Definition at line 413 of file ImageView.cpp.

◆ getDepthColorMapMinRange()

float rtabmap::ImageView::getDepthColorMapMinRange ( ) const

Definition at line 408 of file ImageView.cpp.

◆ getFeatures()

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

Definition at line 110 of file ImageView.h.

◆ getFeaturesSize()

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

Definition at line 66 of file ImageView.h.

◆ getLinesWidth()

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

Definition at line 67 of file ImageView.h.

◆ isFeaturesShown()

bool rtabmap::ImageView::isFeaturesShown ( ) const

Definition at line 366 of file ImageView.cpp.

◆ isGraphicsViewMode()

bool rtabmap::ImageView::isGraphicsViewMode ( ) const

Definition at line 371 of file ImageView.cpp.

◆ isGraphicsViewScaled()

bool rtabmap::ImageView::isGraphicsViewScaled ( ) const

Definition at line 376 of file ImageView.cpp.

◆ isGraphicsViewScaledToHeight()

bool rtabmap::ImageView::isGraphicsViewScaledToHeight ( ) const

Definition at line 381 of file ImageView.cpp.

◆ isImageDepthShown()

bool rtabmap::ImageView::isImageDepthShown ( ) const

Definition at line 361 of file ImageView.cpp.

◆ isImageShown()

bool rtabmap::ImageView::isImageShown ( ) const

Definition at line 356 of file ImageView.cpp.

◆ isLinesShown()

bool rtabmap::ImageView::isLinesShown ( ) const

Definition at line 481 of file ImageView.cpp.

◆ loadSettings()

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

Definition at line 317 of file ImageView.cpp.

◆ mouseMoveEvent()

void rtabmap::ImageView::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 1057 of file ImageView.cpp.

◆ paintEvent()

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

Definition at line 767 of file ImageView.cpp.

◆ resizeEvent()

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

Definition at line 836 of file ImageView.cpp.

◆ saveSettings()

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

Definition at line 288 of file ImageView.cpp.

◆ sceneRect()

QRectF rtabmap::ImageView::sceneRect ( ) const

Definition at line 351 of file ImageView.cpp.

◆ sceneRectChanged

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

Definition at line 762 of file ImageView.cpp.

◆ setAlpha()

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

Definition at line 1343 of file ImageView.cpp.

◆ setBackgroundColor()

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

Definition at line 705 of file ImageView.cpp.

◆ setDefaultBackgroundColor()

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

Definition at line 621 of file ImageView.cpp.

◆ setDefaultFeatureColor()

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

Definition at line 627 of file ImageView.cpp.

◆ setDefaultMatchingFeatureColor()

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

Definition at line 646 of file ImageView.cpp.

◆ setDefaultMatchingLineColor()

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

Definition at line 675 of file ImageView.cpp.

◆ setDepthColorMapRange()

void rtabmap::ImageView::setDepthColorMapRange ( float  min,
float  max 
)

Definition at line 715 of file ImageView.cpp.

◆ setFeatureColor()

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

Definition at line 1307 of file ImageView.cpp.

◆ setFeatures() [1/2]

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 1137 of file ImageView.cpp.

◆ setFeatures() [2/2]

void rtabmap::ImageView::setFeatures ( const std::vector< cv::KeyPoint > &  features,
const cv::Mat depth = cv::Mat(),
const QColor &  color = Qt::yellow 
)

Definition at line 1169 of file ImageView.cpp.

◆ setFeaturesColor()

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

Definition at line 1329 of file ImageView.cpp.

◆ setFeaturesShown()

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

Definition at line 437 of file ImageView.cpp.

◆ setFeaturesSize()

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

Definition at line 1368 of file ImageView.cpp.

◆ setGraphicsViewMode()

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

Definition at line 514 of file ImageView.cpp.

◆ setGraphicsViewScaled()

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

Definition at line 581 of file ImageView.cpp.

◆ setGraphicsViewScaledToHeight()

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

Definition at line 600 of file ImageView.cpp.

◆ setImage()

void rtabmap::ImageView::setImage ( const QImage &  image,
const std::vector< CameraModel > &  models = std::vector<CameraModel>(),
const Transform pose = Transform() 
)

Definition at line 1235 of file ImageView.cpp.

◆ setImageDepth() [1/2]

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

Definition at line 1264 of file ImageView.cpp.

◆ setImageDepth() [2/2]

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

Definition at line 1270 of file ImageView.cpp.

◆ setImageDepthShown()

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

Definition at line 466 of file ImageView.cpp.

◆ setImageShown()

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

Definition at line 451 of file ImageView.cpp.

◆ setLinesShown()

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

Definition at line 486 of file ImageView.cpp.

◆ setLinesWidth()

void rtabmap::ImageView::setLinesWidth ( int  width)

Definition at line 1388 of file ImageView.cpp.

◆ setSceneRect()

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

Definition at line 1404 of file ImageView.cpp.

◆ sizeHint()

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

Definition at line 1485 of file ImageView.cpp.

◆ updateOpacity()

void rtabmap::ImageView::updateOpacity ( )
private

Definition at line 1116 of file ImageView.cpp.

◆ viewScale()

float rtabmap::ImageView::viewScale ( ) const

Definition at line 500 of file ImageView.cpp.

Member Data Documentation

◆ _alpha

int rtabmap::ImageView::_alpha
private

Definition at line 137 of file ImageView.h.

◆ _colorMapBlackToWhite

QAction* rtabmap::ImageView::_colorMapBlackToWhite
private

Definition at line 164 of file ImageView.h.

◆ _colorMapBlueToRed

QAction* rtabmap::ImageView::_colorMapBlueToRed
private

Definition at line 166 of file ImageView.h.

◆ _colorMapMaxRange

QAction* rtabmap::ImageView::_colorMapMaxRange
private

Definition at line 168 of file ImageView.h.

◆ _colorMapMinRange

QAction* rtabmap::ImageView::_colorMapMinRange
private

Definition at line 167 of file ImageView.h.

◆ _colorMapRedToBlue

QAction* rtabmap::ImageView::_colorMapRedToBlue
private

Definition at line 165 of file ImageView.h.

◆ _colorMapWhiteToBlack

QAction* rtabmap::ImageView::_colorMapWhiteToBlack
private

Definition at line 163 of file ImageView.h.

◆ _defaultBgColor

QColor rtabmap::ImageView::_defaultBgColor
private

Definition at line 140 of file ImageView.h.

◆ _defaultFeatureColor

QColor rtabmap::ImageView::_defaultFeatureColor
private

Definition at line 141 of file ImageView.h.

◆ _defaultMatchingFeatureColor

QColor rtabmap::ImageView::_defaultMatchingFeatureColor
private

Definition at line 142 of file ImageView.h.

◆ _defaultMatchingLineColor

QColor rtabmap::ImageView::_defaultMatchingLineColor
private

Definition at line 143 of file ImageView.h.

◆ _depthColorMapMaxRange

float rtabmap::ImageView::_depthColorMapMaxRange
private

Definition at line 145 of file ImageView.h.

◆ _depthColorMapMinRange

float rtabmap::ImageView::_depthColorMapMinRange
private

Definition at line 144 of file ImageView.h.

◆ _featureMenu

QMenu* rtabmap::ImageView::_featureMenu
private

Definition at line 170 of file ImageView.h.

◆ _features

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

Definition at line 174 of file ImageView.h.

◆ _featuresSize

int rtabmap::ImageView::_featuresSize
private

Definition at line 138 of file ImageView.h.

◆ _graphicsView

QGraphicsView* rtabmap::ImageView::_graphicsView
private

Definition at line 173 of file ImageView.h.

◆ _graphicsViewMode

QAction* rtabmap::ImageView::_graphicsViewMode
private

Definition at line 159 of file ImageView.h.

◆ _graphicsViewNoScaling

QAction* rtabmap::ImageView::_graphicsViewNoScaling
private

Definition at line 162 of file ImageView.h.

◆ _graphicsViewScaled

QAction* rtabmap::ImageView::_graphicsViewScaled
private

Definition at line 160 of file ImageView.h.

◆ _graphicsViewScaledToHeight

QAction* rtabmap::ImageView::_graphicsViewScaledToHeight
private

Definition at line 161 of file ImageView.h.

◆ _image

QPixmap rtabmap::ImageView::_image
private

Definition at line 178 of file ImageView.h.

◆ _imageDepth

QPixmap rtabmap::ImageView::_imageDepth
private

Definition at line 179 of file ImageView.h.

◆ _imageDepthCv

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

Definition at line 180 of file ImageView.h.

◆ _imageDepthItem

QGraphicsPixmapItem* rtabmap::ImageView::_imageDepthItem
private

Definition at line 177 of file ImageView.h.

◆ _imageItem

QGraphicsPixmapItem* rtabmap::ImageView::_imageItem
private

Definition at line 176 of file ImageView.h.

◆ _lines

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

Definition at line 175 of file ImageView.h.

◆ _linesWidth

int rtabmap::ImageView::_linesWidth
private

Definition at line 139 of file ImageView.h.

◆ _menu

QMenu* rtabmap::ImageView::_menu
private

Definition at line 147 of file ImageView.h.

◆ _models

std::vector<CameraModel> rtabmap::ImageView::_models
private

Definition at line 181 of file ImageView.h.

◆ _mouseTracking

QAction* rtabmap::ImageView::_mouseTracking
private

Definition at line 169 of file ImageView.h.

◆ _pose

Transform rtabmap::ImageView::_pose
private

Definition at line 182 of file ImageView.h.

◆ _savedFileName

QString rtabmap::ImageView::_savedFileName
private

Definition at line 136 of file ImageView.h.

◆ _saveImage

QAction* rtabmap::ImageView::_saveImage
private

Definition at line 155 of file ImageView.h.

◆ _scaleMenu

QMenu* rtabmap::ImageView::_scaleMenu
private

Definition at line 171 of file ImageView.h.

◆ _setAlpha

QAction* rtabmap::ImageView::_setAlpha
private

Definition at line 156 of file ImageView.h.

◆ _setFeatureColor

QAction* rtabmap::ImageView::_setFeatureColor
private

Definition at line 152 of file ImageView.h.

◆ _setFeaturesSize

QAction* rtabmap::ImageView::_setFeaturesSize
private

Definition at line 157 of file ImageView.h.

◆ _setLinesWidth

QAction* rtabmap::ImageView::_setLinesWidth
private

Definition at line 158 of file ImageView.h.

◆ _setMatchingFeatureColor

QAction* rtabmap::ImageView::_setMatchingFeatureColor
private

Definition at line 153 of file ImageView.h.

◆ _setMatchingLineColor

QAction* rtabmap::ImageView::_setMatchingLineColor
private

Definition at line 154 of file ImageView.h.

◆ _showFeatures

QAction* rtabmap::ImageView::_showFeatures
private

Definition at line 150 of file ImageView.h.

◆ _showImage

QAction* rtabmap::ImageView::_showImage
private

Definition at line 148 of file ImageView.h.

◆ _showImageDepth

QAction* rtabmap::ImageView::_showImageDepth
private

Definition at line 149 of file ImageView.h.

◆ _showLines

QAction* rtabmap::ImageView::_showLines
private

Definition at line 151 of file ImageView.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:27