FbxAnimCurveNode.cs 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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 FbxAnimCurveNode : FbxObject {
  12. internal FbxAnimCurveNode(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
  13. // override void Dispose() {base.Dispose();}
  14. public new static FbxAnimCurveNode Create(FbxManager pManager, string pName) {
  15. global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
  16. FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false);
  17. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  18. return ret;
  19. }
  20. public new static FbxAnimCurveNode Create(FbxObject pContainer, string pName) {
  21. global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
  22. FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false);
  23. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  24. return ret;
  25. }
  26. public bool IsAnimated(bool pRecurse) {
  27. bool ret = NativeMethods.FbxAnimCurveNode_IsAnimated__SWIG_0(swigCPtr, pRecurse);
  28. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  29. return ret;
  30. }
  31. public bool IsAnimated() {
  32. bool ret = NativeMethods.FbxAnimCurveNode_IsAnimated__SWIG_1(swigCPtr);
  33. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  34. return ret;
  35. }
  36. public bool GetAnimationInterval(FbxTimeSpan pTimeInterval) {
  37. bool ret = NativeMethods.FbxAnimCurveNode_GetAnimationInterval(swigCPtr, FbxTimeSpan.getCPtr(pTimeInterval));
  38. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  39. return ret;
  40. }
  41. public bool IsComposite() {
  42. bool ret = NativeMethods.FbxAnimCurveNode_IsComposite(swigCPtr);
  43. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  44. return ret;
  45. }
  46. public static FbxAnimCurveNode CreateTypedCurveNode(FbxProperty pProperty, FbxScene pScene) {
  47. global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_CreateTypedCurveNode(FbxProperty.getCPtr(pProperty), FbxScene.getCPtr(pScene));
  48. FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false);
  49. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  50. return ret;
  51. }
  52. public uint GetChannelsCount() {
  53. uint ret = NativeMethods.FbxAnimCurveNode_GetChannelsCount(swigCPtr);
  54. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  55. return ret;
  56. }
  57. public int GetChannelIndex(string pChannelName) {
  58. int ret = NativeMethods.FbxAnimCurveNode_GetChannelIndex(swigCPtr, pChannelName);
  59. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  60. return ret;
  61. }
  62. public string GetChannelName(int pChannelId) {
  63. string ret = NativeMethods.FbxAnimCurveNode_GetChannelName(swigCPtr, pChannelId);
  64. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  65. return ret;
  66. }
  67. public FbxAnimCurve CreateCurve(string pCurveNodeName, string pChannel) {
  68. global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_CreateCurve__SWIG_0(swigCPtr, pCurveNodeName, pChannel);
  69. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  70. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  71. return ret;
  72. }
  73. public FbxAnimCurve CreateCurve(string pCurveNodeName, uint pChannelId) {
  74. global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_CreateCurve__SWIG_1(swigCPtr, pCurveNodeName, pChannelId);
  75. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  76. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  77. return ret;
  78. }
  79. public FbxAnimCurve CreateCurve(string pCurveNodeName) {
  80. global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_CreateCurve__SWIG_2(swigCPtr, pCurveNodeName);
  81. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  82. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  83. return ret;
  84. }
  85. public int GetCurveCount(uint pChannelId, string pCurveNodeName) {
  86. int ret = NativeMethods.FbxAnimCurveNode_GetCurveCount__SWIG_0(swigCPtr, pChannelId, pCurveNodeName);
  87. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  88. return ret;
  89. }
  90. public int GetCurveCount(uint pChannelId) {
  91. int ret = NativeMethods.FbxAnimCurveNode_GetCurveCount__SWIG_1(swigCPtr, pChannelId);
  92. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  93. return ret;
  94. }
  95. public FbxAnimCurve GetCurve(uint pChannelId, uint pId, string pCurveNodeName) {
  96. global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_GetCurve__SWIG_0(swigCPtr, pChannelId, pId, pCurveNodeName);
  97. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  98. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  99. return ret;
  100. }
  101. public FbxAnimCurve GetCurve(uint pChannelId, uint pId) {
  102. global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_GetCurve__SWIG_1(swigCPtr, pChannelId, pId);
  103. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  104. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  105. return ret;
  106. }
  107. public FbxAnimCurve GetCurve(uint pChannelId) {
  108. global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_GetCurve__SWIG_2(swigCPtr, pChannelId);
  109. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  110. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  111. return ret;
  112. }
  113. public override int GetHashCode(){
  114. return swigCPtr.Handle.GetHashCode();
  115. }
  116. public bool Equals(FbxAnimCurveNode other) {
  117. if (object.ReferenceEquals(other, null)) { return false; }
  118. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  119. }
  120. public override bool Equals(object obj){
  121. if (object.ReferenceEquals(obj, null)) { return false; }
  122. /* is obj a subclass of this type; if so use our Equals */
  123. var typed = obj as FbxAnimCurveNode;
  124. if (!object.ReferenceEquals(typed, null)) {
  125. return this.Equals(typed);
  126. }
  127. /* are we a subclass of the other type; if so use their Equals */
  128. if (typeof(FbxAnimCurveNode).IsSubclassOf(obj.GetType())) {
  129. return obj.Equals(this);
  130. }
  131. /* types are unrelated; can't be a match */
  132. return false;
  133. }
  134. public static bool operator == (FbxAnimCurveNode a, FbxAnimCurveNode b) {
  135. if (object.ReferenceEquals(a, b)) { return true; }
  136. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  137. return a.Equals(b);
  138. }
  139. public static bool operator != (FbxAnimCurveNode a, FbxAnimCurveNode b) {
  140. return !(a == b);
  141. }
  142. public bool AddChannel(string pChnlName, float pValue) {
  143. bool ret = NativeMethods.FbxAnimCurveNode_AddChannel(swigCPtr, pChnlName, pValue);
  144. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  145. return ret;
  146. }
  147. public void SetChannelValue(string pChnlName, float pValue) {
  148. NativeMethods.FbxAnimCurveNode_SetChannelValue__SWIG_2(swigCPtr, pChnlName, pValue);
  149. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  150. }
  151. public void SetChannelValue(uint pChnlId, float pValue) {
  152. NativeMethods.FbxAnimCurveNode_SetChannelValue__SWIG_3(swigCPtr, pChnlId, pValue);
  153. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  154. }
  155. public float GetChannelValue(string pChnlName, float pInitVal) {
  156. float ret = NativeMethods.FbxAnimCurveNode_GetChannelValue__SWIG_2(swigCPtr, pChnlName, pInitVal);
  157. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  158. return ret;
  159. }
  160. public float GetChannelValue(uint pChnlId, float pInitVal) {
  161. float ret = NativeMethods.FbxAnimCurveNode_GetChannelValue__SWIG_3(swigCPtr, pChnlId, pInitVal);
  162. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  163. return ret;
  164. }
  165. }
  166. }