FbxGeometry.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 FbxGeometry : FbxGeometryBase {
  12. internal FbxGeometry(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
  13. // override void Dispose() {base.Dispose();}
  14. public new static FbxGeometry Create(FbxManager pManager, string pName) {
  15. global::System.IntPtr cPtr = NativeMethods.FbxGeometry_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
  16. FbxGeometry ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGeometry(cPtr, false);
  17. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  18. return ret;
  19. }
  20. public new static FbxGeometry Create(FbxObject pContainer, string pName) {
  21. global::System.IntPtr cPtr = NativeMethods.FbxGeometry_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
  22. FbxGeometry ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGeometry(cPtr, false);
  23. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  24. return ret;
  25. }
  26. public int AddDeformer(FbxDeformer pDeformer) {
  27. int ret = NativeMethods.FbxGeometry_AddDeformer(swigCPtr, FbxDeformer.getCPtr(pDeformer));
  28. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  29. return ret;
  30. }
  31. public int GetDeformerCount() {
  32. int ret = NativeMethods.FbxGeometry_GetDeformerCount__SWIG_0(swigCPtr);
  33. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  34. return ret;
  35. }
  36. public FbxDeformer GetDeformer(int pIndex, FbxStatus pStatus) {
  37. global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_0(swigCPtr, pIndex, FbxStatus.getCPtr(pStatus));
  38. FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false);
  39. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  40. return ret;
  41. }
  42. public FbxDeformer GetDeformer(int pIndex) {
  43. global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_1(swigCPtr, pIndex);
  44. FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false);
  45. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  46. return ret;
  47. }
  48. public int GetDeformerCount(FbxDeformer.EDeformerType pType) {
  49. int ret = NativeMethods.FbxGeometry_GetDeformerCount__SWIG_1(swigCPtr, (int)pType);
  50. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  51. return ret;
  52. }
  53. public FbxDeformer GetDeformer(int pIndex, FbxDeformer.EDeformerType pType, FbxStatus pStatus) {
  54. global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_2(swigCPtr, pIndex, (int)pType, FbxStatus.getCPtr(pStatus));
  55. FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false);
  56. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  57. return ret;
  58. }
  59. public FbxDeformer GetDeformer(int pIndex, FbxDeformer.EDeformerType pType) {
  60. global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_3(swigCPtr, pIndex, (int)pType);
  61. FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false);
  62. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  63. return ret;
  64. }
  65. public override int GetHashCode(){
  66. return swigCPtr.Handle.GetHashCode();
  67. }
  68. public bool Equals(FbxGeometry other) {
  69. if (object.ReferenceEquals(other, null)) { return false; }
  70. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  71. }
  72. public override bool Equals(object obj){
  73. if (object.ReferenceEquals(obj, null)) { return false; }
  74. /* is obj a subclass of this type; if so use our Equals */
  75. var typed = obj as FbxGeometry;
  76. if (!object.ReferenceEquals(typed, null)) {
  77. return this.Equals(typed);
  78. }
  79. /* are we a subclass of the other type; if so use their Equals */
  80. if (typeof(FbxGeometry).IsSubclassOf(obj.GetType())) {
  81. return obj.Equals(this);
  82. }
  83. /* types are unrelated; can't be a match */
  84. return false;
  85. }
  86. public static bool operator == (FbxGeometry a, FbxGeometry b) {
  87. if (object.ReferenceEquals(a, b)) { return true; }
  88. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  89. return a.Equals(b);
  90. }
  91. public static bool operator != (FbxGeometry a, FbxGeometry b) {
  92. return !(a == b);
  93. }
  94. public FbxBlendShape GetBlendShapeDeformer(int pIndex, FbxStatus pStatus) {
  95. global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetBlendShapeDeformer__SWIG_0(swigCPtr, pIndex, FbxStatus.getCPtr(pStatus));
  96. FbxBlendShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShape(cPtr, false);
  97. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  98. return ret;
  99. }
  100. public FbxBlendShape GetBlendShapeDeformer(int pIndex) {
  101. global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetBlendShapeDeformer__SWIG_1(swigCPtr, pIndex);
  102. FbxBlendShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShape(cPtr, false);
  103. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  104. return ret;
  105. }
  106. }
  107. }