FbxBlendShapeChannel.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 FbxBlendShapeChannel : FbxSubDeformer {
  12. internal FbxBlendShapeChannel(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
  13. // override void Dispose() {base.Dispose();}
  14. public new static FbxBlendShapeChannel Create(FbxManager pManager, string pName) {
  15. global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
  16. FbxBlendShapeChannel ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false);
  17. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  18. return ret;
  19. }
  20. public new static FbxBlendShapeChannel Create(FbxObject pContainer, string pName) {
  21. global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
  22. FbxBlendShapeChannel ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false);
  23. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  24. return ret;
  25. }
  26. public FbxPropertyDouble DeformPercent {
  27. get {
  28. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxBlendShapeChannel_DeformPercent_get(swigCPtr), false);
  29. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  30. return ret;
  31. }
  32. }
  33. public bool SetBlendShapeDeformer(FbxBlendShape pBlendShape) {
  34. bool ret = NativeMethods.FbxBlendShapeChannel_SetBlendShapeDeformer(swigCPtr, FbxBlendShape.getCPtr(pBlendShape));
  35. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  36. return ret;
  37. }
  38. public FbxBlendShape GetBlendShapeDeformer() {
  39. global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_GetBlendShapeDeformer(swigCPtr);
  40. FbxBlendShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShape(cPtr, false);
  41. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  42. return ret;
  43. }
  44. public bool AddTargetShape(FbxShape pShape, double pFullDeformPercent) {
  45. bool ret = NativeMethods.FbxBlendShapeChannel_AddTargetShape__SWIG_0(swigCPtr, FbxShape.getCPtr(pShape), pFullDeformPercent);
  46. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  47. return ret;
  48. }
  49. public bool AddTargetShape(FbxShape pShape) {
  50. bool ret = NativeMethods.FbxBlendShapeChannel_AddTargetShape__SWIG_1(swigCPtr, FbxShape.getCPtr(pShape));
  51. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  52. return ret;
  53. }
  54. public FbxShape RemoveTargetShape(FbxShape pShape) {
  55. global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_RemoveTargetShape(swigCPtr, FbxShape.getCPtr(pShape));
  56. FbxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxShape(cPtr, false);
  57. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  58. return ret;
  59. }
  60. public int GetTargetShapeCount() {
  61. int ret = NativeMethods.FbxBlendShapeChannel_GetTargetShapeCount(swigCPtr);
  62. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  63. return ret;
  64. }
  65. public FbxShape GetTargetShape(int pIndex) {
  66. global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_GetTargetShape(swigCPtr, pIndex);
  67. FbxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxShape(cPtr, false);
  68. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  69. return ret;
  70. }
  71. public int GetTargetShapeIndex(FbxShape pShape) {
  72. int ret = NativeMethods.FbxBlendShapeChannel_GetTargetShapeIndex(swigCPtr, FbxShape.getCPtr(pShape));
  73. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  74. return ret;
  75. }
  76. public override int GetHashCode(){
  77. return swigCPtr.Handle.GetHashCode();
  78. }
  79. public bool Equals(FbxBlendShapeChannel other) {
  80. if (object.ReferenceEquals(other, null)) { return false; }
  81. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  82. }
  83. public override bool Equals(object obj){
  84. if (object.ReferenceEquals(obj, null)) { return false; }
  85. /* is obj a subclass of this type; if so use our Equals */
  86. var typed = obj as FbxBlendShapeChannel;
  87. if (!object.ReferenceEquals(typed, null)) {
  88. return this.Equals(typed);
  89. }
  90. /* are we a subclass of the other type; if so use their Equals */
  91. if (typeof(FbxBlendShapeChannel).IsSubclassOf(obj.GetType())) {
  92. return obj.Equals(this);
  93. }
  94. /* types are unrelated; can't be a match */
  95. return false;
  96. }
  97. public static bool operator == (FbxBlendShapeChannel a, FbxBlendShapeChannel b) {
  98. if (object.ReferenceEquals(a, b)) { return true; }
  99. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  100. return a.Equals(b);
  101. }
  102. public static bool operator != (FbxBlendShapeChannel a, FbxBlendShapeChannel b) {
  103. return !(a == b);
  104. }
  105. }
  106. }