FbxConstraintAim.cs 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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 FbxConstraintAim : FbxConstraint {
  12. internal FbxConstraintAim(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
  13. // override void Dispose() {base.Dispose();}
  14. public new static FbxConstraintAim Create(FbxManager pManager, string pName) {
  15. global::System.IntPtr cPtr = NativeMethods.FbxConstraintAim_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
  16. FbxConstraintAim ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintAim(cPtr, false);
  17. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  18. return ret;
  19. }
  20. public new static FbxConstraintAim Create(FbxObject pContainer, string pName) {
  21. global::System.IntPtr cPtr = NativeMethods.FbxConstraintAim_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
  22. FbxConstraintAim ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintAim(cPtr, false);
  23. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  24. return ret;
  25. }
  26. public FbxPropertyDouble3 RotationOffset {
  27. get {
  28. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintAim_RotationOffset_get(swigCPtr), false);
  29. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  30. return ret;
  31. }
  32. }
  33. public FbxPropertyInt WorldUpType {
  34. get {
  35. FbxPropertyInt ret = new FbxPropertyInt(NativeMethods.FbxConstraintAim_WorldUpType_get(swigCPtr), false);
  36. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  37. return ret;
  38. }
  39. }
  40. public FbxPropertyDouble3 WorldUpVector {
  41. get {
  42. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintAim_WorldUpVector_get(swigCPtr), false);
  43. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  44. return ret;
  45. }
  46. }
  47. public FbxPropertyDouble3 UpVector {
  48. get {
  49. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintAim_UpVector_get(swigCPtr), false);
  50. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  51. return ret;
  52. }
  53. }
  54. public FbxPropertyDouble3 AimVector {
  55. get {
  56. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintAim_AimVector_get(swigCPtr), false);
  57. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  58. return ret;
  59. }
  60. }
  61. public FbxPropertyBool AffectX {
  62. get {
  63. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintAim_AffectX_get(swigCPtr), false);
  64. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  65. return ret;
  66. }
  67. }
  68. public FbxPropertyBool AffectY {
  69. get {
  70. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintAim_AffectY_get(swigCPtr), false);
  71. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  72. return ret;
  73. }
  74. }
  75. public FbxPropertyBool AffectZ {
  76. get {
  77. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintAim_AffectZ_get(swigCPtr), false);
  78. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  79. return ret;
  80. }
  81. }
  82. public void AddConstraintSource(FbxObject pObject, double pWeight) {
  83. NativeMethods.FbxConstraintAim_AddConstraintSource__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), pWeight);
  84. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  85. }
  86. public void AddConstraintSource(FbxObject pObject) {
  87. NativeMethods.FbxConstraintAim_AddConstraintSource__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject));
  88. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  89. }
  90. public void SetConstrainedObject(FbxObject pObject) {
  91. NativeMethods.FbxConstraintAim_SetConstrainedObject(swigCPtr, FbxObject.getCPtr(pObject));
  92. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  93. }
  94. public void SetWorldUpObject(FbxObject pObject) {
  95. NativeMethods.FbxConstraintAim_SetWorldUpObject(swigCPtr, FbxObject.getCPtr(pObject));
  96. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  97. }
  98. public FbxObject GetWorldUpObject() {
  99. global::System.IntPtr cPtr = NativeMethods.FbxConstraintAim_GetWorldUpObject(swigCPtr);
  100. FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false);
  101. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  102. return ret;
  103. }
  104. public override int GetHashCode(){
  105. return swigCPtr.Handle.GetHashCode();
  106. }
  107. public bool Equals(FbxConstraintAim other) {
  108. if (object.ReferenceEquals(other, null)) { return false; }
  109. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  110. }
  111. public override bool Equals(object obj){
  112. if (object.ReferenceEquals(obj, null)) { return false; }
  113. /* is obj a subclass of this type; if so use our Equals */
  114. var typed = obj as FbxConstraintAim;
  115. if (!object.ReferenceEquals(typed, null)) {
  116. return this.Equals(typed);
  117. }
  118. /* are we a subclass of the other type; if so use their Equals */
  119. if (typeof(FbxConstraintAim).IsSubclassOf(obj.GetType())) {
  120. return obj.Equals(this);
  121. }
  122. /* types are unrelated; can't be a match */
  123. return false;
  124. }
  125. public static bool operator == (FbxConstraintAim a, FbxConstraintAim b) {
  126. if (object.ReferenceEquals(a, b)) { return true; }
  127. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  128. return a.Equals(b);
  129. }
  130. public static bool operator != (FbxConstraintAim a, FbxConstraintAim b) {
  131. return !(a == b);
  132. }
  133. public enum EWorldUp {
  134. eAimAtSceneUp,
  135. eAimAtObjectUp,
  136. eAimAtObjectRotationUp,
  137. eAimAtVector,
  138. eAimAtNone,
  139. eAimAtCount
  140. }
  141. }
  142. }