FbxConstraintScale.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 FbxConstraintScale : FbxConstraint {
  12. internal FbxConstraintScale(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
  13. // override void Dispose() {base.Dispose();}
  14. public new static FbxConstraintScale Create(FbxManager pManager, string pName) {
  15. global::System.IntPtr cPtr = NativeMethods.FbxConstraintScale_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
  16. FbxConstraintScale ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintScale(cPtr, false);
  17. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  18. return ret;
  19. }
  20. public new static FbxConstraintScale Create(FbxObject pContainer, string pName) {
  21. global::System.IntPtr cPtr = NativeMethods.FbxConstraintScale_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
  22. FbxConstraintScale ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintScale(cPtr, false);
  23. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  24. return ret;
  25. }
  26. public FbxPropertyBool AffectX {
  27. get {
  28. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintScale_AffectX_get(swigCPtr), false);
  29. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  30. return ret;
  31. }
  32. }
  33. public FbxPropertyBool AffectY {
  34. get {
  35. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintScale_AffectY_get(swigCPtr), false);
  36. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  37. return ret;
  38. }
  39. }
  40. public FbxPropertyBool AffectZ {
  41. get {
  42. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintScale_AffectZ_get(swigCPtr), false);
  43. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  44. return ret;
  45. }
  46. }
  47. public FbxPropertyDouble3 Scaling {
  48. get {
  49. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintScale_Scaling_get(swigCPtr), false);
  50. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  51. return ret;
  52. }
  53. }
  54. public void AddConstraintSource(FbxObject pObject, double pWeight) {
  55. NativeMethods.FbxConstraintScale_AddConstraintSource__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), pWeight);
  56. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  57. }
  58. public void AddConstraintSource(FbxObject pObject) {
  59. NativeMethods.FbxConstraintScale_AddConstraintSource__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject));
  60. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  61. }
  62. public void SetConstrainedObject(FbxObject pObject) {
  63. NativeMethods.FbxConstraintScale_SetConstrainedObject(swigCPtr, FbxObject.getCPtr(pObject));
  64. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  65. }
  66. public override int GetHashCode(){
  67. return swigCPtr.Handle.GetHashCode();
  68. }
  69. public bool Equals(FbxConstraintScale other) {
  70. if (object.ReferenceEquals(other, null)) { return false; }
  71. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  72. }
  73. public override bool Equals(object obj){
  74. if (object.ReferenceEquals(obj, null)) { return false; }
  75. /* is obj a subclass of this type; if so use our Equals */
  76. var typed = obj as FbxConstraintScale;
  77. if (!object.ReferenceEquals(typed, null)) {
  78. return this.Equals(typed);
  79. }
  80. /* are we a subclass of the other type; if so use their Equals */
  81. if (typeof(FbxConstraintScale).IsSubclassOf(obj.GetType())) {
  82. return obj.Equals(this);
  83. }
  84. /* types are unrelated; can't be a match */
  85. return false;
  86. }
  87. public static bool operator == (FbxConstraintScale a, FbxConstraintScale b) {
  88. if (object.ReferenceEquals(a, b)) { return true; }
  89. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  90. return a.Equals(b);
  91. }
  92. public static bool operator != (FbxConstraintScale a, FbxConstraintScale b) {
  93. return !(a == b);
  94. }
  95. }
  96. }