mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-05 12:21:59 +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 variant colorRGBA: null
|
||||
property bool displayGrid: displayGridButton.checked
|
||||
property bool displayPoints: displayCtrlPointsButton.checked
|
||||
|
||||
background: Rectangle { color: root.palette.window }
|
||||
|
||||
|
@ -47,12 +48,22 @@ FloatingPane {
|
|||
|
||||
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 {
|
||||
id: displayGridButton
|
||||
ToolTip.text: "Display Grid"
|
||||
text: MaterialIcons.grid_on
|
||||
font.pointSize: 16
|
||||
padding: 0
|
||||
font.pointSize: 13
|
||||
padding: 5
|
||||
Layout.minimumWidth: 0
|
||||
checkable: true
|
||||
checked: false
|
||||
|
|
|
@ -30,11 +30,17 @@ AliceVision.PanoramaViewer {
|
|||
|
||||
return Image.Ready;
|
||||
}
|
||||
property bool isGridDisplayed : false;
|
||||
|
||||
property string channelModeString : "rgba"
|
||||
|
||||
property bool isCtrlPointsDisplayed : true;
|
||||
property bool isGridDisplayed : false;
|
||||
property int gridOpacity : 100;
|
||||
|
||||
onIsCtrlPointsDisplayedChanged: {
|
||||
repeater.displayControlPoints()
|
||||
}
|
||||
|
||||
onIsGridDisplayedChanged: {
|
||||
root.displayGrid()
|
||||
}
|
||||
|
|
|
@ -255,6 +255,7 @@ FocusScope {
|
|||
'gamma': Qt.binding(function() { return panoramaImageToolbar.gammaValue; }),
|
||||
'gain': Qt.binding(function() { return panoramaImageToolbar.gainValue; }),
|
||||
'channelModeString': Qt.binding(function() { return panoramaImageToolbar.channelModeValue; }),
|
||||
'isCtrlPointsDisplayed' : Qt.binding(function(){ return panoramaImageToolbar.displayPoints;}),
|
||||
'isGridDisplayed' : Qt.binding(function(){ return panoramaImageToolbar.displayGrid;}),
|
||||
'gridOpacity' : Qt.binding(function(){ return panoramaImageToolbar.opacityValue;})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue