コード例 #1
0
        public FbxBlendShapeChannel GetBlendShapeChannel()
        {
            global::System.IntPtr cPtr = fbx_wrapperPINVOKE.FbxShape_GetBlendShapeChannel(swigCPtr);
            FbxBlendShapeChannel  ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false);

            return(ret);
        }
コード例 #2
0
        public new static FbxBlendShapeChannel Create(FbxManager pManager, string pName)
        {
            global::System.IntPtr cPtr = fbx_wrapperPINVOKE.FbxBlendShapeChannel_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
            FbxBlendShapeChannel  ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false);

            return(ret);
        }
コード例 #3
0
        public FbxBlendShapeChannel RemoveBlendShapeChannel(FbxBlendShapeChannel pBlendShapeChannel)
        {
            global::System.IntPtr cPtr = FbxWrapperNativePINVOKE.FbxBlendShape_RemoveBlendShapeChannel(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel));
            FbxBlendShapeChannel  ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false);

            return(ret);
        }
コード例 #4
0
        public FbxBlendShapeChannel GetBlendShapeChannel(int pIndex)
        {
            global::System.IntPtr cPtr = FbxWrapperNativePINVOKE.FbxBlendShape_GetBlendShapeChannel__SWIG_0(swigCPtr, pIndex);
            FbxBlendShapeChannel  ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false);

            return(ret);
        }
コード例 #5
0
        public new static FbxBlendShapeChannel Create(FbxObject pContainer, string pName)
        {
            global::System.IntPtr cPtr = FbxWrapperNativePINVOKE.FbxBlendShapeChannel_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
            FbxBlendShapeChannel  ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false);

            return(ret);
        }
コード例 #6
0
 public bool Equals(FbxBlendShapeChannel other)
 {
     if (object.ReferenceEquals(other, null))
     {
         return(false);
     }
     return(this.swigCPtr.Handle.Equals(other.swigCPtr.Handle));
 }
コード例 #7
0
        public bool AddBlendShapeChannel(FbxBlendShapeChannel pBlendShapeChannel)
        {
            bool ret = NativeMethods.FbxBlendShape_AddBlendShapeChannel(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel));

            if (NativeMethods.SWIGPendingException.Pending)
            {
                throw NativeMethods.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #8
0
        public FbxBlendShapeChannel RemoveBlendShapeChannel(FbxBlendShapeChannel pBlendShapeChannel)
        {
            global::System.IntPtr cPtr = NativeMethods.FbxBlendShape_RemoveBlendShapeChannel(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel));
            FbxBlendShapeChannel  ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false);

            if (NativeMethods.SWIGPendingException.Pending)
            {
                throw NativeMethods.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #9
0
        public FbxBlendShapeChannel GetBlendShapeChannel(int pIndex)
        {
            global::System.IntPtr cPtr = NativeMethods.FbxBlendShape_GetBlendShapeChannel(swigCPtr, pIndex);
            FbxBlendShapeChannel  ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false);

            if (NativeMethods.SWIGPendingException.Pending)
            {
                throw NativeMethods.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #10
0
        public new static FbxBlendShapeChannel Create(FbxObject pContainer, string pName)
        {
            global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
            FbxBlendShapeChannel  ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false);

            if (NativeMethods.SWIGPendingException.Pending)
            {
                throw NativeMethods.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #11
0
        public void TestBasics()
        {
            using (var fbxBlendShape = CreateObject()) {
                // test FbxDeformer functions
                TestBasics(fbxBlendShape, FbxDeformer.EDeformerType.eBlendShape);

                int origCount = fbxBlendShape.GetBlendShapeChannelCount();

                // test AddBlendShapeChannel()
                var fbxBlendShapeChannel = FbxBlendShapeChannel.Create(Manager, "blendShapeChannel");
                fbxBlendShape.AddBlendShapeChannel(fbxBlendShapeChannel);

                Assert.AreEqual(origCount + 1, fbxBlendShape.GetBlendShapeChannelCount());
                Assert.AreEqual(fbxBlendShapeChannel, fbxBlendShape.GetBlendShapeChannel(origCount));

                // test RemoveBlendShapeChannel()
                Assert.AreEqual(fbxBlendShapeChannel, fbxBlendShape.RemoveBlendShapeChannel(fbxBlendShapeChannel));
                // test already removed
                Assert.AreEqual(null, fbxBlendShape.RemoveBlendShapeChannel(fbxBlendShapeChannel));

                // test null
                Assert.That(() => { fbxBlendShape.AddBlendShapeChannel(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());
                Assert.That(() => { fbxBlendShape.RemoveBlendShapeChannel(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());

                // test destroyed
                fbxBlendShapeChannel.Destroy();
                Assert.That(() => { fbxBlendShape.AddBlendShapeChannel(fbxBlendShapeChannel); }, Throws.Exception.TypeOf <System.ArgumentNullException>());
                Assert.That(() => { fbxBlendShape.RemoveBlendShapeChannel(fbxBlendShapeChannel); }, Throws.Exception.TypeOf <System.ArgumentNullException>());

                // test SetGeometry()
                FbxGeometry fbxGeom = FbxGeometry.Create(Manager, "geometry");
                Assert.IsTrue(fbxBlendShape.SetGeometry(fbxGeom));
                Assert.AreEqual(fbxGeom, fbxBlendShape.GetGeometry());

                // test null
                Assert.That(() => { fbxBlendShape.SetGeometry(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());

                // test destroyed
                fbxGeom = FbxGeometry.Create(Manager, "geometry2");
                fbxGeom.Destroy();
                Assert.That(() => { fbxBlendShape.SetGeometry(fbxGeom); }, Throws.Exception.TypeOf <System.ArgumentNullException>());
            }
        }
コード例 #12
0
        public bool SetBlendShapeChannel(FbxBlendShapeChannel pBlendShapeChannel)
        {
            bool ret = fbx_wrapperPINVOKE.FbxShape_SetBlendShapeChannel(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel));

            return(ret);
        }
コード例 #13
0
        public bool AddBlendShapeChannel(FbxBlendShapeChannel pBlendShapeChannel)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxBlendShape_AddBlendShapeChannel(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel));

            return(ret);
        }
コード例 #14
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxBlendShapeChannel obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #15
0
        public double GetDefaultShape(FbxBlendShapeChannel pBlendShapeChannel)
        {
            double ret = fbx_wrapperPINVOKE.FbxGeometry_GetDefaultShape__SWIG_1(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel));

            return(ret);
        }
コード例 #16
0
 public void SetDefaultShape(FbxBlendShapeChannel pBlendShapeChannel, double pPercent)
 {
     fbx_wrapperPINVOKE.FbxGeometry_SetDefaultShape__SWIG_1(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel), pPercent);
 }