Ejemplo n.º 1
0
        public static List <MappingProfileMetaData> LoadMetaData(InputSkeletonType inputSkeleton)
        {
            var metaData = new List <MappingProfileMetaData>();

            List <Type> types = CinemaMocapHelper.GetMappingProfiles();

            foreach (Type t in types)
            {
                foreach (MappingProfileAttribute attribute in t.GetCustomAttributes(typeof(MappingProfileAttribute), true))
                {
                    if (attribute.InputSkeleton == inputSkeleton)
                    {
                        metaData.Add(new MappingProfileMetaData(t, attribute));
                    }
                }
            }

            return(metaData);
        }
Ejemplo n.º 2
0
        public static List <MappingProfile> LoadMappingProfiles(InputSkeletonType inputSkeleton)
        {
            List <MappingProfile> mappingProfiles = new List <MappingProfile>();

            List <Type> types = CinemaMocapHelper.GetMappingProfiles();

            foreach (Type t in types)
            {
                foreach (MappingProfileAttribute attribute in t.GetCustomAttributes(typeof(MappingProfileAttribute), true))
                {
                    if (attribute.InputSkeleton == inputSkeleton)
                    {
                        mappingProfiles.Add(Activator.CreateInstance(t) as MappingProfile);
                    }
                }
            }

            return(mappingProfiles);
        }