From b2b8c52b0db448b1ca2286b07c548be05466da0e Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Mon, 24 Oct 2011 08:25:36 +0200 Subject: [PATCH] Correct the way to set angles --- ...clitkAddRelativePositionConstraintToLabelImageFilter.txx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; //-------------------------------------------------------------------- //-------------------------------------------------------------------- -- 2.47.1