Cleanup gui

Fixed crash when a new location (B merged with previous location A through rehearsal) and then loop on a location already merged with the location A (which is not anymore in WM)
Updated rejected hypothesis tag

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@299 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2011-07-23 03:55:05 +00:00
parent 9fe16dd504
commit 649153e1df
9 changed files with 156 additions and 201 deletions

View File

@@ -23,6 +23,9 @@
#include <QtGui/QGraphicsView>
#include <QtCore/QRectF>
class QAction;
class QMenu;
namespace rtabmap {
class ImageView : public QGraphicsView {
@@ -35,6 +38,9 @@ public:
void resetZoom();
bool isImageShown();
bool isFeaturesShown();
protected:
virtual void contextMenuEvent(QContextMenuEvent * e);
virtual void wheelEvent(QWheelEvent * e);
@@ -42,10 +48,18 @@ protected:
private slots:
void updateZoom();
private:
void updateItemsShown();
private:
int _zoom;
int _minZoom;
QString _savedFileName;
QMenu * _menu;
QAction * _showImage;
QAction * _showFeatures;
QAction * _saveImage;
};
}