mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-24 12:07:19 +02:00
[Panorama Viewer] change pitch and yaw from SfMTransform Node
This commit is contained in:
parent
733362fe1d
commit
2e1c80b879
3 changed files with 303 additions and 12 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue