/// <summary> /// Load all of the mocap profiles found in the project. /// </summary> private void loadMocapProfiles() { inputProfiles.Clear(); List <Type> types = CinemaMocapHelper.GetInputProfiles(); foreach (Type t in types) { foreach (InputProfileAttribute attribute in t.GetCustomAttributes(typeof(InputProfileAttribute), true)) { inputProfiles.Add(new TypeLabelContextData(t, attribute.ProfileName)); } } }
/// <summary> /// Load all input profiles context data found in the assembly. /// </summary> public static List <InputProfileMetaData> LoadMetaData(params MocapWorkflow[] filter) { List <InputProfileMetaData> metaData = new List <InputProfileMetaData>(); List <Type> types = CinemaMocapHelper.GetInputProfiles(); foreach (Type t in types) { foreach (InputProfileAttribute attribute in t.GetCustomAttributes(typeof(InputProfileAttribute), true)) { if (Array.Exists <MocapWorkflow>(filter, item => item == attribute.MocapPhase)) { metaData.Add(new InputProfileMetaData(t, attribute)); } } } return(metaData); }