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.
예제 #1
0
 public FbxObject()
 {
     UniqueID           = AllocateUniqueID();
     ClassId            = FbxClass.FromType(GetType());
     DestinationObjects = new FbxObjectDestinationCollection(this);
     SourceObjects      = new FbxObjectSourceCollection(this);
 }
예제 #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));
            }
        }
예제 #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);
            }
        }
예제 #4
0
 internal FbxPropertyHandle(FbxClass @class, PropertyInfo property)
 {
     Class = @class;
     Property = property;
     Name = property.Name;
 }
예제 #5
0
 internal FbxPropertyHandle(FbxClass @class, PropertyInfo property)
 {
     Class    = @class;
     Property = property;
     Name     = property.Name;
 }