GUI: Optimized odometry display

GUI: moved alpha parameter into ImageView object
This commit is contained in:
Mathieu Labbe
2015-01-23 15:16:05 -05:00
parent 7a6bf630ca
commit f9fb6216d8
7 changed files with 119 additions and 116 deletions

View File

@@ -57,6 +57,7 @@ public:
bool isImageDepthShown() const;
bool isFeaturesShown() const;
bool isLinesShown() const;
int getAlpha() const {return _alpha;}
void setFeaturesShown(bool shown);
void setImageShown(bool shown);
@@ -69,6 +70,7 @@ public:
void setImageDepth(const QImage & image);
void setFeatureColor(int id, const QColor & color);
void setFeaturesColor(const QColor & color);
void setAlpha(int alpha);
const QMultiMap<int, rtabmap::KeypointItem *> & getFeatures() const {return _features;}
@@ -92,6 +94,7 @@ private:
int _zoom;
int _minZoom;
QString _savedFileName;
int _alpha;
QMenu * _menu;
QAction * _showImage;
@@ -99,6 +102,7 @@ private:
QAction * _showFeatures;
QAction * _showLines;
QAction * _saveImage;
QAction * _setAlpha;
QMultiMap<int, rtabmap::KeypointItem *> _features;
QGraphicsPixmapItem * _image;

View File

@@ -264,6 +264,8 @@ private:
bool _odometryReceived;
QString _openedDatabasePath;
bool _emptyNewDatabase;
bool _odomImageShow;
bool _odomImageDepthShow;
QMap<int, Signature> _cachedSignatures;
std::map<int, Transform> _currentPosesMap; // <nodeId, pose>

View File

@@ -116,11 +116,9 @@ public:
int getGeneralLoggerType() const;
bool getGeneralLoggerPrintTime() const;
bool isVerticalLayoutUsed() const;
bool isImageFlipped() const;
bool imageRejectedShown() const;
bool imageHighestHypShown() const;
bool beepOnPause() const;
int getKeypointsOpacity() const;
int getOdomQualityWarnThr() const;
bool isPosteriorGraphView() const;