FbxObject class information.
This is called "FbxClassId" in the FBX SDK, because it was passed around as "FbxClassId", not "FbxClass*", giving it a different usage profile.
Exemple #1
0
 public FbxObject()
 {
     UniqueID           = AllocateUniqueID();
     ClassId            = FbxClass.FromType(GetType());
     DestinationObjects = new FbxObjectDestinationCollection(this);
     SourceObjects      = new FbxObjectSourceCollection(this);
 }
Exemple #2
0
        public static FbxClass FromType(Type type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            lock (list) {
                FbxClass result;

                if (list.TryGetValue(type, out result))
                {
                    return(result);
                }

                if (!type.IsSubclassOf(typeof(FbxObject)))
                {
                    throw new ArgumentException("Type is not a subclass of " + typeof(FbxObject).Name + ".");
                }
                return(list[type] = new FbxClass(type));
            }
        }
Exemple #3
0
        public static FbxClass FromType(Type type)
        {
            if (type == null)
                throw new ArgumentNullException("type");

            lock (list) {
                FbxClass result;

                if (list.TryGetValue(type, out result))
                    return result;

                if(!type.IsSubclassOf(typeof(FbxObject)))
                    throw new ArgumentException("Type is not a subclass of " + typeof(FbxObject).Name + ".");
                return list[type] = new FbxClass(type);
            }
        }
 internal FbxPropertyHandle(FbxClass @class, PropertyInfo property)
 {
     Class = @class;
     Property = property;
     Name = property.Name;
 }
Exemple #5
0
 internal FbxPropertyHandle(FbxClass @class, PropertyInfo property)
 {
     Class    = @class;
     Property = property;
     Name     = property.Name;
 }