mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
RegVis: fixed out-of-range vector error when guess is used and we match to projections. ImageView: Added right-click menu option to set a fixed size for features
This commit is contained in:
@@ -61,6 +61,7 @@ public:
|
||||
bool isFeaturesShown() const;
|
||||
bool isLinesShown() const;
|
||||
int getAlpha() const {return _alpha;}
|
||||
int getFeaturesSize() const {return _featuresSize;}
|
||||
bool isGraphicsViewMode() const;
|
||||
bool isGraphicsViewScaled() const;
|
||||
const QColor & getDefaultBackgroundColor() const;
|
||||
@@ -86,6 +87,7 @@ public:
|
||||
void setFeatureColor(int id, QColor color);
|
||||
void setFeaturesColor(QColor color);
|
||||
void setAlpha(int alpha);
|
||||
void setFeaturesSize(int size);
|
||||
void setSceneRect(const QRectF & rect);
|
||||
|
||||
const QMultiMap<int, rtabmap::KeypointItem *> & getFeatures() const {return _features;}
|
||||
@@ -114,6 +116,7 @@ private:
|
||||
private:
|
||||
QString _savedFileName;
|
||||
int _alpha;
|
||||
int _featuresSize;
|
||||
QColor _defaultBgColor;
|
||||
|
||||
QMenu * _menu;
|
||||
@@ -123,6 +126,7 @@ private:
|
||||
QAction * _showLines;
|
||||
QAction * _saveImage;
|
||||
QAction * _setAlpha;
|
||||
QAction * _setFeaturesSize;
|
||||
QAction * _graphicsViewMode;
|
||||
QAction * _graphicsViewScaled;
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ public:
|
||||
virtual ~KeypointItem();
|
||||
|
||||
void setColor(const QColor & color);
|
||||
const cv::KeyPoint & keypoint() const {return _kpt;}
|
||||
|
||||
protected:
|
||||
virtual void hoverEnterEvent ( QGraphicsSceneHoverEvent * event );
|
||||
|
||||
Reference in New Issue
Block a user