FbxGlobalSettings.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 FbxGlobalSettings : FbxObject {
  12. internal FbxGlobalSettings(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
  13. // override void Dispose() {base.Dispose();}
  14. public new static FbxGlobalSettings Create(FbxManager pManager, string pName) {
  15. global::System.IntPtr cPtr = NativeMethods.FbxGlobalSettings_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
  16. FbxGlobalSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGlobalSettings(cPtr, false);
  17. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  18. return ret;
  19. }
  20. public new static FbxGlobalSettings Create(FbxObject pContainer, string pName) {
  21. global::System.IntPtr cPtr = NativeMethods.FbxGlobalSettings_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
  22. FbxGlobalSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGlobalSettings(cPtr, false);
  23. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  24. return ret;
  25. }
  26. public void SetAxisSystem(FbxAxisSystem pAxisSystem) {
  27. NativeMethods.FbxGlobalSettings_SetAxisSystem(swigCPtr, FbxAxisSystem.getCPtr(pAxisSystem));
  28. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  29. }
  30. public FbxAxisSystem GetAxisSystem() {
  31. FbxAxisSystem ret = new FbxAxisSystem(NativeMethods.FbxGlobalSettings_GetAxisSystem(swigCPtr), true);
  32. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  33. return ret;
  34. }
  35. public void SetSystemUnit(FbxSystemUnit pOther) {
  36. NativeMethods.FbxGlobalSettings_SetSystemUnit(swigCPtr, FbxSystemUnit.getCPtr(pOther));
  37. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  38. }
  39. public FbxSystemUnit GetSystemUnit() {
  40. FbxSystemUnit ret = new FbxSystemUnit(NativeMethods.FbxGlobalSettings_GetSystemUnit(swigCPtr), true);
  41. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  42. return ret;
  43. }
  44. public void SetAmbientColor(FbxColor pAmbientColor) {
  45. NativeMethods.FbxGlobalSettings_SetAmbientColor(swigCPtr, pAmbientColor);
  46. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  47. }
  48. public FbxColor GetAmbientColor() {
  49. var ret = NativeMethods.FbxGlobalSettings_GetAmbientColor(swigCPtr);
  50. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  51. return ret;
  52. }
  53. public bool SetDefaultCamera(string pCameraName) {
  54. bool ret = NativeMethods.FbxGlobalSettings_SetDefaultCamera(swigCPtr, pCameraName);
  55. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  56. return ret;
  57. }
  58. public string GetDefaultCamera() {
  59. string ret = NativeMethods.FbxGlobalSettings_GetDefaultCamera(swigCPtr);
  60. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  61. return ret;
  62. }
  63. public void SetTimeMode(FbxTime.EMode pTimeMode) {
  64. NativeMethods.FbxGlobalSettings_SetTimeMode(swigCPtr, (int)pTimeMode);
  65. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  66. }
  67. public FbxTime.EMode GetTimeMode() {
  68. FbxTime.EMode ret = (FbxTime.EMode)NativeMethods.FbxGlobalSettings_GetTimeMode(swigCPtr);
  69. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  70. return ret;
  71. }
  72. public override int GetHashCode(){
  73. return swigCPtr.Handle.GetHashCode();
  74. }
  75. public bool Equals(FbxGlobalSettings other) {
  76. if (object.ReferenceEquals(other, null)) { return false; }
  77. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  78. }
  79. public override bool Equals(object obj){
  80. if (object.ReferenceEquals(obj, null)) { return false; }
  81. /* is obj a subclass of this type; if so use our Equals */
  82. var typed = obj as FbxGlobalSettings;
  83. if (!object.ReferenceEquals(typed, null)) {
  84. return this.Equals(typed);
  85. }
  86. /* are we a subclass of the other type; if so use their Equals */
  87. if (typeof(FbxGlobalSettings).IsSubclassOf(obj.GetType())) {
  88. return obj.Equals(this);
  89. }
  90. /* types are unrelated; can't be a match */
  91. return false;
  92. }
  93. public static bool operator == (FbxGlobalSettings a, FbxGlobalSettings b) {
  94. if (object.ReferenceEquals(a, b)) { return true; }
  95. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  96. return a.Equals(b);
  97. }
  98. public static bool operator != (FbxGlobalSettings a, FbxGlobalSettings b) {
  99. return !(a == b);
  100. }
  101. }
  102. }