From: David Sarrut Date: Mon, 24 Oct 2011 06:25:36 +0000 (+0200) Subject: Correct the way to set angles X-Git-Tag: v1.3.0~174^2~38 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b2b8c52b0db448b1ca2286b07c548be05466da0e;p=clitk.git Correct the way to set angles --- diff --git a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.txx b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.txx index b73368f..1ea25f0 100644 --- a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.txx +++ b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.txx @@ -138,6 +138,8 @@ AddOrientationTypeString(std::string t) if (t == "NotSupTo") { AddOrientationType(SupTo); InverseOrientationFlagOn(); return; } if (t == "NotInfTo") { AddOrientationType(InfTo); InverseOrientationFlagOn(); return; } + if (t == "Angle") return; + clitkExceptionMacro("Error, you must provide LeftTo,RightTo or AntTo,PostTo or SupTo,InfTo (or NotLeftTo, NotRightTo etc) but you give " << t); } //-------------------------------------------------------------------- @@ -179,7 +181,8 @@ void clitk::AddRelativePositionConstraintToLabelImageFilter:: AddAngles(double a, double b) { - AddOrientationTypeString("Angle"); + m_OrientationTypeString.push_back("Angle"); + m_OrientationType.push_back(Angle); m_Angle1.push_back(a); m_Angle2.push_back(b); } @@ -412,6 +415,7 @@ GenerateData() relPos = m_FuzzyMap; StopCurrentStep(relPos); + if (GetFuzzyMapOnlyFlag()) return; //-------------------------------------------------------------------- //--------------------------------------------------------------------