mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-07 05:12:00 +02:00
[PanoramaViewer] add control points display buttons
Added a button to enable or disable the display of the controls points in the panorama viewer
This commit is contained in:
parent
8dc30a9db1
commit
1fc7cb7844
3 changed files with 21 additions and 3 deletions
|
@ -20,6 +20,7 @@ FloatingPane {
|
||||||
property string channelModeValue: channelsCtrl.value
|
property string channelModeValue: channelsCtrl.value
|
||||||
property variant colorRGBA: null
|
property variant colorRGBA: null
|
||||||
property bool displayGrid: displayGridButton.checked
|
property bool displayGrid: displayGridButton.checked
|
||||||
|
property bool displayPoints: displayCtrlPointsButton.checked
|
||||||
|
|
||||||
background: Rectangle { color: root.palette.window }
|
background: Rectangle { color: root.palette.window }
|
||||||
|
|
||||||
|
@ -47,12 +48,22 @@ FloatingPane {
|
||||||
|
|
||||||
model: channels
|
model: channels
|
||||||
}
|
}
|
||||||
|
MaterialToolButton {
|
||||||
|
id: displayCtrlPointsButton
|
||||||
|
ToolTip.text: "Display Control Points"
|
||||||
|
text: MaterialIcons.control_point
|
||||||
|
font.pointSize: 13
|
||||||
|
padding: 5
|
||||||
|
Layout.minimumWidth: 0
|
||||||
|
checkable: true
|
||||||
|
checked: true
|
||||||
|
}
|
||||||
MaterialToolButton {
|
MaterialToolButton {
|
||||||
id: displayGridButton
|
id: displayGridButton
|
||||||
ToolTip.text: "Display Grid"
|
ToolTip.text: "Display Grid"
|
||||||
text: MaterialIcons.grid_on
|
text: MaterialIcons.grid_on
|
||||||
font.pointSize: 16
|
font.pointSize: 13
|
||||||
padding: 0
|
padding: 5
|
||||||
Layout.minimumWidth: 0
|
Layout.minimumWidth: 0
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: false
|
checked: false
|
||||||
|
|
|
@ -30,11 +30,17 @@ AliceVision.PanoramaViewer {
|
||||||
|
|
||||||
return Image.Ready;
|
return Image.Ready;
|
||||||
}
|
}
|
||||||
property bool isGridDisplayed : false;
|
|
||||||
property string channelModeString : "rgba"
|
property string channelModeString : "rgba"
|
||||||
|
|
||||||
|
property bool isCtrlPointsDisplayed : true;
|
||||||
|
property bool isGridDisplayed : false;
|
||||||
property int gridOpacity : 100;
|
property int gridOpacity : 100;
|
||||||
|
|
||||||
|
onIsCtrlPointsDisplayedChanged: {
|
||||||
|
repeater.displayControlPoints()
|
||||||
|
}
|
||||||
|
|
||||||
onIsGridDisplayedChanged: {
|
onIsGridDisplayedChanged: {
|
||||||
root.displayGrid()
|
root.displayGrid()
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,6 +255,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; }),
|
||||||
|
'isCtrlPointsDisplayed' : Qt.binding(function(){ return panoramaImageToolbar.displayPoints;}),
|
||||||
'isGridDisplayed' : Qt.binding(function(){ return panoramaImageToolbar.displayGrid;}),
|
'isGridDisplayed' : Qt.binding(function(){ return panoramaImageToolbar.displayGrid;}),
|
||||||
'gridOpacity' : Qt.binding(function(){ return panoramaImageToolbar.opacityValue;})
|
'gridOpacity' : Qt.binding(function(){ return panoramaImageToolbar.opacityValue;})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue