mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 02:08:25 +02:00
[Panorama Viewer] Setting subdivisions for panorama viewer
This commit is contained in:
parent
7b2278755f
commit
0587cc7462
2 changed files with 12 additions and 4 deletions
|
@ -27,8 +27,14 @@ AliceVision.FloatImageViewer {
|
|||
return Image.Null;
|
||||
|
||||
if(!isDistoViewer){
|
||||
if(isPanoViewer){
|
||||
console.warn('Set pano subdiv image to 6')
|
||||
root.updateSubdivisions(6)
|
||||
}
|
||||
else{
|
||||
root.updateSubdivisions(1)
|
||||
}
|
||||
}
|
||||
|
||||
root.defaultControlPoints();
|
||||
root.setIdView(idView);
|
||||
|
@ -40,17 +46,18 @@ AliceVision.FloatImageViewer {
|
|||
property string channelModeString : "rgba"
|
||||
|
||||
property bool isDistoViewer: false;
|
||||
property bool isPanoViewer: false;
|
||||
|
||||
property bool isGridDisplayed : false;
|
||||
property int gridOpacity : 100;
|
||||
property color gridColor : "#FF0000";
|
||||
|
||||
property bool isCtrlPointsDisplayed : true;
|
||||
property int subdivisions: 5;
|
||||
property int subdivisions: 4;
|
||||
property int pointsNumber: (subdivisions + 1) * (subdivisions + 1);
|
||||
|
||||
property int index: 0;
|
||||
property int idView: 0;
|
||||
property var idView: 0;
|
||||
|
||||
property string sfmPath: ""
|
||||
|
||||
|
|
|
@ -97,7 +97,8 @@ AliceVision.PanoramaViewer {
|
|||
setSource("FloatImage.qml", {
|
||||
'source': Qt.binding(function() { return cSource; }),
|
||||
'index' : index,
|
||||
'idView': Qt.binding(function() { return cId; })
|
||||
'idView': Qt.binding(function() { return cId; }),
|
||||
'isPanoViewer' : true
|
||||
})
|
||||
console.warn(cSource)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue