GraphViewer: added gridCellSize parameter (default 5cm/pixel)

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1341 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-06-09 20:47:35 +00:00
parent 4fa947b7a6
commit 35db51419e
2 changed files with 23 additions and 4 deletions
+2
View File
@@ -32,6 +32,7 @@ public:
void clearGraph();
void setWorkingDirectory(const QString & path) {_workingDirectory = path;}
void setGridCellSize(float size) {Q_ASSERT(_gridCellSize>0.0f); _gridCellSize= size;}
protected:
virtual void wheelEvent ( QWheelEvent * event );
@@ -49,6 +50,7 @@ private:
float _nodeRadius;
float _linkWidth;
QGraphicsPixmapItem * _gridMap;
float _gridCellSize;
};
} /* namespace rtabmap */