[PanoramaViewer] Refactor downscale code logic

Use signals / slots from c++
This commit is contained in:
Thomas Zorroche 2021-06-08 16:24:16 +02:00 committed by Fabien Castan
parent a4a86e9656
commit cf01a2d89c
3 changed files with 8 additions and 24 deletions

View file

@ -49,7 +49,6 @@ AliceVision.FloatImageViewer {
property bool isGridDisplayed : false;
property int gridOpacity : 100;
property color gridColorQML : "#FF0000";
property bool isCtrlPointsDisplayed : true;
property int subdivisions: 4;
@ -60,12 +59,6 @@ AliceVision.FloatImageViewer {
property string sfmPath: ""
property int downscaleLevel: 0
onDownscaleLevelChanged: {
root.setDownscale(downscaleLevel)
}
function updateSfmPath() {
var activeNode = _reconstruction.activeNodes.get('SfMTransform').node;
@ -128,11 +121,7 @@ AliceVision.FloatImageViewer {
}
onGridOpacityChanged: {
root.surface.gridColor = Qt.rgba(gridColorQML.r, gridColorQML.g, gridColorQML.b, gridOpacity/100);;
}
onGridColorQMLChanged: {
root.surface.gridColor = gridColorQML;
root.surface.gridColor = Qt.rgba(root.surface.gridColor.r, root.surface.gridColor.g, root.surface.gridColor.b, gridOpacity/100);;
}
channelMode: {