You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Importer.cs 7.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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 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 aiScene GetScene() {
  106. IntPtr cPtr = AssimpPINVOKE.Importer_GetScene(swigCPtr);
  107. aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
  108. return ret;
  109. }
  110. public aiScene GetOrphanedScene() {
  111. IntPtr cPtr = AssimpPINVOKE.Importer_GetOrphanedScene(swigCPtr);
  112. aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
  113. return ret;
  114. }
  115. public bool IsExtensionSupported(string szExtension) {
  116. bool ret = AssimpPINVOKE.Importer_IsExtensionSupported__SWIG_0(swigCPtr, szExtension);
  117. return ret;
  118. }
  119. public void GetExtensionList(aiString szOut) {
  120. AssimpPINVOKE.Importer_GetExtensionList__SWIG_0(swigCPtr, aiString.getCPtr(szOut));
  121. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  122. }
  123. public void GetExtensionList(SWIGTYPE_p_std__string szOut) {
  124. AssimpPINVOKE.Importer_GetExtensionList__SWIG_1(swigCPtr, SWIGTYPE_p_std__string.getCPtr(szOut));
  125. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  126. }
  127. public uint GetImporterCount() {
  128. uint ret = AssimpPINVOKE.Importer_GetImporterCount(swigCPtr);
  129. return ret;
  130. }
  131. public SWIGTYPE_p_aiImporterDesc GetImporterInfo(uint index) {
  132. IntPtr cPtr = AssimpPINVOKE.Importer_GetImporterInfo(swigCPtr, index);
  133. SWIGTYPE_p_aiImporterDesc ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_aiImporterDesc(cPtr, false);
  134. return ret;
  135. }
  136. public SWIGTYPE_p_Assimp__BaseImporter GetImporter(uint index) {
  137. IntPtr cPtr = AssimpPINVOKE.Importer_GetImporter__SWIG_0(swigCPtr, index);
  138. SWIGTYPE_p_Assimp__BaseImporter ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Assimp__BaseImporter(cPtr, false);
  139. return ret;
  140. }
  141. public SWIGTYPE_p_Assimp__BaseImporter GetImporter(string szExtension) {
  142. IntPtr cPtr = AssimpPINVOKE.Importer_GetImporter__SWIG_1(swigCPtr, szExtension);
  143. SWIGTYPE_p_Assimp__BaseImporter ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Assimp__BaseImporter(cPtr, false);
  144. return ret;
  145. }
  146. public uint GetImporterIndex(string szExtension) {
  147. uint ret = AssimpPINVOKE.Importer_GetImporterIndex(swigCPtr, szExtension);
  148. return ret;
  149. }
  150. public void GetMemoryRequirements(aiMemoryInfo arg0) {
  151. AssimpPINVOKE.Importer_GetMemoryRequirements(swigCPtr, aiMemoryInfo.getCPtr(arg0));
  152. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  153. }
  154. public void SetExtraVerbose(bool bDo) {
  155. AssimpPINVOKE.Importer_SetExtraVerbose(swigCPtr, bDo);
  156. }
  157. public SWIGTYPE_p_Assimp__ImporterPimpl Pimpl() {
  158. IntPtr cPtr = AssimpPINVOKE.Importer_Pimpl__SWIG_0(swigCPtr);
  159. SWIGTYPE_p_Assimp__ImporterPimpl ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Assimp__ImporterPimpl(cPtr, false);
  160. return ret;
  161. }
  162. public string GetExtensionList() {
  163. string ret = AssimpPINVOKE.Importer_GetExtensionList__SWIG_2(swigCPtr);
  164. return ret;
  165. }
  166. }