25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

132 lines
3.7 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 aiNode : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiNode(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiNode obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiNode() {
  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_aiNode(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public aiNodeVector mChildren { get { return GetmChildren(); } }
  36. public UintVector mMeshes { get { return GetmMeshes(); } }
  37. public aiString mName {
  38. set {
  39. AssimpPINVOKE.aiNode_mName_set(swigCPtr, aiString.getCPtr(value));
  40. }
  41. get {
  42. IntPtr cPtr = AssimpPINVOKE.aiNode_mName_get(swigCPtr);
  43. aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
  44. return ret;
  45. }
  46. }
  47. public aiMatrix4x4 mTransformation {
  48. set {
  49. AssimpPINVOKE.aiNode_mTransformation_set(swigCPtr, aiMatrix4x4.getCPtr(value));
  50. }
  51. get {
  52. IntPtr cPtr = AssimpPINVOKE.aiNode_mTransformation_get(swigCPtr);
  53. aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false);
  54. return ret;
  55. }
  56. }
  57. public aiNode mParent {
  58. set {
  59. AssimpPINVOKE.aiNode_mParent_set(swigCPtr, aiNode.getCPtr(value));
  60. }
  61. get {
  62. IntPtr cPtr = AssimpPINVOKE.aiNode_mParent_get(swigCPtr);
  63. aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
  64. return ret;
  65. }
  66. }
  67. public uint mNumChildren {
  68. set {
  69. AssimpPINVOKE.aiNode_mNumChildren_set(swigCPtr, value);
  70. }
  71. get {
  72. uint ret = AssimpPINVOKE.aiNode_mNumChildren_get(swigCPtr);
  73. return ret;
  74. }
  75. }
  76. public uint mNumMeshes {
  77. set {
  78. AssimpPINVOKE.aiNode_mNumMeshes_set(swigCPtr, value);
  79. }
  80. get {
  81. uint ret = AssimpPINVOKE.aiNode_mNumMeshes_get(swigCPtr);
  82. return ret;
  83. }
  84. }
  85. public aiNode() : this(AssimpPINVOKE.new_aiNode__SWIG_0(), true) {
  86. }
  87. public aiNode(string name) : this(AssimpPINVOKE.new_aiNode__SWIG_1(name), true) {
  88. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  89. }
  90. public aiNode FindNode(aiString name) {
  91. IntPtr cPtr = AssimpPINVOKE.aiNode_FindNode__SWIG_0(swigCPtr, aiString.getCPtr(name));
  92. aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
  93. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  94. return ret;
  95. }
  96. public aiNode FindNode(string name) {
  97. IntPtr cPtr = AssimpPINVOKE.aiNode_FindNode__SWIG_1(swigCPtr, name);
  98. aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
  99. return ret;
  100. }
  101. private aiNodeVector GetmChildren() {
  102. IntPtr cPtr = AssimpPINVOKE.aiNode_GetmChildren(swigCPtr);
  103. aiNodeVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeVector(cPtr, true);
  104. return ret;
  105. }
  106. private UintVector GetmMeshes() {
  107. IntPtr cPtr = AssimpPINVOKE.aiNode_GetmMeshes(swigCPtr);
  108. UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
  109. return ret;
  110. }
  111. }