FbxAnimStack.cs 3.3 KB

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