+//--------------------------------------------------------------------
+template <class ImageType>
+void
+clitk::AddRelativePositionConstraintToLabelImageFilter<ImageType>::
+SetOrientationTypeString(std::string t)
+{
+ SetOrientationType(Angle);
+ if (t[0] == 'L') SetOrientationType(LeftTo);
+ if (t[0] == 'R') SetOrientationType(RightTo);
+ if (t[0] == 'A') SetOrientationType(AntTo);
+ if (t[0] == 'P') SetOrientationType(PostTo);
+ if (t[0] == 'S') SetOrientationType(SupTo);
+ if (t[0] == 'I') SetOrientationType(InfTo);
+}
+//--------------------------------------------------------------------
+
+