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); }
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); }
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); }
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); }
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); }
public bool Equals(FbxBlendShapeChannel other) { if (object.ReferenceEquals(other, null)) { return(false); } return(this.swigCPtr.Handle.Equals(other.swigCPtr.Handle)); }
public bool AddBlendShapeChannel(FbxBlendShapeChannel pBlendShapeChannel) { bool ret = NativeMethods.FbxBlendShape_AddBlendShapeChannel(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel)); if (NativeMethods.SWIGPendingException.Pending) { throw NativeMethods.SWIGPendingException.Retrieve(); } return(ret); }
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); }
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); }
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); }
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>()); } }
public bool SetBlendShapeChannel(FbxBlendShapeChannel pBlendShapeChannel) { bool ret = fbx_wrapperPINVOKE.FbxShape_SetBlendShapeChannel(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel)); return(ret); }
public bool AddBlendShapeChannel(FbxBlendShapeChannel pBlendShapeChannel) { bool ret = FbxWrapperNativePINVOKE.FbxBlendShape_AddBlendShapeChannel(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel)); return(ret); }
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); }
public double GetDefaultShape(FbxBlendShapeChannel pBlendShapeChannel) { double ret = fbx_wrapperPINVOKE.FbxGeometry_GetDefaultShape__SWIG_1(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel)); return(ret); }
public void SetDefaultShape(FbxBlendShapeChannel pBlendShapeChannel, double pPercent) { fbx_wrapperPINVOKE.FbxGeometry_SetDefaultShape__SWIG_1(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel), pPercent); }