FbxProperty.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  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 FbxProperty : global::System.IDisposable {
  12. private global::System.Runtime.InteropServices.HandleRef swigCPtr;
  13. protected bool swigCMemOwn;
  14. internal FbxProperty(global::System.IntPtr cPtr, bool cMemoryOwn) {
  15. swigCMemOwn = cMemoryOwn;
  16. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
  17. }
  18. internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxProperty obj) {
  19. return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
  20. }
  21. public virtual void Dispose() {
  22. lock(this) {
  23. if (swigCPtr.Handle != global::System.IntPtr.Zero) {
  24. if (swigCMemOwn) {
  25. swigCMemOwn = false;
  26. throw new global::System.MethodAccessException("C++ destructor does not have public access");
  27. }
  28. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
  29. }
  30. global::System.GC.SuppressFinalize(this);
  31. }
  32. }
  33. public static FbxProperty Create(FbxProperty pCompoundProperty, FbxDataType pDataType, string pName, string pLabel, bool pCheckForDup, out bool pWasFound) {
  34. FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_0(FbxProperty.getCPtr(pCompoundProperty), FbxDataType.getCPtr(pDataType), pName, pLabel, pCheckForDup, out pWasFound), true);
  35. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  36. return ret;
  37. }
  38. public static FbxProperty Create(FbxProperty pCompoundProperty, FbxDataType pDataType, string pName, string pLabel, bool pCheckForDup) {
  39. FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_1(FbxProperty.getCPtr(pCompoundProperty), FbxDataType.getCPtr(pDataType), pName, pLabel, pCheckForDup), true);
  40. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  41. return ret;
  42. }
  43. public static FbxProperty Create(FbxProperty pCompoundProperty, FbxDataType pDataType, string pName, string pLabel) {
  44. FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_2(FbxProperty.getCPtr(pCompoundProperty), FbxDataType.getCPtr(pDataType), pName, pLabel), true);
  45. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  46. return ret;
  47. }
  48. public static FbxProperty Create(FbxProperty pCompoundProperty, FbxDataType pDataType, string pName) {
  49. FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_3(FbxProperty.getCPtr(pCompoundProperty), FbxDataType.getCPtr(pDataType), pName), true);
  50. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  51. return ret;
  52. }
  53. public static FbxProperty Create(FbxObject pObject, FbxDataType pDataType, string pName, string pLabel, bool pCheckForDup, out bool pWasFound) {
  54. FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_4(FbxObject.getCPtr(pObject), FbxDataType.getCPtr(pDataType), pName, pLabel, pCheckForDup, out pWasFound), true);
  55. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  56. return ret;
  57. }
  58. public static FbxProperty Create(FbxObject pObject, FbxDataType pDataType, string pName, string pLabel, bool pCheckForDup) {
  59. FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_5(FbxObject.getCPtr(pObject), FbxDataType.getCPtr(pDataType), pName, pLabel, pCheckForDup), true);
  60. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  61. return ret;
  62. }
  63. public static FbxProperty Create(FbxObject pObject, FbxDataType pDataType, string pName, string pLabel) {
  64. FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_6(FbxObject.getCPtr(pObject), FbxDataType.getCPtr(pDataType), pName, pLabel), true);
  65. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  66. return ret;
  67. }
  68. public static FbxProperty Create(FbxObject pObject, FbxDataType pDataType, string pName) {
  69. FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_7(FbxObject.getCPtr(pObject), FbxDataType.getCPtr(pDataType), pName), true);
  70. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  71. return ret;
  72. }
  73. public void Destroy() {
  74. NativeMethods.FbxProperty_Destroy(swigCPtr);
  75. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  76. }
  77. public void DestroyRecursively() {
  78. NativeMethods.FbxProperty_DestroyRecursively(swigCPtr);
  79. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  80. }
  81. public void DestroyChildren() {
  82. NativeMethods.FbxProperty_DestroyChildren(swigCPtr);
  83. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  84. }
  85. public FbxDataType GetPropertyDataType() {
  86. FbxDataType ret = new FbxDataType(NativeMethods.FbxProperty_GetPropertyDataType(swigCPtr), true);
  87. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  88. return ret;
  89. }
  90. public string GetName() {
  91. string ret = NativeMethods.FbxProperty_GetName(swigCPtr);
  92. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  93. return ret;
  94. }
  95. public string GetHierarchicalName() {
  96. string ret = NativeMethods.FbxProperty_GetHierarchicalName(swigCPtr);
  97. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  98. return ret;
  99. }
  100. public string GetLabel(bool pReturnNameIfEmpty) {
  101. string ret = NativeMethods.FbxProperty_GetLabel__SWIG_0(swigCPtr, pReturnNameIfEmpty);
  102. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  103. return ret;
  104. }
  105. public string GetLabel() {
  106. string ret = NativeMethods.FbxProperty_GetLabel__SWIG_1(swigCPtr);
  107. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  108. return ret;
  109. }
  110. public void SetLabel(string pLabel) {
  111. NativeMethods.FbxProperty_SetLabel(swigCPtr, pLabel);
  112. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  113. }
  114. public FbxObject GetFbxObject() {
  115. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetFbxObject(swigCPtr);
  116. FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false);
  117. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  118. return ret;
  119. }
  120. public void ModifyFlag(FbxPropertyFlags.EFlags pFlag, bool pValue) {
  121. NativeMethods.FbxProperty_ModifyFlag(swigCPtr, (int)pFlag, pValue);
  122. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  123. }
  124. public bool GetFlag(FbxPropertyFlags.EFlags pFlag) {
  125. bool ret = NativeMethods.FbxProperty_GetFlag(swigCPtr, (int)pFlag);
  126. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  127. return ret;
  128. }
  129. public FbxPropertyFlags.EFlags GetFlags() {
  130. FbxPropertyFlags.EFlags ret = (FbxPropertyFlags.EFlags)NativeMethods.FbxProperty_GetFlags(swigCPtr);
  131. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  132. return ret;
  133. }
  134. public FbxPropertyFlags.EInheritType GetFlagInheritType(FbxPropertyFlags.EFlags pFlag) {
  135. FbxPropertyFlags.EInheritType ret = (FbxPropertyFlags.EInheritType)NativeMethods.FbxProperty_GetFlagInheritType(swigCPtr, (int)pFlag);
  136. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  137. return ret;
  138. }
  139. public bool SetFlagInheritType(FbxPropertyFlags.EFlags pFlag, FbxPropertyFlags.EInheritType pType) {
  140. bool ret = NativeMethods.FbxProperty_SetFlagInheritType(swigCPtr, (int)pFlag, (int)pType);
  141. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  142. return ret;
  143. }
  144. public bool ModifiedFlag(FbxPropertyFlags.EFlags pFlag) {
  145. bool ret = NativeMethods.FbxProperty_ModifiedFlag(swigCPtr, (int)pFlag);
  146. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  147. return ret;
  148. }
  149. private bool _equals(FbxProperty pProperty) {
  150. bool ret = NativeMethods.FbxProperty__equals(swigCPtr, FbxProperty.getCPtr(pProperty));
  151. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  152. return ret;
  153. }
  154. public bool IsValid() {
  155. bool ret = NativeMethods.FbxProperty_IsValid(swigCPtr);
  156. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  157. return ret;
  158. }
  159. public FbxAnimCurveNode GetCurveNode(bool pCreate) {
  160. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_0(swigCPtr, pCreate);
  161. FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false);
  162. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  163. return ret;
  164. }
  165. public FbxAnimCurveNode GetCurveNode() {
  166. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_1(swigCPtr);
  167. FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false);
  168. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  169. return ret;
  170. }
  171. public FbxAnimCurveNode GetCurveNode(FbxAnimStack pAnimStack, bool pCreate) {
  172. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_2(swigCPtr, FbxAnimStack.getCPtr(pAnimStack), pCreate);
  173. FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false);
  174. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  175. return ret;
  176. }
  177. public FbxAnimCurveNode GetCurveNode(FbxAnimStack pAnimStack) {
  178. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_3(swigCPtr, FbxAnimStack.getCPtr(pAnimStack));
  179. FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false);
  180. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  181. return ret;
  182. }
  183. public FbxAnimCurveNode GetCurveNode(FbxAnimLayer pAnimLayer, bool pCreate) {
  184. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_4(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer), pCreate);
  185. FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false);
  186. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  187. return ret;
  188. }
  189. public FbxAnimCurveNode GetCurveNode(FbxAnimLayer pAnimLayer) {
  190. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_5(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer));
  191. FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false);
  192. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  193. return ret;
  194. }
  195. public FbxAnimCurve GetCurve(FbxAnimLayer pAnimLayer, bool pCreate) {
  196. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurve__SWIG_0(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer), pCreate);
  197. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  198. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  199. return ret;
  200. }
  201. public FbxAnimCurve GetCurve(FbxAnimLayer pAnimLayer) {
  202. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurve__SWIG_1(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer));
  203. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  204. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  205. return ret;
  206. }
  207. public FbxAnimCurve GetCurve(FbxAnimLayer pAnimLayer, string pChannel, bool pCreate) {
  208. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurve__SWIG_2(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer), pChannel, pCreate);
  209. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  210. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  211. return ret;
  212. }
  213. public FbxAnimCurve GetCurve(FbxAnimLayer pAnimLayer, string pChannel) {
  214. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurve__SWIG_3(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer), pChannel);
  215. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  216. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  217. return ret;
  218. }
  219. public FbxAnimCurve GetCurve(FbxAnimLayer pAnimLayer, string pName, string pChannel, bool pCreate) {
  220. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurve__SWIG_4(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer), pName, pChannel, pCreate);
  221. FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
  222. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  223. return ret;
  224. }
  225. public bool ConnectSrcObject(FbxObject pObject, FbxConnection.EType pType) {
  226. bool ret = NativeMethods.FbxProperty_ConnectSrcObject__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), (int)pType);
  227. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  228. return ret;
  229. }
  230. public bool ConnectSrcObject(FbxObject pObject) {
  231. bool ret = NativeMethods.FbxProperty_ConnectSrcObject__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject));
  232. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  233. return ret;
  234. }
  235. public bool IsConnectedSrcObject(FbxObject pObject) {
  236. bool ret = NativeMethods.FbxProperty_IsConnectedSrcObject(swigCPtr, FbxObject.getCPtr(pObject));
  237. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  238. return ret;
  239. }
  240. public bool DisconnectSrcObject(FbxObject pObject) {
  241. bool ret = NativeMethods.FbxProperty_DisconnectSrcObject(swigCPtr, FbxObject.getCPtr(pObject));
  242. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  243. return ret;
  244. }
  245. public bool DisconnectAllSrcObject() {
  246. bool ret = NativeMethods.FbxProperty_DisconnectAllSrcObject(swigCPtr);
  247. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  248. return ret;
  249. }
  250. public int GetSrcObjectCount() {
  251. int ret = NativeMethods.FbxProperty_GetSrcObjectCount(swigCPtr);
  252. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  253. return ret;
  254. }
  255. public FbxObject GetSrcObject(int pIndex) {
  256. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetSrcObject__SWIG_0(swigCPtr, pIndex);
  257. FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false);
  258. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  259. return ret;
  260. }
  261. public FbxObject GetSrcObject() {
  262. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetSrcObject__SWIG_1(swigCPtr);
  263. FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false);
  264. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  265. return ret;
  266. }
  267. private FbxObject FindSrcObjectInternal(string pName, int pStartIndex) {
  268. global::System.IntPtr cPtr = NativeMethods.FbxProperty_FindSrcObjectInternal(swigCPtr, pName, pStartIndex);
  269. FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false);
  270. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  271. return ret;
  272. }
  273. public bool ConnectDstObject(FbxObject pObject, FbxConnection.EType pType) {
  274. bool ret = NativeMethods.FbxProperty_ConnectDstObject__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), (int)pType);
  275. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  276. return ret;
  277. }
  278. public bool ConnectDstObject(FbxObject pObject) {
  279. bool ret = NativeMethods.FbxProperty_ConnectDstObject__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject));
  280. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  281. return ret;
  282. }
  283. public bool IsConnectedDstObject(FbxObject pObject) {
  284. bool ret = NativeMethods.FbxProperty_IsConnectedDstObject(swigCPtr, FbxObject.getCPtr(pObject));
  285. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  286. return ret;
  287. }
  288. public bool DisconnectDstObject(FbxObject pObject) {
  289. bool ret = NativeMethods.FbxProperty_DisconnectDstObject(swigCPtr, FbxObject.getCPtr(pObject));
  290. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  291. return ret;
  292. }
  293. public bool DisconnectAllDstObject() {
  294. bool ret = NativeMethods.FbxProperty_DisconnectAllDstObject(swigCPtr);
  295. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  296. return ret;
  297. }
  298. public int GetDstObjectCount() {
  299. int ret = NativeMethods.FbxProperty_GetDstObjectCount(swigCPtr);
  300. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  301. return ret;
  302. }
  303. public FbxObject GetDstObject(int pIndex) {
  304. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetDstObject__SWIG_0(swigCPtr, pIndex);
  305. FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false);
  306. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  307. return ret;
  308. }
  309. public FbxObject GetDstObject() {
  310. global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetDstObject__SWIG_1(swigCPtr);
  311. FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false);
  312. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  313. return ret;
  314. }
  315. private FbxObject FindDstObjectInternal(string pName, int pStartIndex) {
  316. global::System.IntPtr cPtr = NativeMethods.FbxProperty_FindDstObjectInternal(swigCPtr, pName, pStartIndex);
  317. FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false);
  318. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  319. return ret;
  320. }
  321. public bool Equals(FbxProperty other) {
  322. if (object.ReferenceEquals(other, null)) { return false; }
  323. return _equals(other);
  324. }
  325. public override bool Equals(object obj){
  326. if (object.ReferenceEquals(obj, null)) { return false; }
  327. /* is obj a subclass of this type; if so use our Equals */
  328. var typed = obj as FbxProperty;
  329. if (!object.ReferenceEquals(typed, null)) {
  330. return this.Equals(typed);
  331. }
  332. /* are we a subclass of the other type; if so use their Equals */
  333. if (typeof(FbxProperty).IsSubclassOf(obj.GetType())) {
  334. return obj.Equals(this);
  335. }
  336. /* types are unrelated; can't be a match */
  337. return false;
  338. }
  339. public static bool operator == (FbxProperty a, FbxProperty b) {
  340. if (object.ReferenceEquals(a, b)) { return true; }
  341. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  342. return a.Equals(b);
  343. }
  344. public static bool operator != (FbxProperty a, FbxProperty b) {
  345. return !(a == b);
  346. }
  347. public override int GetHashCode() {
  348. uint hash = (uint) GetName().GetHashCode();
  349. hash = (hash << 11) | (hash >> 21);
  350. hash ^= (uint) GetPropertyDataType().GetHashCode();
  351. var obj = GetFbxObject();
  352. if (obj != null) {
  353. hash = (hash << 11) | (hash >> 21);
  354. hash ^= (uint) obj.GetHashCode();
  355. }
  356. return (int) hash;
  357. }
  358. public override string ToString() {
  359. return GetName();
  360. }
  361. public FbxObject FindSrcObject(string pName, int pStartIndex = 0) {
  362. if (pName == null) { throw new System.ArgumentNullException("pName"); }
  363. return FindSrcObjectInternal(pName, pStartIndex);
  364. }
  365. public FbxObject FindDstObject(string pName, int pStartIndex = 0) {
  366. if (pName == null) { throw new System.ArgumentNullException("pName"); }
  367. return FindDstObjectInternal(pName, pStartIndex);
  368. }
  369. public float GetFloat() {
  370. float ret = NativeMethods.FbxProperty_GetFloat(swigCPtr);
  371. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  372. return ret;
  373. }
  374. public bool GetBool() {
  375. bool ret = NativeMethods.FbxProperty_GetBool(swigCPtr);
  376. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  377. return ret;
  378. }
  379. public double GetDouble() {
  380. double ret = NativeMethods.FbxProperty_GetDouble(swigCPtr);
  381. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  382. return ret;
  383. }
  384. public FbxDouble3 GetFbxDouble3() {
  385. var ret = NativeMethods.FbxProperty_GetFbxDouble3(swigCPtr);
  386. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  387. return ret;
  388. }
  389. public string GetString() {
  390. string ret = NativeMethods.FbxProperty_GetString(swigCPtr);
  391. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  392. return ret;
  393. }
  394. public FbxColor GetFbxColor() {
  395. var ret = NativeMethods.FbxProperty_GetFbxColor(swigCPtr);
  396. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  397. return ret;
  398. }
  399. public int GetInt() {
  400. int ret = NativeMethods.FbxProperty_GetInt(swigCPtr);
  401. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  402. return ret;
  403. }
  404. public bool Set(FbxColor pValue) {
  405. bool ret = NativeMethods.FbxProperty_Set__SWIG_1(swigCPtr, pValue);
  406. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  407. return ret;
  408. }
  409. public bool Set(float pValue) {
  410. bool ret = NativeMethods.FbxProperty_Set__SWIG_2(swigCPtr, pValue);
  411. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  412. return ret;
  413. }
  414. }
  415. }