[ui] Viewer2D: allow to change the size of the Fisheye circle with Ctrl+Wheel

* also add forceActiveFocus() to release other focus areas
This commit is contained in:
Fabien Castan 2020-03-18 20:23:37 +01:00
parent e933e1adf6
commit e88651ba01
2 changed files with 22 additions and 9 deletions

View file

@ -260,6 +260,9 @@ FocusScope {
_reconstruction.setAttribute(_reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_x"), x)
_reconstruction.setAttribute(_reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_y"), y)
}
onIncrementRadius: {
_reconstruction.setAttribute(_reconstruction.panoramaInit.attribute("fisheyeRadius"), _reconstruction.panoramaInit.attribute("fisheyeRadius").value + radiusOffset)
}
}
}
}