28 #ifndef RTABMAP_EDITDEPTHAREA_H
29 #define RTABMAP_EDITDEPTHAREA_H
31 #include "rtabmap/gui/rtabmap_gui_export.h"
37 #include <opencv2/opencv.hpp>
52 void setImage(
const cv::Mat & depth,
const cv::Mat & rgb = cv::Mat());
53 cv::Mat getModifiedImage()
const;
56 void setPenWidth(
int newWidth);
66 virtual void mousePressEvent(QMouseEvent *event);
67 virtual void mouseMoveEvent(QMouseEvent *event);
68 virtual void mouseReleaseEvent(QMouseEvent *event);
69 virtual void paintEvent(QPaintEvent *event);
70 virtual void resizeEvent(QResizeEvent *event);
71 virtual void contextMenuEvent(QContextMenuEvent *
e);
74 void drawLineTo(
const QPoint &endPoint);
75 void computeScaleOffsets(
const QRect & targetRect,
float & scale,
float & offsetX,
float & offsetY)
const;