Export dialog keeps last config. Updated "clear the cache" to remove all visible images/trajectory/background color.

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1811 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-10-01 17:52:27 +00:00
parent 1367143171
commit 9559eee614
6 changed files with 72 additions and 34 deletions

View File

@@ -429,6 +429,13 @@ void CloudViewer::setTrajectorySize(int value)
_maxTrajectorySize = value;
}
void CloudViewer::clearTrajectory()
{
_trajectory->clear();
_visualizer->removeShape("trajectory");
this->render();
}
void CloudViewer::removeAllClouds()
{
_addedClouds.clear();
@@ -877,9 +884,7 @@ void CloudViewer::handleAction(QAction * a)
}
else if(a == _aClearTrajectory)
{
_trajectory->clear();
_visualizer->removeShape("trajectory");
this->render();
this->clearTrajectory();
}
else if(a == _aResetCamera)
{