mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-07 05:12:00 +02:00
[PanoramaViewer] add grid display button
Added the possibility to enable or disable the grid display with a button
This commit is contained in:
parent
49a4161c22
commit
376802b713
2 changed files with 6 additions and 5 deletions
|
@ -30,9 +30,13 @@ AliceVision.PanoramaViewer {
|
||||||
|
|
||||||
return Image.Ready;
|
return Image.Ready;
|
||||||
}
|
}
|
||||||
|
property bool isGridDisplayed : true;
|
||||||
property string channelModeString : "rgba"
|
property string channelModeString : "rgba"
|
||||||
|
|
||||||
|
onIsGridDisplayedChanged: {
|
||||||
|
root.displayGrid()
|
||||||
|
}
|
||||||
|
|
||||||
channelMode: {
|
channelMode: {
|
||||||
switch(channelModeString)
|
switch(channelModeString)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,6 @@ FocusScope {
|
||||||
property Component floatViewerComp: Qt.createComponent("FloatImage.qml")
|
property Component floatViewerComp: Qt.createComponent("FloatImage.qml")
|
||||||
property alias useFloatImageViewer: displayHDR.checked
|
property alias useFloatImageViewer: displayHDR.checked
|
||||||
property alias usePanoramaImageViewer: displayPanoramaViewer.checked
|
property alias usePanoramaImageViewer: displayPanoramaViewer.checked
|
||||||
property bool displayGridPanorama: panoramaImageToolbar.displayGrid
|
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: aliceVisionPluginLoader
|
id: aliceVisionPluginLoader
|
||||||
|
@ -232,9 +231,6 @@ FocusScope {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// displayGridPanorama. :{
|
|
||||||
// console.warn("Grid out ")
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// qtAliceVision Panorama Viewer
|
// qtAliceVision Panorama Viewer
|
||||||
|
@ -254,6 +250,7 @@ FocusScope {
|
||||||
'gamma': Qt.binding(function() { return panoramaImageToolbar.gammaValue; }),
|
'gamma': Qt.binding(function() { return panoramaImageToolbar.gammaValue; }),
|
||||||
'gain': Qt.binding(function() { return panoramaImageToolbar.gainValue; }),
|
'gain': Qt.binding(function() { return panoramaImageToolbar.gainValue; }),
|
||||||
'channelModeString': Qt.binding(function() { return panoramaImageToolbar.channelModeValue; }),
|
'channelModeString': Qt.binding(function() { return panoramaImageToolbar.channelModeValue; }),
|
||||||
|
'isGridDisplayed' : Qt.binding(function(){ return panoramaImageToolbar.displayGrid;})
|
||||||
})
|
})
|
||||||
} 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue