mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-07 05:12:00 +02:00
[Panorama Viewer] add Repeater
This commit is contained in:
parent
a33810f50d
commit
fdfe5d9db4
1 changed files with 40 additions and 13 deletions
|
@ -44,15 +44,34 @@ AliceVision.PanoramaViewer {
|
||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.NoButton
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property string sfmPath: ""
|
||||||
|
|
||||||
|
function updateSfmPath() {
|
||||||
|
var activeNode = _reconstruction.activeNodes.get('sfm').node;
|
||||||
|
|
||||||
|
if(!activeNode)
|
||||||
|
{
|
||||||
|
root.sfmPath = "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
root.sfmPath = activeNode.attribute("outputViewsAndPoses").value;
|
||||||
|
}
|
||||||
|
root.setSfmPath(sfmPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: imgPano
|
||||||
Loader {
|
Loader {
|
||||||
id: floatOneLoader
|
id: floatOneLoader
|
||||||
active: root.status
|
active: root.status
|
||||||
visible: (floatOneLoader.status === Loader.Ready)
|
visible: (floatOneLoader.status === Loader.Ready)
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
property string cSource: root.getImgSource()
|
||||||
onActiveChanged: {
|
onActiveChanged: {
|
||||||
if(active) {
|
if(active) {
|
||||||
setSource("FloatImage.qml", {
|
setSource("FloatImage.qml", {
|
||||||
'source': Qt.binding(function() { return root.source; }),
|
'source': Qt.binding(function() { return cSource; }),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
||||||
|
@ -60,5 +79,13 @@ AliceVision.PanoramaViewer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
id: repeater
|
||||||
|
model: 1
|
||||||
|
delegate: imgPano
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue