[Panorama Viewer] change pitch and yaw from SfMTransform Node

This commit is contained in:
Thomas Zorroche 2021-02-18 16:37:25 +01:00 committed by Fabien Castan
parent 733362fe1d
commit 2e1c80b879
3 changed files with 303 additions and 12 deletions

View file

@ -62,7 +62,9 @@ AliceVision.FloatImageViewer {
property string sfmPath: ""
function updateSfmPath() {
var activeNode = _reconstruction.activeNodes.get('sfm').node;
console.warn("SFM UPDATE - Float IV")
var activeNode = _reconstruction.activeNodes.get('SfMTransform').node;
if(!activeNode)
{
@ -70,7 +72,7 @@ AliceVision.FloatImageViewer {
}
else
{
root.sfmPath = activeNode.attribute("outputViewsAndPoses").value;
root.sfmPath = activeNode.attribute("input").value;
}
root.setSfmPath(sfmPath);
}
@ -81,8 +83,12 @@ AliceVision.FloatImageViewer {
ppRect.y = pp.y;
}
function rotatePanorama(dx, dy) {
root.setRotationPano(dx, dy);
function rotatePanoDegrees(yaw, pitch) {
root.rotatePanoramaDegrees(yaw, pitch);
}
function rotatePanoRadians(yaw, pitch) {
root.rotatePanoramaRadians(yaw, pitch);
}
function updateMouseAreaPano() {