Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

96 lignes
2.9 KiB

  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.8
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. using System;
  9. using System.Runtime.InteropServices;
  10. public class aiQuatKey : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiQuatKey(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiQuatKey obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiQuatKey() {
  21. Dispose();
  22. }
  23. public virtual void Dispose() {
  24. lock(this) {
  25. if (swigCPtr.Handle != IntPtr.Zero) {
  26. if (swigCMemOwn) {
  27. swigCMemOwn = false;
  28. AssimpPINVOKE.delete_aiQuatKey(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public double mTime {
  36. set {
  37. AssimpPINVOKE.aiQuatKey_mTime_set(swigCPtr, value);
  38. }
  39. get {
  40. double ret = AssimpPINVOKE.aiQuatKey_mTime_get(swigCPtr);
  41. return ret;
  42. }
  43. }
  44. public aiQuaternion mValue {
  45. set {
  46. AssimpPINVOKE.aiQuatKey_mValue_set(swigCPtr, aiQuaternion.getCPtr(value));
  47. }
  48. get {
  49. IntPtr cPtr = AssimpPINVOKE.aiQuatKey_mValue_get(swigCPtr);
  50. aiQuaternion ret = (cPtr == IntPtr.Zero) ? null : new aiQuaternion(cPtr, false);
  51. return ret;
  52. }
  53. }
  54. public aiQuatKey() : this(AssimpPINVOKE.new_aiQuatKey__SWIG_0(), true) {
  55. }
  56. public aiQuatKey(double time, aiQuaternion value) : this(AssimpPINVOKE.new_aiQuatKey__SWIG_1(time, aiQuaternion.getCPtr(value)), true) {
  57. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  58. }
  59. public bool __equal__(aiQuatKey o) {
  60. bool ret = AssimpPINVOKE.aiQuatKey___equal__(swigCPtr, aiQuatKey.getCPtr(o));
  61. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  62. return ret;
  63. }
  64. public bool __nequal__(aiQuatKey o) {
  65. bool ret = AssimpPINVOKE.aiQuatKey___nequal__(swigCPtr, aiQuatKey.getCPtr(o));
  66. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  67. return ret;
  68. }
  69. public bool __smaller__(aiQuatKey o) {
  70. bool ret = AssimpPINVOKE.aiQuatKey___smaller__(swigCPtr, aiQuatKey.getCPtr(o));
  71. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  72. return ret;
  73. }
  74. public bool __greater__(aiQuatKey o) {
  75. bool ret = AssimpPINVOKE.aiQuatKey___greater__(swigCPtr, aiQuatKey.getCPtr(o));
  76. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  77. return ret;
  78. }
  79. }