public virtual bool NeedApply(FbxAnimStack pAnimStack, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilter_NeedApply__SWIG_0(swigCPtr, FbxAnimStack.getCPtr(pAnimStack), FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#2
0
        public override FbxVector4 GetControlPoints(FbxStatus pStatus)
        {
            global::System.IntPtr cPtr = fbx_wrapperPINVOKE.FbxTrimNurbsSurface_GetControlPoints__SWIG_0(swigCPtr, FbxStatus.getCPtr(pStatus));
            FbxVector4            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxVector4(cPtr, false);

            return(ret);
        }
示例#3
0
 public FbxStatus(FbxStatus rhs) : this(FbxWrapperNativePINVOKE.new_FbxStatus__SWIG_2(FbxStatus.getCPtr(rhs)), true)
 {
     if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
     {
         throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#4
0
        public override bool Apply(SWIGTYPE_p_p_FbxAnimCurve pCurve, int pCount, FbxStatus pStatus)
        {
            bool ret = fbx_wrapperPINVOKE.FbxAnimCurveFilterScaleCompensate_Apply__SWIG_6(swigCPtr, SWIGTYPE_p_p_FbxAnimCurve.getCPtr(pCurve), pCount, FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#5
0
        public override bool Apply(FbxObject pObj, FbxAnimStack pAnimStack, FbxStatus pStatus)
        {
            bool ret = fbx_wrapperPINVOKE.FbxAnimCurveFilterScaleCompensate_Apply__SWIG_2(swigCPtr, FbxObject.getCPtr(pObj), FbxAnimStack.getCPtr(pAnimStack), FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#6
0
        public override bool NeedApply(SWIGTYPE_p_p_FbxAnimCurve pCurve, int pCount, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilterMatrixConverter_NeedApply__SWIG_0(swigCPtr, SWIGTYPE_p_p_FbxAnimCurve.getCPtr(pCurve), pCount, FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#7
0
        public FbxStatus GetStatus()
        {
            FbxStatus ret = new FbxStatus(fbx_wrapperPINVOKE.FbxReader_GetStatus(swigCPtr), false);

            return(ret);
        }
示例#8
0
        public override bool Apply(FbxAnimCurve arg0, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilterKeySync_Apply__SWIG_8(swigCPtr, FbxAnimCurve.getCPtr(arg0), FbxStatus.getCPtr(pStatus));

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#9
0
        public override bool NeedApply(FbxObject pObj, FbxAnimStack pAnimStack, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilterKeySync_NeedApply__SWIG_2(swigCPtr, FbxObject.getCPtr(pObj), FbxAnimStack.getCPtr(pAnimStack), FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#10
0
        public virtual FbxVector4 GetControlPoints(FbxStatus pStatus)
        {
            global::System.IntPtr cPtr = fbx_wrapperPINVOKE.FbxGeometryBase_GetControlPoints__SWIG_0(swigCPtr, FbxStatus.getCPtr(pStatus));
            FbxVector4            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxVector4(cPtr, false);

            return(ret);
        }
示例#11
0
        public override bool Apply(SWIGTYPE_p_p_FbxAnimCurve pCurve, int pCount, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilterKeySync_Apply__SWIG_6(swigCPtr, SWIGTYPE_p_p_FbxAnimCurve.getCPtr(pCurve), pCount, FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#12
0
        public virtual bool Apply(FbxAnimCurve pCurve, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilter_Apply__SWIG_8(swigCPtr, FbxAnimCurve.getCPtr(pCurve), FbxStatus.getCPtr(pStatus));

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#13
0
        public virtual bool Apply(FbxObject pObj, FbxAnimStack pAnimStack, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilter_Apply__SWIG_2(swigCPtr, FbxObject.getCPtr(pObj), FbxAnimStack.getCPtr(pAnimStack), FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#14
0
        public virtual bool NeedApply(SWIGTYPE_p_p_FbxAnimCurve pCurve, int pCount, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilter_NeedApply__SWIG_6(swigCPtr, SWIGTYPE_p_p_FbxAnimCurve.getCPtr(pCurve), pCount, FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#15
0
        public virtual bool Apply(SWIGTYPE_p_p_FbxAnimCurveNode pCurveNode, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilterMatrixConverter_Apply__SWIG_6(swigCPtr, SWIGTYPE_p_p_FbxAnimCurveNode.getCPtr(pCurveNode), FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#16
0
            /// <summary>
            /// Import all from scene.
            /// Return the number of objects we imported.
            /// </summary>
            public int ImportAll()
            {
                // Create the FBX manager
                using (var fbxManager = FbxManager.Create())
                {
                    FbxIOSettings fbxIOSettings = FbxIOSettings.Create(fbxManager, Globals.IOSROOT);

                    // Configure the IO settings.
                    fbxManager.SetIOSettings(fbxIOSettings);

                    // Get the version number of the FBX files generated by the
                    // version of FBX SDK that you are using.
                    int sdkMajor = -1, sdkMinor = -1, sdkRevision = -1;
                    FbxManager.GetFileFormatVersion(out sdkMajor, out sdkMinor, out sdkRevision);

                    // Create the importer
                    var fbxImporter = FbxImporter.Create(fbxManager, "Importer");

                    // Initialize the importer.
                    int fileFormat = -1;

                    bool      status    = fbxImporter.Initialize(LastFilePath, fileFormat, fbxIOSettings);
                    FbxStatus fbxStatus = fbxImporter.GetStatus();

                    // Get the version number of the FBX file format.
                    int fileMajor = -1, fileMinor = -1, fileRevision = -1;
                    fbxImporter.GetFileVersion(out fileMajor, out fileMinor, out fileRevision);

                    // Check that initialization of the fbxImporter was successful
                    if (!status)
                    {
                        Debug.LogError(string.Format("failed to initialize FbxImporter, error returned {0}",
                                                     fbxStatus.GetErrorString()));

                        if (fbxStatus.GetCode() == FbxStatus.EStatusCode.eInvalidFileVersion)
                        {
                            Debug.LogError(string.Format("Invalid file version detected\nSDK version: {0}.{1}.{2}\nFile version: {3}.{4}.{5}",
                                                         sdkMajor, sdkMinor, sdkRevision,
                                                         fileMajor, fileMinor, fileRevision));
                        }

                        return(0);
                    }

                    // Import options. Determine what kind of data is to be imported.
                    // The default is true, but here we set the options explictly.
                    fbxIOSettings.SetBoolProp(Globals.IMP_FBX_MATERIAL, false);
                    fbxIOSettings.SetBoolProp(Globals.IMP_FBX_TEXTURE, false);
                    fbxIOSettings.SetBoolProp(Globals.IMP_FBX_ANIMATION, false);
                    fbxIOSettings.SetBoolProp(Globals.IMP_FBX_EXTRACT_EMBEDDED_DATA, false);
                    fbxIOSettings.SetBoolProp(Globals.IMP_FBX_GLOBAL_SETTINGS, true);

                    // Create a scene
                    var fbxScene = FbxScene.Create(fbxManager, "Scene");

                    // Import the scene to the file.
                    status = fbxImporter.Import(fbxScene);

                    if (status == false)
                    {
                        Debug.LogError(string.Format("failed to import file ({0})",
                                                     fbxImporter.GetStatus().GetErrorString()));
                    }
                    else
                    {
                        // import data into scene
                        ProcessScene(fbxScene);
                    }

                    // cleanup
                    fbxScene.Destroy();
                    fbxImporter.Destroy();

                    return(status == true ? NumNodes : 0);
                }
            }
示例#17
0
        public bool Apply(SWIGTYPE_p_p_FbxAnimCurve pCurve, SWIGTYPE_p_double pVals, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilterMatrixConverter_Apply__SWIG_10(swigCPtr, SWIGTYPE_p_p_FbxAnimCurve.getCPtr(pCurve), SWIGTYPE_p_double.getCPtr(pVals), FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#18
0
        public override bool NeedApply(SWIGTYPE_p_p_FbxAnimCurve pCurve, int pCount, FbxStatus pStatus)
        {
            bool ret = fbx_wrapperPINVOKE.FbxAnimCurveFilterGimbleKiller_NeedApply__SWIG_6(swigCPtr, SWIGTYPE_p_p_FbxAnimCurve.getCPtr(pCurve), pCount, FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#19
0
        public override bool Apply(FbxAnimCurveNode pCurveNode, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilterMatrixConverter_Apply__SWIG_0(swigCPtr, FbxAnimCurveNode.getCPtr(pCurveNode), FbxStatus.getCPtr(pStatus));

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#20
0
        public override bool Apply(FbxAnimCurve arg0, FbxStatus pStatus)
        {
            bool ret = fbx_wrapperPINVOKE.FbxAnimCurveFilterGimbleKiller_Apply__SWIG_8(swigCPtr, FbxAnimCurve.getCPtr(arg0), FbxStatus.getCPtr(pStatus));

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#21
0
        public FbxDeformer GetDeformer(int pIndex, FbxStatus pStatus)
        {
            global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_0(swigCPtr, pIndex, FbxStatus.getCPtr(pStatus));
            FbxDeformer           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false);

            if (NativeMethods.SWIGPendingException.Pending)
            {
                throw NativeMethods.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#22
0
        public override bool NeedApply(FbxObject arg0, FbxAnimStack arg1, FbxStatus pStatus)
        {
            bool ret = fbx_wrapperPINVOKE.FbxAnimCurveFilterGimbleKiller_NeedApply__SWIG_2(swigCPtr, FbxObject.getCPtr(arg0), FbxAnimStack.getCPtr(arg1), FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#23
0
        public virtual bool Apply(SWIGTYPE_p_p_FbxAnimCurve pCurve, int pCount, FbxIOSettings pIOS, FbxStatus pStatus)
        {
            bool ret = fbx_wrapperPINVOKE.FbxAnimCurveFilterScaleCompensate_Apply__SWIG_8(swigCPtr, SWIGTYPE_p_p_FbxAnimCurve.getCPtr(pCurve), pCount, FbxIOSettings.getCPtr(pIOS), FbxStatus.getCPtr(pStatus));

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#24
0
        public int LoadContent(FbxStatus pStatus)
        {
            int ret = fbx_wrapperPINVOKE.FbxDocument_LoadContent__SWIG_0(swigCPtr, FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#25
0
        public override bool Apply(FbxAnimCurveNode pCurveNode, FbxStatus pStatus)
        {
            bool ret = fbx_wrapperPINVOKE.FbxAnimCurveFilterScaleCompensate_Apply__SWIG_4(swigCPtr, FbxAnimCurveNode.getCPtr(pCurveNode), FbxStatus.getCPtr(pStatus));

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#26
0
        public bool CreateAnimStack(string pName, FbxStatus pStatus)
        {
            bool ret = fbx_wrapperPINVOKE.FbxDocument_CreateAnimStack__SWIG_0(swigCPtr, pName, FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#27
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxStatus obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
示例#28
0
        public override bool Apply(FbxObject arg0, FbxAnimStack arg1, FbxStatus pStatus)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxAnimCurveFilterMatrixConverter_Apply__SWIG_4(swigCPtr, FbxObject.getCPtr(arg0), FbxAnimStack.getCPtr(arg1), FbxStatus.getCPtr(pStatus));

            return(ret);
        }
示例#29
0
        public FbxStatus assign(FbxStatus rhs)
        {
            FbxStatus ret = new FbxStatus(FbxWrapperNativePINVOKE.FbxStatus_assign(swigCPtr, FbxStatus.getCPtr(rhs)), false);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#30
0
        public bool SetDefaultCamera(string pCameraName, FbxStatus pStatus)
        {
            bool ret = fbx_wrapperPINVOKE.FbxGlobalCameraSettings_SetDefaultCamera__SWIG_0(swigCPtr, pCameraName, FbxStatus.getCPtr(pStatus));

            return(ret);
        }