mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[Panorama Viewer] use msfmDataLoader with Panorama and Disto Viewer
This commit is contained in:
parent
cd3d3cc1f3
commit
930d885c5e
1 changed files with 18 additions and 2 deletions
|
@ -590,8 +590,23 @@ FocusScope {
|
||||||
property bool isUsed: displayFeatures.checked || displaySfmStatsView.checked || displaySfmDataGlobalStats.checked
|
property bool isUsed: displayFeatures.checked || displaySfmStatsView.checked || displaySfmDataGlobalStats.checked
|
||||||
|| displayPanoramaViewer.checked || displayLensDistortionViewer.checked
|
|| displayPanoramaViewer.checked || displayLensDistortionViewer.checked
|
||||||
property var activeNode: root.aliceVisionPluginAvailable ? _reconstruction.activeNodes.get('sfm').node : null
|
property var activeNode: root.aliceVisionPluginAvailable ? _reconstruction.activeNodes.get('sfm').node : null
|
||||||
property bool isComputed: activeNode && activeNode.isComputed
|
property bool isComputed: {
|
||||||
property string filepath: Filepath.stringToUrl(isComputed ? activeNode.attribute("output").value : "")
|
if (usePanoramaViewer || useLensDistortionViewer)
|
||||||
|
return activeNode
|
||||||
|
else
|
||||||
|
return activeNode && activeNode.isComputed
|
||||||
|
|
||||||
|
}
|
||||||
|
property string filepath: {
|
||||||
|
if (usePanoramaViewer || useLensDistortionViewer)
|
||||||
|
return Filepath.stringToUrl(activeNode.attribute("input").value)
|
||||||
|
else
|
||||||
|
return Filepath.stringToUrl(isComputed ? activeNode.attribute("output").value : "")
|
||||||
|
}
|
||||||
|
|
||||||
|
onFilepathChanged: {
|
||||||
|
console.warn("FILLLLLEPPPPATTHHHHH: " + filepath)
|
||||||
|
}
|
||||||
|
|
||||||
active: false
|
active: false
|
||||||
// It takes time to load tracks, so keep them looaded, if we may use it again.
|
// It takes time to load tracks, so keep them looaded, if we may use it again.
|
||||||
|
@ -601,6 +616,7 @@ FocusScope {
|
||||||
{
|
{
|
||||||
active = true;
|
active = true;
|
||||||
}
|
}
|
||||||
|
console.warn("ITEEEEMMMMMMMM" + item + " " + active)
|
||||||
}
|
}
|
||||||
onIsComputedChanged: {
|
onIsComputedChanged: {
|
||||||
if(!isComputed)
|
if(!isComputed)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue