Importer.cs 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.1
  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 Importer : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal Importer(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(Importer obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~Importer() {
  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_Importer(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public Importer() : this(AssimpPINVOKE.new_Importer__SWIG_0(), true) {
  36. }
  37. public Importer(Importer other) : this(AssimpPINVOKE.new_Importer__SWIG_1(Importer.getCPtr(other)), true) {
  38. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  39. }
  40. public int GetPropertyInteger(string szName, int iErrorReturn) {
  41. int ret = AssimpPINVOKE.Importer_GetPropertyInteger__SWIG_0(swigCPtr, szName, iErrorReturn);
  42. return ret;
  43. }
  44. public int GetPropertyInteger(string szName) {
  45. int ret = AssimpPINVOKE.Importer_GetPropertyInteger__SWIG_1(swigCPtr, szName);
  46. return ret;
  47. }
  48. public bool GetPropertyBool(string szName, bool bErrorReturn) {
  49. bool ret = AssimpPINVOKE.Importer_GetPropertyBool__SWIG_0(swigCPtr, szName, bErrorReturn);
  50. return ret;
  51. }
  52. public bool GetPropertyBool(string szName) {
  53. bool ret = AssimpPINVOKE.Importer_GetPropertyBool__SWIG_1(swigCPtr, szName);
  54. return ret;
  55. }
  56. public float GetPropertyFloat(string szName, float fErrorReturn) {
  57. float ret = AssimpPINVOKE.Importer_GetPropertyFloat__SWIG_0(swigCPtr, szName, fErrorReturn);
  58. return ret;
  59. }
  60. public float GetPropertyFloat(string szName) {
  61. float ret = AssimpPINVOKE.Importer_GetPropertyFloat__SWIG_1(swigCPtr, szName);
  62. return ret;
  63. }
  64. public string GetPropertyString(string szName, string sErrorReturn) {
  65. string ret = AssimpPINVOKE.Importer_GetPropertyString__SWIG_0(swigCPtr, szName, sErrorReturn);
  66. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  67. return ret;
  68. }
  69. public string GetPropertyString(string szName) {
  70. string ret = AssimpPINVOKE.Importer_GetPropertyString__SWIG_1(swigCPtr, szName);
  71. return ret;
  72. }
  73. public bool IsDefaultIOHandler() {
  74. bool ret = AssimpPINVOKE.Importer_IsDefaultIOHandler(swigCPtr);
  75. return ret;
  76. }
  77. public void SetProgressHandler(ProgressHandler pHandler) {
  78. AssimpPINVOKE.Importer_SetProgressHandler(swigCPtr, ProgressHandler.getCPtr(pHandler));
  79. }
  80. public ProgressHandler GetProgressHandler() {
  81. IntPtr cPtr = AssimpPINVOKE.Importer_GetProgressHandler(swigCPtr);
  82. ProgressHandler ret = (cPtr == IntPtr.Zero) ? null : new ProgressHandler(cPtr, false);
  83. return ret;
  84. }
  85. public bool IsDefaultProgressHandler() {
  86. bool ret = AssimpPINVOKE.Importer_IsDefaultProgressHandler(swigCPtr);
  87. return ret;
  88. }
  89. public bool ValidateFlags(aiPostProcessSteps pFlags) {
  90. bool ret = AssimpPINVOKE.Importer_ValidateFlags(swigCPtr, (uint)pFlags);
  91. return ret;
  92. }
  93. public aiScene ReadFile(string pFile, aiPostProcessSteps pFlags) {
  94. IntPtr cPtr = AssimpPINVOKE.Importer_ReadFile__SWIG_0(swigCPtr, pFile, (uint)pFlags);
  95. aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
  96. return ret;
  97. }
  98. public void FreeScene() {
  99. AssimpPINVOKE.Importer_FreeScene(swigCPtr);
  100. }
  101. public string GetErrorString() {
  102. string ret = AssimpPINVOKE.Importer_GetErrorString(swigCPtr);
  103. return ret;
  104. }
  105. public bool IsExtensionSupported(string szExtension) {
  106. bool ret = AssimpPINVOKE.Importer_IsExtensionSupported__SWIG_0(swigCPtr, szExtension);
  107. return ret;
  108. }
  109. public void GetExtensionList(aiString szOut) {
  110. AssimpPINVOKE.Importer_GetExtensionList__SWIG_0(swigCPtr, aiString.getCPtr(szOut));
  111. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  112. }
  113. public void GetExtensionList(SWIGTYPE_p_std__string szOut) {
  114. AssimpPINVOKE.Importer_GetExtensionList__SWIG_1(swigCPtr, SWIGTYPE_p_std__string.getCPtr(szOut));
  115. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  116. }
  117. public aiScene GetScene() {
  118. IntPtr cPtr = AssimpPINVOKE.Importer_GetScene(swigCPtr);
  119. aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
  120. return ret;
  121. }
  122. public aiScene GetOrphanedScene() {
  123. IntPtr cPtr = AssimpPINVOKE.Importer_GetOrphanedScene(swigCPtr);
  124. aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
  125. return ret;
  126. }
  127. public void GetMemoryRequirements(aiMemoryInfo arg0) {
  128. AssimpPINVOKE.Importer_GetMemoryRequirements(swigCPtr, aiMemoryInfo.getCPtr(arg0));
  129. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  130. }
  131. public void SetExtraVerbose(bool bDo) {
  132. AssimpPINVOKE.Importer_SetExtraVerbose(swigCPtr, bDo);
  133. }
  134. public string GetExtensionList() {
  135. string ret = AssimpPINVOKE.Importer_GetExtensionList__SWIG_2(swigCPtr);
  136. return ret;
  137. }
  138. }