FbxManager.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 FbxManager : System.IDisposable, System.IEquatable<FbxManager> {
  12. protected global::System.Runtime.InteropServices.HandleRef swigCPtr { get ; private set; }
  13. internal FbxManager(global::System.IntPtr cPtr, bool ignored) {
  14. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
  15. }
  16. internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxManager obj) {
  17. return ((object)obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
  18. }
  19. public virtual void Dispose() {
  20. Dispose(true);
  21. global::System.GC.SuppressFinalize(this);
  22. }
  23. ~FbxManager() {
  24. Dispose(false);
  25. }
  26. protected void Dispose(bool disposing) {
  27. if (swigCPtr.Handle != global::System.IntPtr.Zero) {
  28. if (disposing) {
  29. Destroy();
  30. }
  31. lock(this) {
  32. NativeMethods.ReleaseWeakPointerHandle(swigCPtr);
  33. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
  34. }
  35. }
  36. }
  37. public static FbxManager Create() {
  38. global::System.IntPtr cPtr = NativeMethods.FbxManager_Create();
  39. FbxManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxManager(cPtr, false);
  40. return ret;
  41. }
  42. public virtual void Destroy() {
  43. NativeMethods.FbxManager_Destroy(swigCPtr);
  44. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  45. }
  46. public static string GetVersion(bool pFull) {
  47. string ret = NativeMethods.FbxManager_GetVersion__SWIG_0(pFull);
  48. return ret;
  49. }
  50. public static string GetVersion() {
  51. string ret = NativeMethods.FbxManager_GetVersion__SWIG_1();
  52. return ret;
  53. }
  54. public static void GetFileFormatVersion(out int pMajor, out int pMinor, out int pRevision) {
  55. NativeMethods.FbxManager_GetFileFormatVersion(out pMajor, out pMinor, out pRevision);
  56. }
  57. public virtual FbxIOSettings GetIOSettings() {
  58. global::System.IntPtr cPtr = NativeMethods.FbxManager_GetIOSettings(swigCPtr);
  59. FbxIOSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOSettings(cPtr, false);
  60. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  61. return ret;
  62. }
  63. public virtual void SetIOSettings(FbxIOSettings pIOSettings) {
  64. NativeMethods.FbxManager_SetIOSettings(swigCPtr, FbxIOSettings.getCPtr(pIOSettings));
  65. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  66. }
  67. public FbxIOPluginRegistry GetIOPluginRegistry() {
  68. global::System.IntPtr cPtr = NativeMethods.FbxManager_GetIOPluginRegistry(swigCPtr);
  69. FbxIOPluginRegistry ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOPluginRegistry(cPtr, false);
  70. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  71. return ret;
  72. }
  73. public override int GetHashCode(){
  74. return swigCPtr.Handle.GetHashCode();
  75. }
  76. public bool Equals(FbxManager other) {
  77. if (object.ReferenceEquals(other, null)) { return false; }
  78. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  79. }
  80. public override bool Equals(object obj){
  81. if (object.ReferenceEquals(obj, null)) { return false; }
  82. /* is obj a subclass of this type; if so use our Equals */
  83. var typed = obj as FbxManager;
  84. if (!object.ReferenceEquals(typed, null)) {
  85. return this.Equals(typed);
  86. }
  87. /* are we a subclass of the other type; if so use their Equals */
  88. if (typeof(FbxManager).IsSubclassOf(obj.GetType())) {
  89. return obj.Equals(this);
  90. }
  91. /* types are unrelated; can't be a match */
  92. return false;
  93. }
  94. public static bool operator == (FbxManager a, FbxManager b) {
  95. if (object.ReferenceEquals(a, b)) { return true; }
  96. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  97. return a.Equals(b);
  98. }
  99. public static bool operator != (FbxManager a, FbxManager b) {
  100. return !(a == b);
  101. }
  102. }
  103. }