mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-02 02:42:05 +02:00
[PanoramaViewer] Refactor downscale code logic
Use signals / slots from c++
This commit is contained in:
parent
a4a86e9656
commit
cf01a2d89c
3 changed files with 8 additions and 24 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue