[Distortion Viewer] Switch between viewer modes

This commit is contained in:
Landrodie 2021-01-18 11:07:42 +01:00 committed by Fabien Castan
parent fddbc88524
commit 097eb66a49
2 changed files with 13 additions and 3 deletions

View file

@ -44,11 +44,12 @@ AliceVision.FloatImageViewer {
property int pointsNumber: (subdivisions + 1) * (subdivisions + 1); property int pointsNumber: (subdivisions + 1) * (subdivisions + 1);
onIsDistoViewerChanged: { onIsDistoViewerChanged: {
root.hasDistortion(distortion); root.hasDistortion(isDistoViewer);
root.displayGrid(isDistoViewer && isGridDisplayed);
} }
onIsGridDisplayedChanged: { onIsGridDisplayedChanged: {
root.displayGrid() root.displayGrid(isGridDisplayed);
} }
onSubdivisionsChanged: { onSubdivisionsChanged: {
@ -155,7 +156,6 @@ AliceVision.FloatImageViewer {
Repeater { Repeater {
id: repeater id: repeater
model: pointsNumber model: pointsNumber
visible: false
delegate: rectGrid delegate: rectGrid
function displayControlPoints() { function displayControlPoints() {
for (let i = 0; i < model; i++) { for (let i = 0; i < model; i++) {

View file

@ -745,6 +745,11 @@ FocusScope {
checkable: true checkable: true
checked: false checked: false
enabled: root.aliceVisionPluginAvailable enabled: root.aliceVisionPluginAvailable
onCheckedChanged : {
if(displayLensDistortionViewer.checked && checked){
displayLensDistortionViewer.checked = false;
}
}
} }
MaterialToolButton { MaterialToolButton {
id: displayLensDistortionViewer id: displayLensDistortionViewer
@ -756,6 +761,11 @@ FocusScope {
checkable: true checkable: true
checked: false checked: false
enabled: root.aliceVisionPluginAvailable enabled: root.aliceVisionPluginAvailable
onCheckedChanged : {
if(displayHDR.checked && checked){
displayHDR.checked = false;
}
}
} }
MaterialToolButton { MaterialToolButton {
id: displayFeatures id: displayFeatures