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

#include <EditMapArea.h>

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

Public Slots

void resetChanges ()
 

Public Member Functions

 EditMapArea (QWidget *parent=0)
 
cv::Mat getModifiedMap () const
 
bool isModified () const
 
int penWidth () const
 
void setColorMap (uCvQtDepthColorMap type)
 
void setMap (const cv::Mat &map)
 
void setPenWidth (int newWidth)
 

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *e)
 
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 (const QRect &targetRect, float &scale, float &offsetX, float &offsetY) const
 
void drawLineTo (const QPoint &endPoint)
 

Private Attributes

QAction * addObstacle_
 
QAction * clearObstacle_
 
QPoint lastPoint_
 
QImage map_
 
QMenu * menu_
 
bool modified_
 
int myPenWidth_
 
cv::Mat originalMap_
 
QAction * resetChanges_
 
bool scribbling_
 
QAction * setPenWidth_
 
QAction * setUnknown_
 

Detailed Description

Definition at line 45 of file EditMapArea.h.

Constructor & Destructor Documentation

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

Definition at line 40 of file EditMapArea.cpp.

Member Function Documentation

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

Definition at line 147 of file EditMapArea.cpp.

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

Definition at line 204 of file EditMapArea.cpp.

void rtabmap::EditMapArea::drawLineTo ( const QPoint &  endPoint)
private

Definition at line 222 of file EditMapArea.cpp.

cv::Mat rtabmap::EditMapArea::getModifiedMap ( ) const

Definition at line 78 of file EditMapArea.cpp.

bool rtabmap::EditMapArea::isModified ( ) const
inline

Definition at line 54 of file EditMapArea.h.

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

Definition at line 121 of file EditMapArea.cpp.

void rtabmap::EditMapArea::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 109 of file EditMapArea.cpp.

void rtabmap::EditMapArea::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 134 of file EditMapArea.cpp.

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

Definition at line 187 of file EditMapArea.cpp.

int rtabmap::EditMapArea::penWidth ( ) const
inline

Definition at line 57 of file EditMapArea.h.

void rtabmap::EditMapArea::resetChanges ( )
slot

Definition at line 102 of file EditMapArea.cpp.

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

Definition at line 199 of file EditMapArea.cpp.

void rtabmap::EditMapArea::setColorMap ( uCvQtDepthColorMap  type)
void rtabmap::EditMapArea::setMap ( const cv::Mat &  map)

Definition at line 66 of file EditMapArea.cpp.

void rtabmap::EditMapArea::setPenWidth ( int  newWidth)

Definition at line 97 of file EditMapArea.cpp.

Member Data Documentation

QAction* rtabmap::EditMapArea::addObstacle_
private

Definition at line 85 of file EditMapArea.h.

QAction* rtabmap::EditMapArea::clearObstacle_
private

Definition at line 86 of file EditMapArea.h.

QPoint rtabmap::EditMapArea::lastPoint_
private

Definition at line 80 of file EditMapArea.h.

QImage rtabmap::EditMapArea::map_
private

Definition at line 78 of file EditMapArea.h.

QMenu* rtabmap::EditMapArea::menu_
private

Definition at line 82 of file EditMapArea.h.

bool rtabmap::EditMapArea::modified_
private

Definition at line 75 of file EditMapArea.h.

int rtabmap::EditMapArea::myPenWidth_
private

Definition at line 77 of file EditMapArea.h.

cv::Mat rtabmap::EditMapArea::originalMap_
private

Definition at line 79 of file EditMapArea.h.

QAction* rtabmap::EditMapArea::resetChanges_
private

Definition at line 83 of file EditMapArea.h.

bool rtabmap::EditMapArea::scribbling_
private

Definition at line 76 of file EditMapArea.h.

QAction* rtabmap::EditMapArea::setPenWidth_
private

Definition at line 84 of file EditMapArea.h.

QAction* rtabmap::EditMapArea::setUnknown_
private

Definition at line 87 of file EditMapArea.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