mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 01:08:26 +02:00
[wip] Change sfmData handling in panorama viewer
This commit is contained in:
parent
20b208454d
commit
2635e51f67
3 changed files with 10 additions and 2 deletions
|
@ -15,6 +15,10 @@ AliceVision.FloatImageViewer {
|
|||
height: textureSize.height
|
||||
visible: (status === Image.Ready)
|
||||
|
||||
property var sfmData
|
||||
|
||||
surface.msfmData : sfmData
|
||||
|
||||
// paintedWidth / paintedHeight / status for compatibility with standard Image
|
||||
property int paintedWidth: textureSize.width
|
||||
property int paintedHeight: textureSize.height
|
||||
|
|
|
@ -40,6 +40,8 @@ AliceVision.PanoramaViewer {
|
|||
|
||||
property int mouseMultiplier: 1
|
||||
|
||||
property var sfmData: null
|
||||
|
||||
onIsHighlightableChanged:{
|
||||
for (var i = 0; i < repeater.model; i++) {
|
||||
repeater.itemAt(i).item.onChangedHighlightState(isHighlightable);
|
||||
|
@ -248,6 +250,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 }),
|
||||
'sfmRequired': true,
|
||||
'canBeHovered': true
|
||||
})
|
||||
|
|
|
@ -309,7 +309,8 @@ FocusScope {
|
|||
'isEditable': Qt.binding(function(){ return panoramaViewerToolbar.enableEdit;}),
|
||||
'isHighlightable': Qt.binding(function(){ return panoramaViewerToolbar.enableHover;}),
|
||||
'displayGridPano': Qt.binding(function(){ return panoramaViewerToolbar.displayGrid;}),
|
||||
'mouseMultiplier': Qt.binding(function(){ return panoramaViewerToolbar.mouseSpeed;})
|
||||
'mouseMultiplier': Qt.binding(function(){ return panoramaViewerToolbar.mouseSpeed;}),
|
||||
'sfmData': Qt.binding(function() { return msfmDataLoader.status === Loader.Ready ? msfmDataLoader.item : null; }),
|
||||
})
|
||||
} else {
|
||||
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
||||
|
@ -640,7 +641,7 @@ FocusScope {
|
|||
Loader {
|
||||
id: mtracksLoader
|
||||
|
||||
property bool isUsed: displayFeatures.checked || displaySfmStatsView.checked || displaySfmDataGlobalStats.checked
|
||||
property bool isUsed: displayFeatures.checked || displaySfmStatsView.checked || displaySfmDataGlobalStats.checked || displayPanoramaViewer.checked
|
||||
property var activeNode: root.aliceVisionPluginAvailable ? _reconstruction.activeNodes.get('FeatureMatching').node : null
|
||||
property bool isComputed: activeNode && activeNode.isComputed
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue