mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 02:08:25 +02:00
[Panorama Viewer] Use msfmData from PanoramaViewer (WIP)
This commit is contained in:
parent
b6be11f39f
commit
223a389748
3 changed files with 5 additions and 17 deletions
|
@ -15,11 +15,6 @@ AliceVision.FloatImageViewer {
|
|||
height: textureSize.height
|
||||
visible: (status === Image.Ready)
|
||||
|
||||
property var sfmData
|
||||
onSfmDataChanged: {
|
||||
root.surface.msfmData = sfmData;
|
||||
}
|
||||
|
||||
// paintedWidth / paintedHeight / status for compatibility with standard Image
|
||||
property int paintedWidth: textureSize.width
|
||||
property int paintedHeight: textureSize.height
|
||||
|
|
|
@ -196,12 +196,6 @@ AliceVision.PanoramaViewer {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function updateSfmPath() {
|
||||
var activeNode = _reconstruction.activeNodes.get('SfMTransform').node;
|
||||
root.sfmPath = (activeNode) ? activeNode.attribute("input").value : "";
|
||||
}
|
||||
|
||||
property var pathList : []
|
||||
property var idList : []
|
||||
property int imagesLoaded: 0
|
||||
|
@ -209,6 +203,7 @@ AliceVision.PanoramaViewer {
|
|||
|
||||
function loadRepeaterImages(index)
|
||||
{
|
||||
console.warn("LOAD IMG " + index)
|
||||
if (index < repeater.model)
|
||||
repeater.itemAt(index).loadItem();
|
||||
else
|
||||
|
@ -265,7 +260,7 @@ AliceVision.PanoramaViewer {
|
|||
'channelModeString': Qt.binding(function() { return hdrImageToolbar.channelModeValue; }),
|
||||
'downscaleLevel' : Qt.binding(function() { return downscale; }),
|
||||
'source': Qt.binding(function() { return cSource; }),
|
||||
'sfmData': Qt.binding(function() { return sfmData }),
|
||||
'surface.msfmData': Qt.binding(function() { return root.msfmData }),
|
||||
'sfmRequired': true,
|
||||
'canBeHovered': true
|
||||
})
|
||||
|
@ -285,6 +280,7 @@ AliceVision.PanoramaViewer {
|
|||
onImagesDataChanged: {
|
||||
root.imagesLoaded = 0;
|
||||
|
||||
|
||||
// Retrieve downscale value from C++
|
||||
panoramaViewerToolbar.updateDownscaleValue(root.downscale)
|
||||
|
||||
|
|
|
@ -284,7 +284,7 @@ FocusScope {
|
|||
'surface.subdivisions' : Qt.binding(function(){ return root.useFloatImageViewer ? 1 : lensDistortionImageToolbar.subdivisionsValue;}),
|
||||
'viewerTypeString': Qt.binding(function(){ return displayLensDistortionViewer.checked ? "distortion" : "hdr";}),
|
||||
'sfmRequired': Qt.binding(function(){ return displayLensDistortionViewer.checked ? true : false;}),
|
||||
'sfmData': Qt.binding(function() { return (msfmDataLoader.status === Loader.Ready && msfmDataLoader.item.status === 2) ? msfmDataLoader.item : null; }),
|
||||
'msfmData': Qt.binding(function() { return (msfmDataLoader.status === Loader.Ready && msfmDataLoader.item.status === 2) ? msfmDataLoader.item : null; }),
|
||||
'canBeHovered': false
|
||||
})
|
||||
} else {
|
||||
|
@ -311,7 +311,7 @@ FocusScope {
|
|||
'isHighlightable': Qt.binding(function(){ return panoramaViewerToolbar.enableHover;}),
|
||||
'displayGridPano': Qt.binding(function(){ return panoramaViewerToolbar.displayGrid;}),
|
||||
'mouseMultiplier': Qt.binding(function(){ return panoramaViewerToolbar.mouseSpeed;}),
|
||||
'sfmData': Qt.binding(function() { return (msfmDataLoader.status === Loader.Ready
|
||||
'msfmData': Qt.binding(function() { return (msfmDataLoader.status === Loader.Ready
|
||||
&& msfmDataLoader.item.status === 2) ? msfmDataLoader.item : null; }),
|
||||
})
|
||||
} else {
|
||||
|
@ -320,9 +320,6 @@ FocusScope {
|
|||
displayPanoramaViewer.checked = false;
|
||||
}
|
||||
}
|
||||
onLoaded: {
|
||||
panoramaViewerLoader.item.updateSfmPath();
|
||||
}
|
||||
}
|
||||
|
||||
// Simple QML Image Viewer (using Qt or qtOIIO to load images)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue