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