Example #1
0
 internal static AnimationProperties AnimationPropertysToAnimationProperties(AnimationPropertys property)
 {
     if (!Enum.IsDefined(typeof(AnimationProperties), property))
     {
         throw new InvalidCastException("Failed to convert AnimationPropertys '" + property + "' to AnimationProperties");
     }
     return((AnimationProperties)property);
 }
Example #2
0
        public static int GetElementCount(AnimationPropertys property)
        {
            switch (property)
            {
            case AnimationPropertys.Translation: return(3);

            case AnimationPropertys.EulerRotation: return(3);

            case AnimationPropertys.Rotation: return(4);

            case AnimationPropertys.Scale: return(3);

            case AnimationPropertys.BlendShape: return(1);

            default: throw new NotImplementedException();
            }
        }
Example #3
0
        public static string GetPathName(AnimationPropertys property)
        {
            switch (property)
            {
            case AnimationPropertys.Translation:
                return(PATH_TRANSLATION);

            case AnimationPropertys.EulerRotation:
            case AnimationPropertys.Rotation:
                return(PATH_ROTATION);

            case AnimationPropertys.Scale:
                return(PATH_SCALE);

            case AnimationPropertys.BlendShape:
                return(PATH_WEIGHT);

            default: throw new NotImplementedException();
            }
        }
Example #4
0
 public static string GetPathName(AnimationPropertys property)
 {
     return(GetPathName(AnimationPropertysToAnimationProperties(property)));
 }
Example #5
0
 public static int GetElementCount(AnimationPropertys property)
 {
     return(GetElementCount(AnimationPropertysToAnimationProperties(property)));
 }