mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
DbViewer: switch between left and right views when double-clicking on single nodes
This commit is contained in:
@@ -4567,7 +4567,14 @@ void DatabaseViewer::resetAllChanges()
|
|||||||
void DatabaseViewer::graphNodeSelected(int id)
|
void DatabaseViewer::graphNodeSelected(int id)
|
||||||
{
|
{
|
||||||
if(id>0 && idToIndex_.contains(id))
|
if(id>0 && idToIndex_.contains(id))
|
||||||
ui_->horizontalSlider_A->setValue(idToIndex_.value(id));
|
{
|
||||||
|
static bool updateA = true;
|
||||||
|
if(updateA)
|
||||||
|
ui_->horizontalSlider_A->setValue(idToIndex_.value(id));
|
||||||
|
else
|
||||||
|
ui_->horizontalSlider_B->setValue(idToIndex_.value(id));
|
||||||
|
updateA = !updateA;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DatabaseViewer::graphLinkSelected(int from, int to)
|
void DatabaseViewer::graphLinkSelected(int from, int to)
|
||||||
|
|||||||
Reference in New Issue
Block a user