FbxIOSettings.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 FbxIOSettings : FbxObject {
  12. internal FbxIOSettings(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
  13. // override void Dispose() {base.Dispose();}
  14. public new static FbxIOSettings Create(FbxManager pManager, string pName) {
  15. global::System.IntPtr cPtr = NativeMethods.FbxIOSettings_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
  16. FbxIOSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOSettings(cPtr, false);
  17. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  18. return ret;
  19. }
  20. public new static FbxIOSettings Create(FbxObject pContainer, string pName) {
  21. global::System.IntPtr cPtr = NativeMethods.FbxIOSettings_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
  22. FbxIOSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOSettings(cPtr, false);
  23. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  24. return ret;
  25. }
  26. public void SetBoolProp(string pName, bool pValue) {
  27. NativeMethods.FbxIOSettings_SetBoolProp(swigCPtr, pName, pValue);
  28. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  29. }
  30. public override int GetHashCode(){
  31. return swigCPtr.Handle.GetHashCode();
  32. }
  33. public bool Equals(FbxIOSettings other) {
  34. if (object.ReferenceEquals(other, null)) { return false; }
  35. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  36. }
  37. public override bool Equals(object obj){
  38. if (object.ReferenceEquals(obj, null)) { return false; }
  39. /* is obj a subclass of this type; if so use our Equals */
  40. var typed = obj as FbxIOSettings;
  41. if (!object.ReferenceEquals(typed, null)) {
  42. return this.Equals(typed);
  43. }
  44. /* are we a subclass of the other type; if so use their Equals */
  45. if (typeof(FbxIOSettings).IsSubclassOf(obj.GetType())) {
  46. return obj.Equals(this);
  47. }
  48. /* types are unrelated; can't be a match */
  49. return false;
  50. }
  51. public static bool operator == (FbxIOSettings a, FbxIOSettings b) {
  52. if (object.ReferenceEquals(a, b)) { return true; }
  53. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  54. return a.Equals(b);
  55. }
  56. public static bool operator != (FbxIOSettings a, FbxIOSettings b) {
  57. return !(a == b);
  58. }
  59. }
  60. }