mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-04 11:51:58 +02:00
[PanoramaViewer] Move vertex logic to surface
This commit is contained in:
parent
cf01a2d89c
commit
634d8a20b6
1 changed files with 5 additions and 5 deletions
|
@ -74,7 +74,7 @@ AliceVision.FloatImageViewer {
|
|||
}
|
||||
|
||||
function updatePrincipalPoint() {
|
||||
var pp = root.getPrincipalPoint();
|
||||
var pp = root.surface.getPrincipalPoint();
|
||||
ppRect.x = pp.x;
|
||||
ppRect.y = pp.y;
|
||||
}
|
||||
|
@ -224,8 +224,8 @@ AliceVision.FloatImageViewer {
|
|||
var height = repeater.itemAt(0).height;
|
||||
|
||||
for (let i = 0; i < repeater.model; i++) {
|
||||
repeater.itemAt(i).x = root.getVertex(i).x - (width / 2);
|
||||
repeater.itemAt(i).y = root.getVertex(i).y - (height / 2);
|
||||
repeater.itemAt(i).x = root.surface.getVertex(i).x - (width / 2);
|
||||
repeater.itemAt(i).y = root.surface.getVertex(i).y - (height / 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -235,8 +235,8 @@ AliceVision.FloatImageViewer {
|
|||
id: rect
|
||||
width: root.sourceSize.width/100; height: width
|
||||
radius: width/2
|
||||
x: root.getVertex(model.index).x - (width / 2)
|
||||
y: root.getVertex(model.index).y - (height / 2)
|
||||
x: root.surface.getVertex(model.index).x - (width / 2)
|
||||
y: root.surface.getVertex(model.index).y - (height / 2)
|
||||
color: Colors.yellow
|
||||
visible: isDistoViewer && isCtrlPointsDisplayed
|
||||
MouseArea {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue