mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[Distortion Viewer] Switch between viewer modes
This commit is contained in:
parent
fddbc88524
commit
097eb66a49
2 changed files with 13 additions and 3 deletions
|
@ -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++) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue