FbxImporter.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. //------------------------------------------------------------------------------
  2. // <auto-generated />
  3. //
  4. // This file was automatically generated by SWIG (http://www.swig.org).
  5. // Version 3.0.12
  6. //
  7. // Do not make changes to this file unless you know what you are doing--modify
  8. // the SWIG interface file instead.
  9. //------------------------------------------------------------------------------
  10. namespace Autodesk.Fbx {
  11. public class FbxImporter : FbxIOBase {
  12. internal FbxImporter(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
  13. // override void Dispose() {base.Dispose();}
  14. public new static FbxImporter Create(FbxManager pManager, string pName) {
  15. global::System.IntPtr cPtr = NativeMethods.FbxImporter_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
  16. FbxImporter ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxImporter(cPtr, false);
  17. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  18. return ret;
  19. }
  20. public new static FbxImporter Create(FbxObject pContainer, string pName) {
  21. global::System.IntPtr cPtr = NativeMethods.FbxImporter_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
  22. FbxImporter ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxImporter(cPtr, false);
  23. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  24. return ret;
  25. }
  26. public void GetFileVersion(out int pMajor, out int pMinor, out int pRevision) {
  27. NativeMethods.FbxImporter_GetFileVersion(swigCPtr, out pMajor, out pMinor, out pRevision);
  28. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  29. }
  30. public FbxIOFileHeaderInfo GetFileHeaderInfo() {
  31. global::System.IntPtr cPtr = NativeMethods.FbxImporter_GetFileHeaderInfo(swigCPtr);
  32. FbxIOFileHeaderInfo ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOFileHeaderInfo(cPtr, false);
  33. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  34. return ret;
  35. }
  36. public bool Import(FbxDocument pDocument) {
  37. bool ret = NativeMethods.FbxImporter_Import(swigCPtr, FbxDocument.getCPtr(pDocument));
  38. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  39. return ret;
  40. }
  41. public int GetAnimStackCount() {
  42. int ret = NativeMethods.FbxImporter_GetAnimStackCount(swigCPtr);
  43. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  44. return ret;
  45. }
  46. public string GetActiveAnimStackName() {
  47. string ret = NativeMethods.FbxImporter_GetActiveAnimStackName(swigCPtr);
  48. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  49. return ret;
  50. }
  51. public bool IsFBX() {
  52. bool ret = NativeMethods.FbxImporter_IsFBX(swigCPtr);
  53. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  54. return ret;
  55. }
  56. public override int GetHashCode(){
  57. return swigCPtr.Handle.GetHashCode();
  58. }
  59. public bool Equals(FbxImporter other) {
  60. if (object.ReferenceEquals(other, null)) { return false; }
  61. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  62. }
  63. public override bool Equals(object obj){
  64. if (object.ReferenceEquals(obj, null)) { return false; }
  65. /* is obj a subclass of this type; if so use our Equals */
  66. var typed = obj as FbxImporter;
  67. if (!object.ReferenceEquals(typed, null)) {
  68. return this.Equals(typed);
  69. }
  70. /* are we a subclass of the other type; if so use their Equals */
  71. if (typeof(FbxImporter).IsSubclassOf(obj.GetType())) {
  72. return obj.Equals(this);
  73. }
  74. /* types are unrelated; can't be a match */
  75. return false;
  76. }
  77. public static bool operator == (FbxImporter a, FbxImporter b) {
  78. if (object.ReferenceEquals(a, b)) { return true; }
  79. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  80. return a.Equals(b);
  81. }
  82. public static bool operator != (FbxImporter a, FbxImporter b) {
  83. return !(a == b);
  84. }
  85. private void SetFbxSharpProgressCallback(FbxSharpProgressCallback callback) {
  86. NativeMethods.FbxImporter_SetFbxSharpProgressCallback(swigCPtr, FbxSharpProgressCallback.getCPtr(callback));
  87. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  88. }
  89. FbxSharpProgressCallback m_progressCallback;
  90. public void SetProgressCallback(Globals.FbxProgressCallback callback) {
  91. if (m_progressCallback != null) { m_progressCallback.Dispose(); }
  92. m_progressCallback = (callback == null) ? null : new FbxSharpProgressCallback.Wrapper(callback);
  93. SetFbxSharpProgressCallback(m_progressCallback);
  94. }
  95. }
  96. }