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

◆ EditMapArea()

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

Definition at line 41 of file EditMapArea.cpp.

Member Function Documentation

◆ computeScaleOffsets()

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

Definition at line 148 of file EditMapArea.cpp.

◆ contextMenuEvent()

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

Definition at line 205 of file EditMapArea.cpp.

◆ drawLineTo()

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

Definition at line 223 of file EditMapArea.cpp.

◆ getModifiedMap()

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

Definition at line 79 of file EditMapArea.cpp.

◆ isModified()

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

Definition at line 54 of file EditMapArea.h.

◆ mouseMoveEvent()

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

Definition at line 122 of file EditMapArea.cpp.

◆ mousePressEvent()

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

Definition at line 110 of file EditMapArea.cpp.

◆ mouseReleaseEvent()

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

Definition at line 135 of file EditMapArea.cpp.

◆ paintEvent()

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

Definition at line 188 of file EditMapArea.cpp.

◆ penWidth()

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

Definition at line 57 of file EditMapArea.h.

◆ resetChanges

void rtabmap::EditMapArea::resetChanges ( )
slot

Definition at line 103 of file EditMapArea.cpp.

◆ resizeEvent()

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

Definition at line 200 of file EditMapArea.cpp.

◆ setColorMap()

void rtabmap::EditMapArea::setColorMap ( uCvQtDepthColorMap  type)

◆ setMap()

void rtabmap::EditMapArea::setMap ( const cv::Mat map)

Definition at line 67 of file EditMapArea.cpp.

◆ setPenWidth()

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

Definition at line 98 of file EditMapArea.cpp.

Member Data Documentation

◆ addObstacle_

QAction* rtabmap::EditMapArea::addObstacle_
private

Definition at line 85 of file EditMapArea.h.

◆ clearObstacle_

QAction* rtabmap::EditMapArea::clearObstacle_
private

Definition at line 86 of file EditMapArea.h.

◆ lastPoint_

QPoint rtabmap::EditMapArea::lastPoint_
private

Definition at line 80 of file EditMapArea.h.

◆ map_

QImage rtabmap::EditMapArea::map_
private

Definition at line 78 of file EditMapArea.h.

◆ menu_

QMenu* rtabmap::EditMapArea::menu_
private

Definition at line 82 of file EditMapArea.h.

◆ modified_

bool rtabmap::EditMapArea::modified_
private

Definition at line 75 of file EditMapArea.h.

◆ myPenWidth_

int rtabmap::EditMapArea::myPenWidth_
private

Definition at line 77 of file EditMapArea.h.

◆ originalMap_

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

Definition at line 79 of file EditMapArea.h.

◆ resetChanges_

QAction* rtabmap::EditMapArea::resetChanges_
private

Definition at line 83 of file EditMapArea.h.

◆ scribbling_

bool rtabmap::EditMapArea::scribbling_
private

Definition at line 76 of file EditMapArea.h.

◆ setPenWidth_

QAction* rtabmap::EditMapArea::setPenWidth_
private

Definition at line 84 of file EditMapArea.h.

◆ setUnknown_

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 Thu Jul 25 2024 02:50:27