mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 08:18:25 +02:00
[Panorama Viewer] clean up panorama code
This commit is contained in:
parent
4aa5151af3
commit
c06273d2cc
3 changed files with 14 additions and 23 deletions
|
@ -16,12 +16,10 @@ AliceVision.FloatImageViewer {
|
|||
visible: (status === Image.Ready)
|
||||
|
||||
property var sfmData
|
||||
|
||||
onSfmDataChanged: {
|
||||
root.surface.msfmData = sfmData;
|
||||
}
|
||||
|
||||
|
||||
// paintedWidth / paintedHeight / status for compatibility with standard Image
|
||||
property int paintedWidth: textureSize.width
|
||||
property int paintedHeight: textureSize.height
|
||||
|
@ -30,7 +28,7 @@ AliceVision.FloatImageViewer {
|
|||
return Image.Loading;
|
||||
else if((root.source === "") ||
|
||||
(root.sourceSize.height <= 0) ||
|
||||
(root.sourceSize.height <= 0))
|
||||
(root.sourceSize.width <= 0))
|
||||
return Image.Null;
|
||||
|
||||
return Image.Ready;
|
||||
|
@ -69,18 +67,11 @@ AliceVision.FloatImageViewer {
|
|||
}
|
||||
}
|
||||
|
||||
property bool isPrincipalPointsDisplayed : false;
|
||||
property int pointsNumber: (surface.subdivisions + 1) * (surface.subdivisions + 1);
|
||||
|
||||
property int index: 0;
|
||||
property var idView: 0;
|
||||
|
||||
function updatePrincipalPoint() {
|
||||
var pp = root.surface.getPrincipalPoint();
|
||||
ppRect.x = pp.x;
|
||||
ppRect.y = pp.y;
|
||||
}
|
||||
|
||||
clearBeforeLoad: true
|
||||
|
||||
property alias containsMouse: mouseArea.containsMouse
|
||||
|
@ -116,6 +107,15 @@ AliceVision.FloatImageViewer {
|
|||
/*
|
||||
* Principal Point
|
||||
*/
|
||||
|
||||
function updatePrincipalPoint() {
|
||||
var pp = root.surface.getPrincipalPoint();
|
||||
ppRect.x = pp.x;
|
||||
ppRect.y = pp.y;
|
||||
}
|
||||
|
||||
property bool isPrincipalPointsDisplayed : false;
|
||||
|
||||
Item {
|
||||
id: principalPoint
|
||||
Rectangle {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue