DbViewer: EditDepth colormap now matches the one in main window

This commit is contained in:
matlabbe
2019-03-05 10:48:05 -05:00
parent 884d1d7684
commit d85c1c3bcf
6 changed files with 75 additions and 42 deletions

View File

@@ -200,7 +200,7 @@ private:
QMap<int, int> idToIndex_;
QList<rtabmap::Link> neighborLinks_;
QList<rtabmap::Link> loopLinks_;
int lastImageBrowsed_ = 0;
int lastSliderIndexBrowsed_;
rtabmap::DBDriver * dbDriver_;
QString pathDatabase_;
std::string databaseFileName_;

View File

@@ -35,6 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <QPoint>
#include <QWidget>
#include <opencv2/opencv.hpp>
#include "rtabmap/utilite/UCv2Qt.h"
class QMenu;
class QAction;
@@ -54,6 +55,7 @@ public:
void setPenWidth(int newWidth);
int penWidth() const { return myPenWidth_; }
void setColorMap(uCvQtDepthColorMap type);
public Q_SLOTS:
void resetChanges();

View File

@@ -36,6 +36,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <QtCore/QSettings>
#include <opencv2/features2d/features2d.hpp>
#include <map>
#include "rtabmap/utilite/UCv2Qt.h"
class QAction;
class QMenu;
@@ -67,6 +68,7 @@ public:
bool isGraphicsViewScaledToHeight() const;
const QColor & getDefaultBackgroundColor() const;
const QColor & getBackgroundColor() const;
uCvQtDepthColorMap getDepthColorMap() const;
float viewScale() const;