mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[Panorama Viewer] change viewer type with qt property
This commit is contained in:
parent
157799c279
commit
b8bf027d8b
1 changed files with 8 additions and 2 deletions
|
@ -44,6 +44,8 @@ AliceVision.FloatImageViewer {
|
||||||
|
|
||||||
property string channelModeString : "rgba"
|
property string channelModeString : "rgba"
|
||||||
|
|
||||||
|
property string viewerTypeString : "default"
|
||||||
|
|
||||||
property bool isDistoViewer: false;
|
property bool isDistoViewer: false;
|
||||||
property bool isPanoViewer: false;
|
property bool isPanoViewer: false;
|
||||||
|
|
||||||
|
@ -68,7 +70,10 @@ AliceVision.FloatImageViewer {
|
||||||
}
|
}
|
||||||
|
|
||||||
onIsDistoViewerChanged: {
|
onIsDistoViewerChanged: {
|
||||||
root.hasDistortion(isDistoViewer);
|
|
||||||
|
//root.hasDistortion(isDistoViewer);
|
||||||
|
surface.viewerType = AliceVision.Surface.EViewerType.DISTORTION;
|
||||||
|
|
||||||
//Putting states back where they were
|
//Putting states back where they were
|
||||||
if(isDistoViewer){
|
if(isDistoViewer){
|
||||||
//root.displayGrid(isGridDisplayed);
|
//root.displayGrid(isGridDisplayed);
|
||||||
|
@ -84,7 +89,8 @@ AliceVision.FloatImageViewer {
|
||||||
}
|
}
|
||||||
|
|
||||||
onIsPanoViewerChanged: {
|
onIsPanoViewerChanged: {
|
||||||
root.surface.setPanoViewerEnabled(isPanoViewer)
|
//root.surface.setPanoViewerEnabled(isPanoViewer)
|
||||||
|
surface.viewerType = AliceVision.Surface.EViewerType.PANORAMA;
|
||||||
}
|
}
|
||||||
|
|
||||||
onSubdivisionsChanged: {
|
onSubdivisionsChanged: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue