From: <hug...@li...> - 2011-01-07 18:15:42
|
branch: details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgrepo/h/hu/hugin/hugin/rev/53508ea2ec6f changeset: 4804:53508ea2ec6f user: tmodes date: Fri Jan 07 19:13:49 2011 +0100 description: Automatic update cp error after some operations Fixes issue #698869 diffstat: src/hugin1/PT/PanoCommand.h | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diffs (76 lines): diff -r 6852a1edc9fe -r 53508ea2ec6f src/hugin1/PT/PanoCommand.h --- a/src/hugin1/PT/PanoCommand.h Fri Jan 07 18:12:02 2011 +0100 +++ b/src/hugin1/PT/PanoCommand.h Fri Jan 07 19:13:49 2011 +0100 @@ -31,7 +31,7 @@ #include "Panorama.h" //#include "PanoToolsInterface.h" #include <panodata/StandardImageVariableGroups.h> - +#include <panotools/PanoToolsUtils.h> namespace PT { @@ -308,6 +308,7 @@ for (it = cps.begin(); it != cps.end(); ++it, i++) { pano.changeControlPoint(i, *it); } + HuginBase::PTools::calcCtrlPointErrors(pano); pano.changeFinished(); return true; @@ -440,6 +441,7 @@ pano.updateVariables(*it, *v_it); ++v_it; } + HuginBase::PTools::calcCtrlPointErrors(pano); pano.changeFinished(); return true; @@ -502,6 +504,7 @@ for (it = images.begin(); it != images.end(); ++it) { pano.updateVariable(*it, var); } + HuginBase::PTools::calcCtrlPointErrors(pano); pano.changeFinished(); return true; @@ -591,6 +594,7 @@ virtual bool processPanorama(Panorama& pano) { pano.addCtrlPoint(point); + HuginBase::PTools::calcCtrlPointErrors(pano); pano.changeFinished(); return true; @@ -626,6 +630,7 @@ { pano.addCtrlPoint(*it); } + HuginBase::PTools::calcCtrlPointErrors(pano); pano.changeFinished(); return true; @@ -720,6 +725,7 @@ virtual bool processPanorama(Panorama& pano) { pano.changeControlPoint(pNr, point); + HuginBase::PTools::calcCtrlPointErrors(pano); pano.changeFinished(); return true; @@ -814,6 +820,7 @@ virtual bool processPanorama(Panorama& pano) { pano.mergePanorama(newPano); + HuginBase::PTools::calcCtrlPointErrors(pano); pano.changeFinished(); return true; @@ -914,6 +921,7 @@ pano.setSrcImage(*it, imgs[i]); i++; } + HuginBase::PTools::calcCtrlPointErrors(pano); pano.changeFinished(); return true; |