public FbxProperty StaticInit(FbxProperty pCompound, string pName, FbxDataType pDataType, EFbxQuatInterpMode pValue, bool pForceSet, FbxPropertyFlags.EFlags pFlags)
        {
            FbxProperty ret = new FbxProperty(fbx_wrapperPINVOKE.FbxPropertyTEQuatInterpMode_StaticInit__SWIG_4(swigCPtr, FbxProperty.getCPtr(pCompound), pName, FbxDataType.getCPtr(pDataType), (int)pValue, pForceSet, (int)pFlags), false);

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #2
0
        public static FbxProperty Create(FbxProperty pCompoundProperty, FbxDataType pDataType, string pName, string pLabel, bool pCheckForDup, SWIGTYPE_p_bool pWasFound)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxProperty_Create__SWIG_0(FbxProperty.getCPtr(pCompoundProperty), FbxDataType.getCPtr(pDataType), pName, pLabel, pCheckForDup, SWIGTYPE_p_bool.getCPtr(pWasFound)), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #3
0
        public FbxProperty FindHierarchical(string pName, FbxDataType pDataType)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxProperty_FindHierarchical__SWIG_3(swigCPtr, pName, FbxDataType.getCPtr(pDataType)), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #4
0
 public FbxDataType(FbxDataType pDataType) : this(FbxWrapperNativePINVOKE.new_FbxDataType__SWIG_1(FbxDataType.getCPtr(pDataType)), true)
 {
     if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
     {
         throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #5
0
        public static FbxProperty Create(FbxObject pObject, FbxDataType pDataType, string pName, string pLabel)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxProperty_Create__SWIG_6(FbxObject.getCPtr(pObject), FbxDataType.getCPtr(pDataType), pName, pLabel), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #6
0
        public FbxDataType GetDataTypeFromName(string pDataType)
        {
            FbxDataType ret = new FbxDataType(FbxWrapperNativePINVOKE.FbxManager_GetDataTypeFromName(swigCPtr, pDataType), false);

            return(ret);
        }
Пример #7
0
        public static FbxDataType Create(string pName, EFbxType pType)
        {
            FbxDataType ret = new FbxDataType(FbxWrapperNativePINVOKE.FbxDataType_Create__SWIG_0(pName, (int)pType), true);

            return(ret);
        }
Пример #8
0
        public FbxProperty StaticInit(FbxProperty pCompound, string pName, FbxDataType pDataType, FbxTransform.EInheritType pValue, bool pForceSet)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxPropertyTEInheritType_StaticInit__SWIG_5(swigCPtr, FbxProperty.getCPtr(pCompound), pName, FbxDataType.getCPtr(pDataType), (int)pValue, pForceSet), false);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #9
0
        public FbxProperty CreateProperty(FbxString pName, FbxDataType pType, FbxString pLabel)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxContainer_CreateProperty(swigCPtr, FbxString.getCPtr(pName), FbxDataType.getCPtr(pType), FbxString.getCPtr(pLabel)), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #10
0
        public FbxProperty StaticInit(FbxProperty pCompound, string pName, FbxDataType pDataType, FbxDouble3 pValue, bool pForceSet, FbxPropertyFlags.EFlags pFlags)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxPropertyTFbxDouble3_StaticInit__SWIG_4(swigCPtr, FbxProperty.getCPtr(pCompound), pName, FbxDataType.getCPtr(pDataType), FbxDouble3.getCPtr(pValue), pForceSet, (int)pFlags), false);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #11
0
        // tests that should work for any subclass of FbxProperty
        public static void GenericPropertyTests <T>(T property, FbxObject parent, string propertyName, FbxDataType dataType) where T : FbxProperty
        {
            Assert.IsTrue(property.IsValid());
            Assert.AreEqual(dataType, property.GetPropertyDataType());
            Assert.AreEqual(propertyName, property.GetName());
            Assert.AreEqual(propertyName, property.ToString());
            Assert.AreEqual(propertyName, property.GetHierarchicalName());
            Assert.AreEqual(propertyName, property.GetLabel(true));
            property.SetLabel("label");
            Assert.AreEqual("label", property.GetLabel());
            Assert.AreEqual(parent, property.GetFbxObject());
            Assert.AreEqual(property.GetFbxObject(), parent); // test it both ways just in case equals is busted

            // test the flags using the animatable flag
            property.ModifyFlag(FbxPropertyFlags.EFlags.eAnimatable, true);
            Assert.IsTrue(property.GetFlag(FbxPropertyFlags.EFlags.eAnimatable));
            Assert.AreNotEqual(0, property.GetFlags() | FbxPropertyFlags.EFlags.eAnimatable);
            property.SetFlagInheritType(FbxPropertyFlags.EFlags.eAnimatable, FbxPropertyFlags.EInheritType.eInherit);
            Assert.AreEqual(FbxPropertyFlags.EInheritType.eInherit, property.GetFlagInheritType(FbxPropertyFlags.EFlags.eAnimatable));

            // not clear when this ever returns true: whether we set animatable
            // to true or false it says it has the default value.
            Assert.IsFalse(property.ModifiedFlag(FbxPropertyFlags.EFlags.eAnimatable));

            // Test setting the value with the generic float accessor.
            // The value may not round-trip: a bool property will go to 1.0
            property.Set(5.0f);
            TestGetter(property.GetFloat());
            TestGetter(property.GetBool());
            TestGetter(property.GetDouble());
            TestGetter(property.GetFbxColor());
            TestGetter(property.GetFbxDouble3());
            TestGetter(property.GetString());
            TestGetter(property.GetInt());

            // Test setting the value with color accessor
            property.Set(new FbxColor());

            // Test setting the value with string accessor
            property.Set("MyCustomProperty");

            // test GetCurve(). Just make sure it doesn't crash. We can't
            // generically test actually getting curves, because the details
            // (channel names etc) depend on the type of property and its
            // flags.
            FbxAnimLayer layer = FbxAnimLayer.Create(parent, "layer");

            property.GetCurve(layer);
            property.GetCurve(layer, true);
            property.GetCurve(layer, "asdf");
            property.GetCurve(layer, "asdf", true);
            property.GetCurve(layer, "asdf", "hjkl", true);
            Assert.That(() => { property.GetCurve(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());

            // test GetCurveNode() (make sure it doesn't crash)
            FbxAnimCurveNode curveNode = property.GetCurveNode();

            Assert.IsNull(curveNode);  // didn't create one so should be null

            curveNode = property.GetCurveNode(true);
            // TODO: figure out why the curve node doesn't get created
            //Assert.IsNotNull (curveNode);

            property.GetCurveNode(FbxAnimStack.Create(parent, "anim stack"));
            property.GetCurveNode(FbxAnimStack.Create(parent, "anim stack"), true);
            property.GetCurveNode(FbxAnimLayer.Create(parent, "anim layer"));
            property.GetCurveNode(FbxAnimLayer.Create(parent, "anim layer"), true);

            Assert.That(() => { property.GetCurveNode((FbxAnimStack)null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());
            Assert.That(() => { property.GetCurveNode((FbxAnimLayer)null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());

            using (FbxManager manager = FbxManager.Create()) {
                // Test ConnectSrcObject functions
                FbxObject obj    = FbxObject.Create(manager, "obj");
                bool      result = property.ConnectSrcObject(obj);
                Assert.IsTrue(result);
                Assert.IsTrue(property.IsConnectedSrcObject(obj));
                Assert.AreEqual(1, property.GetSrcObjectCount());
                Assert.AreEqual(obj, property.GetSrcObject());
                Assert.AreEqual(obj, property.GetSrcObject(0));
                Assert.AreEqual(obj, property.FindSrcObject("obj"));
                Assert.IsNull(property.FindSrcObject("obj", 1));
                Assert.That(() => { property.FindSrcObject(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());

                Assert.IsTrue(property.DisconnectSrcObject(obj));
                Assert.IsFalse(property.IsConnectedSrcObject(obj));

                Assert.That(() => { property.ConnectSrcObject(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());

                Assert.IsTrue(property.ConnectSrcObject(obj, FbxConnection.EType.eData));

                Assert.IsTrue(property.DisconnectAllSrcObject());

                // Test ConnectDstObject functions
                result = property.ConnectDstObject(obj);
                Assert.IsTrue(result);
                Assert.IsTrue(property.IsConnectedDstObject(obj));
                Assert.AreEqual(1, property.GetDstObjectCount());
                Assert.AreEqual(obj, property.GetDstObject());
                Assert.AreEqual(obj, property.GetDstObject(0));
                Assert.AreEqual(obj, property.FindDstObject("obj"));
                Assert.IsNull(property.FindDstObject("obj", 1));
                Assert.That(() => { property.FindDstObject(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());

                Assert.IsTrue(property.DisconnectDstObject(obj));
                Assert.IsFalse(property.IsConnectedDstObject(obj));

                Assert.That(() => { property.ConnectDstObject(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());

                Assert.IsTrue(property.ConnectDstObject(obj, FbxConnection.EType.eData));

                Assert.IsTrue(property.DisconnectAllDstObject());
            }

            // verify this in the future: will dispose destroy?
            property.Dispose();
        }
Пример #12
0
        public FbxProperty StaticInit(FbxObject pObject, string pName, FbxDataType pDataType, FbxDouble3 pValue, bool pForceSet)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxPropertyTFbxDouble3_StaticInit__SWIG_3(swigCPtr, FbxObject.getCPtr(pObject), pName, FbxDataType.getCPtr(pDataType), FbxDouble3.getCPtr(pValue), pForceSet), false);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #13
0
        public FbxProperty StaticInit(FbxProperty pCompound, string pName, FbxDataType pDataType, bool pValue, bool pForceSet)
        {
            FbxProperty ret = new FbxProperty(fbx_wrapperPINVOKE.FbxPropertyTBool_StaticInit__SWIG_5(swigCPtr, FbxProperty.getCPtr(pCompound), pName, FbxDataType.getCPtr(pDataType), pValue, pForceSet), false);

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #14
0
        public FbxProperty StaticInit(FbxObject pObject, string pName, FbxDataType pDataType, bool pValue, bool pForceSet, FbxPropertyFlags.EFlags pFlags)
        {
            FbxProperty ret = new FbxProperty(fbx_wrapperPINVOKE.FbxPropertyTBool_StaticInit__SWIG_2(swigCPtr, FbxObject.getCPtr(pObject), pName, FbxDataType.getCPtr(pDataType), pValue, pForceSet, (int)pFlags), false);

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #15
0
        public FbxDataType CreateDataType(string pName, EFbxType pType)
        {
            FbxDataType ret = new FbxDataType(FbxWrapperNativePINVOKE.FbxManager_CreateDataType(swigCPtr, pName, (int)pType), true);

            return(ret);
        }
Пример #16
0
        public FbxProperty AddPropertyGroup(FbxProperty pParentProperty, string pName, FbxDataType pDataType, string pLabel, bool pVisible)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxIOSettings_AddPropertyGroup__SWIG_5(swigCPtr, FbxProperty.getCPtr(pParentProperty), pName, FbxDataType.getCPtr(pDataType), pLabel, pVisible), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #17
0
        public FbxDataType GetDataType(int pIndex)
        {
            FbxDataType ret = new FbxDataType(FbxWrapperNativePINVOKE.FbxManager_GetDataType(swigCPtr, pIndex), false);

            return(ret);
        }
Пример #18
0
        public FbxProperty AddProperty(FbxProperty pParentProperty, string pName, FbxDataType pDataType, string pLabel, SWIGTYPE_p_void pValue, bool pVisible, bool pSavable, bool pEnabled)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxIOSettings_AddProperty__SWIG_0(swigCPtr, FbxProperty.getCPtr(pParentProperty), pName, FbxDataType.getCPtr(pDataType), pLabel, SWIGTYPE_p_void.getCPtr(pValue), pVisible, pSavable, pEnabled), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #19
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxDataType obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Пример #20
0
        public FbxProperty AddPropertyMinMax(FbxProperty pParentProperty, string pName, FbxDataType pDataType, string pLabel, SWIGTYPE_p_void pValue, SWIGTYPE_p_double pMinValue)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxIOSettings_AddPropertyMinMax__SWIG_4(swigCPtr, FbxProperty.getCPtr(pParentProperty), pName, FbxDataType.getCPtr(pDataType), pLabel, SWIGTYPE_p_void.getCPtr(pValue), SWIGTYPE_p_double.getCPtr(pMinValue)), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #21
0
        public static FbxDataType Create(string pName, FbxDataType pDataType)
        {
            FbxDataType ret = new FbxDataType(FbxWrapperNativePINVOKE.FbxDataType_Create__SWIG_1(pName, FbxDataType.getCPtr(pDataType)), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #22
0
        public FbxProperty AddPropertyMinMax(FbxProperty pParentProperty, string pName, FbxDataType pDataType)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxIOSettings_AddPropertyMinMax__SWIG_7(swigCPtr, FbxProperty.getCPtr(pParentProperty), pName, FbxDataType.getCPtr(pDataType)), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #23
0
        public FbxDataType assign(FbxDataType pDataType)
        {
            FbxDataType ret = new FbxDataType(FbxWrapperNativePINVOKE.FbxDataType_assign(swigCPtr, FbxDataType.getCPtr(pDataType)), false);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #24
0
        public FbxProperty AddPropertyGroup(string pName, FbxDataType pDataType)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxIOSettings_AddPropertyGroup__SWIG_1(swigCPtr, pName, FbxDataType.getCPtr(pDataType)), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #25
0
        public FbxDataType GetPropertyDataType()
        {
            FbxDataType ret = new FbxDataType(FbxWrapperNativePINVOKE.FbxProperty_GetPropertyDataType(swigCPtr), true);

            return(ret);
        }
Пример #26
0
        public FbxProperty FindProperty(string pName, FbxDataType pDataType, bool pCaseSensitive)
        {
            FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindProperty__SWIG_2(swigCPtr, pName, FbxDataType.getCPtr(pDataType), pCaseSensitive), true);

            if (NativeMethods.SWIGPendingException.Pending)
            {
                throw NativeMethods.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #27
0
        public FbxProperty Find(string pName, FbxDataType pDataType, bool pCaseSensitive)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxProperty_Find__SWIG_2(swigCPtr, pName, FbxDataType.getCPtr(pDataType), pCaseSensitive), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #28
0
        public FbxProperty FindPropertyHierarchical(string pName, FbxDataType pDataType)
        {
            FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindPropertyHierarchical__SWIG_3(swigCPtr, pName, FbxDataType.getCPtr(pDataType)), true);

            if (NativeMethods.SWIGPendingException.Pending)
            {
                throw NativeMethods.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #29
0
        public static FbxProperty Create(FbxProperty pCompoundProperty, FbxDataType pDataType, string pName)
        {
            FbxProperty ret = new FbxProperty(FbxWrapperNativePINVOKE.FbxProperty_Create__SWIG_3(FbxProperty.getCPtr(pCompoundProperty), FbxDataType.getCPtr(pDataType), pName), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public FbxProperty StaticInit(FbxObject pObject, string pName, FbxDataType pDataType, EFbxQuatInterpMode pValue, bool pForceSet)
        {
            FbxProperty ret = new FbxProperty(fbx_wrapperPINVOKE.FbxPropertyTEQuatInterpMode_StaticInit__SWIG_3(swigCPtr, FbxObject.getCPtr(pObject), pName, FbxDataType.getCPtr(pDataType), (int)pValue, pForceSet), false);

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }