mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +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 viewerTypeString : "default"
|
||||
|
||||
property bool isDistoViewer: false;
|
||||
property bool isPanoViewer: false;
|
||||
|
||||
|
@ -68,7 +70,10 @@ AliceVision.FloatImageViewer {
|
|||
}
|
||||
|
||||
onIsDistoViewerChanged: {
|
||||
root.hasDistortion(isDistoViewer);
|
||||
|
||||
//root.hasDistortion(isDistoViewer);
|
||||
surface.viewerType = AliceVision.Surface.EViewerType.DISTORTION;
|
||||
|
||||
//Putting states back where they were
|
||||
if(isDistoViewer){
|
||||
//root.displayGrid(isGridDisplayed);
|
||||
|
@ -84,7 +89,8 @@ AliceVision.FloatImageViewer {
|
|||
}
|
||||
|
||||
onIsPanoViewerChanged: {
|
||||
root.surface.setPanoViewerEnabled(isPanoViewer)
|
||||
//root.surface.setPanoViewerEnabled(isPanoViewer)
|
||||
surface.viewerType = AliceVision.Surface.EViewerType.PANORAMA;
|
||||
}
|
||||
|
||||
onSubdivisionsChanged: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue