mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user