static string gettype (AnimatableType t) { switch (t) { case AnimatableType.Boolean: return "bool"; case AnimatableType.Byte: return "byte"; case AnimatableType.Char: return "char"; case AnimatableType.Object: return "object"; case AnimatableType.Single: return "float"; case AnimatableType.Double: return "double"; case AnimatableType.Int16: return "short"; case AnimatableType.Int32: return "int"; case AnimatableType.Int64: return "long"; case AnimatableType.Decimal: case AnimatableType.Color: case AnimatableType.Matrix: //case AnimatableType.Point3D: case AnimatableType.Point: //case AnimatableType.Quaternion: case AnimatableType.Rect: //case AnimatableType.Rotation3D: case AnimatableType.Size: case AnimatableType.String: //case AnimatableType.Vector3D: case AnimatableType.Vector: return t.ToString(); } return null; }
static bool istypecontinuous (AnimatableType t) { switch (t) { case AnimatableType.Boolean: case AnimatableType.Char: case AnimatableType.Object: case AnimatableType.String: case AnimatableType.Matrix: return false; case AnimatableType.Color: //case AnimatableType.Point3D: //case AnimatableType.Quaternion: //case AnimatableType.Rotation3D: //case AnimatableType.Vector3D: default: return true; } }
static bool istypecontinuous(AnimatableType t) { switch (t) { case AnimatableType.Boolean: case AnimatableType.Char: case AnimatableType.Object: case AnimatableType.String: case AnimatableType.Matrix: return(false); case AnimatableType.Color: //case AnimatableType.Point3D: //case AnimatableType.Quaternion: //case AnimatableType.Rotation3D: //case AnimatableType.Vector3D: default: return(true); } }
static string gettype(AnimatableType t) { switch (t) { case AnimatableType.Boolean: return("bool"); case AnimatableType.Byte: return("byte"); case AnimatableType.Char: return("char"); case AnimatableType.Object: return("object"); case AnimatableType.Single: return("float"); case AnimatableType.Double: return("double"); case AnimatableType.Int16: return("short"); case AnimatableType.Int32: return("int"); case AnimatableType.Int64: return("long"); case AnimatableType.Decimal: case AnimatableType.Color: case AnimatableType.Matrix: //case AnimatableType.Point3D: case AnimatableType.Point: //case AnimatableType.Quaternion: case AnimatableType.Rect: //case AnimatableType.Rotation3D: case AnimatableType.Size: case AnimatableType.String: //case AnimatableType.Vector3D: case AnimatableType.Vector: return(t.ToString()); } return(null); }
GenAnimationTypes(AnimatableType type) { this.type = type; }
GenAnimationTypes (AnimatableType type) { this.type = type; }