FbxTexture.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  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 FbxTexture : FbxObject {
  12. internal FbxTexture(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
  13. // override void Dispose() {base.Dispose();}
  14. public new static FbxTexture Create(FbxManager pManager, string pName) {
  15. global::System.IntPtr cPtr = NativeMethods.FbxTexture_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
  16. FbxTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxTexture(cPtr, false);
  17. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  18. return ret;
  19. }
  20. public new static FbxTexture Create(FbxObject pContainer, string pName) {
  21. global::System.IntPtr cPtr = NativeMethods.FbxTexture_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
  22. FbxTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxTexture(cPtr, false);
  23. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  24. return ret;
  25. }
  26. public FbxPropertyDouble Alpha {
  27. get {
  28. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxTexture_Alpha_get(swigCPtr), false);
  29. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  30. return ret;
  31. }
  32. }
  33. public FbxPropertyEWrapMode WrapModeU {
  34. get {
  35. FbxPropertyEWrapMode ret = new FbxPropertyEWrapMode(NativeMethods.FbxTexture_WrapModeU_get(swigCPtr), false);
  36. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  37. return ret;
  38. }
  39. }
  40. public FbxPropertyEWrapMode WrapModeV {
  41. get {
  42. FbxPropertyEWrapMode ret = new FbxPropertyEWrapMode(NativeMethods.FbxTexture_WrapModeV_get(swigCPtr), false);
  43. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  44. return ret;
  45. }
  46. }
  47. public FbxPropertyBool UVSwap {
  48. get {
  49. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxTexture_UVSwap_get(swigCPtr), false);
  50. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  51. return ret;
  52. }
  53. }
  54. public FbxPropertyBool PremultiplyAlpha {
  55. get {
  56. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxTexture_PremultiplyAlpha_get(swigCPtr), false);
  57. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  58. return ret;
  59. }
  60. }
  61. public FbxPropertyDouble3 Translation {
  62. get {
  63. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_Translation_get(swigCPtr), false);
  64. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  65. return ret;
  66. }
  67. }
  68. public FbxPropertyDouble3 Rotation {
  69. get {
  70. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_Rotation_get(swigCPtr), false);
  71. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  72. return ret;
  73. }
  74. }
  75. public FbxPropertyDouble3 Scaling {
  76. get {
  77. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_Scaling_get(swigCPtr), false);
  78. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  79. return ret;
  80. }
  81. }
  82. public FbxPropertyDouble3 RotationPivot {
  83. get {
  84. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_RotationPivot_get(swigCPtr), false);
  85. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  86. return ret;
  87. }
  88. }
  89. public FbxPropertyDouble3 ScalingPivot {
  90. get {
  91. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_ScalingPivot_get(swigCPtr), false);
  92. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  93. return ret;
  94. }
  95. }
  96. public FbxPropertyEBlendMode CurrentTextureBlendMode {
  97. get {
  98. FbxPropertyEBlendMode ret = new FbxPropertyEBlendMode(NativeMethods.FbxTexture_CurrentTextureBlendMode_get(swigCPtr), false);
  99. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  100. return ret;
  101. }
  102. }
  103. public FbxPropertyString UVSet {
  104. get {
  105. FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxTexture_UVSet_get(swigCPtr), false);
  106. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  107. return ret;
  108. }
  109. }
  110. public static string sVectorSpace {
  111. get {
  112. string ret = NativeMethods.FbxTexture_sVectorSpace_get();
  113. return ret;
  114. }
  115. }
  116. public static string sVectorSpaceWorld {
  117. get {
  118. string ret = NativeMethods.FbxTexture_sVectorSpaceWorld_get();
  119. return ret;
  120. }
  121. }
  122. public static string sVectorSpaceObject {
  123. get {
  124. string ret = NativeMethods.FbxTexture_sVectorSpaceObject_get();
  125. return ret;
  126. }
  127. }
  128. public static string sVectorSpaceTangent {
  129. get {
  130. string ret = NativeMethods.FbxTexture_sVectorSpaceTangent_get();
  131. return ret;
  132. }
  133. }
  134. public static string sVectorEncoding {
  135. get {
  136. string ret = NativeMethods.FbxTexture_sVectorEncoding_get();
  137. return ret;
  138. }
  139. }
  140. public static string sVectorEncodingFP {
  141. get {
  142. string ret = NativeMethods.FbxTexture_sVectorEncodingFP_get();
  143. return ret;
  144. }
  145. }
  146. public static string sVectorEncodingSE {
  147. get {
  148. string ret = NativeMethods.FbxTexture_sVectorEncodingSE_get();
  149. return ret;
  150. }
  151. }
  152. public virtual void Reset() {
  153. NativeMethods.FbxTexture_Reset(swigCPtr);
  154. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  155. }
  156. public void SetSwapUV(bool pSwapUV) {
  157. NativeMethods.FbxTexture_SetSwapUV(swigCPtr, pSwapUV);
  158. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  159. }
  160. public bool GetSwapUV() {
  161. bool ret = NativeMethods.FbxTexture_GetSwapUV(swigCPtr);
  162. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  163. return ret;
  164. }
  165. public void SetPremultiplyAlpha(bool pPremultiplyAlpha) {
  166. NativeMethods.FbxTexture_SetPremultiplyAlpha(swigCPtr, pPremultiplyAlpha);
  167. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  168. }
  169. public bool GetPremultiplyAlpha() {
  170. bool ret = NativeMethods.FbxTexture_GetPremultiplyAlpha(swigCPtr);
  171. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  172. return ret;
  173. }
  174. public void SetAlphaSource(FbxTexture.EAlphaSource pAlphaSource) {
  175. NativeMethods.FbxTexture_SetAlphaSource(swigCPtr, (int)pAlphaSource);
  176. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  177. }
  178. public FbxTexture.EAlphaSource GetAlphaSource() {
  179. FbxTexture.EAlphaSource ret = (FbxTexture.EAlphaSource)NativeMethods.FbxTexture_GetAlphaSource(swigCPtr);
  180. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  181. return ret;
  182. }
  183. public void SetCropping(int pLeft, int pTop, int pRight, int pBottom) {
  184. NativeMethods.FbxTexture_SetCropping(swigCPtr, pLeft, pTop, pRight, pBottom);
  185. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  186. }
  187. public int GetCroppingLeft() {
  188. int ret = NativeMethods.FbxTexture_GetCroppingLeft(swigCPtr);
  189. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  190. return ret;
  191. }
  192. public int GetCroppingTop() {
  193. int ret = NativeMethods.FbxTexture_GetCroppingTop(swigCPtr);
  194. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  195. return ret;
  196. }
  197. public int GetCroppingRight() {
  198. int ret = NativeMethods.FbxTexture_GetCroppingRight(swigCPtr);
  199. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  200. return ret;
  201. }
  202. public int GetCroppingBottom() {
  203. int ret = NativeMethods.FbxTexture_GetCroppingBottom(swigCPtr);
  204. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  205. return ret;
  206. }
  207. public void SetMappingType(FbxTexture.EMappingType pMappingType) {
  208. NativeMethods.FbxTexture_SetMappingType(swigCPtr, (int)pMappingType);
  209. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  210. }
  211. public FbxTexture.EMappingType GetMappingType() {
  212. FbxTexture.EMappingType ret = (FbxTexture.EMappingType)NativeMethods.FbxTexture_GetMappingType(swigCPtr);
  213. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  214. return ret;
  215. }
  216. public void SetPlanarMappingNormal(FbxTexture.EPlanarMappingNormal pPlanarMappingNormal) {
  217. NativeMethods.FbxTexture_SetPlanarMappingNormal(swigCPtr, (int)pPlanarMappingNormal);
  218. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  219. }
  220. public FbxTexture.EPlanarMappingNormal GetPlanarMappingNormal() {
  221. FbxTexture.EPlanarMappingNormal ret = (FbxTexture.EPlanarMappingNormal)NativeMethods.FbxTexture_GetPlanarMappingNormal(swigCPtr);
  222. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  223. return ret;
  224. }
  225. public void SetTextureUse(FbxTexture.ETextureUse pTextureUse) {
  226. NativeMethods.FbxTexture_SetTextureUse(swigCPtr, (int)pTextureUse);
  227. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  228. }
  229. public FbxTexture.ETextureUse GetTextureUse() {
  230. FbxTexture.ETextureUse ret = (FbxTexture.ETextureUse)NativeMethods.FbxTexture_GetTextureUse(swigCPtr);
  231. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  232. return ret;
  233. }
  234. public void SetWrapMode(FbxTexture.EWrapMode pWrapU, FbxTexture.EWrapMode pWrapV) {
  235. NativeMethods.FbxTexture_SetWrapMode(swigCPtr, (int)pWrapU, (int)pWrapV);
  236. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  237. }
  238. public FbxTexture.EWrapMode GetWrapModeU() {
  239. FbxTexture.EWrapMode ret = (FbxTexture.EWrapMode)NativeMethods.FbxTexture_GetWrapModeU(swigCPtr);
  240. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  241. return ret;
  242. }
  243. public FbxTexture.EWrapMode GetWrapModeV() {
  244. FbxTexture.EWrapMode ret = (FbxTexture.EWrapMode)NativeMethods.FbxTexture_GetWrapModeV(swigCPtr);
  245. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  246. return ret;
  247. }
  248. public void SetBlendMode(FbxTexture.EBlendMode pBlendMode) {
  249. NativeMethods.FbxTexture_SetBlendMode(swigCPtr, (int)pBlendMode);
  250. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  251. }
  252. public FbxTexture.EBlendMode GetBlendMode() {
  253. FbxTexture.EBlendMode ret = (FbxTexture.EBlendMode)NativeMethods.FbxTexture_GetBlendMode(swigCPtr);
  254. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  255. return ret;
  256. }
  257. public void SetDefaultAlpha(double pAlpha) {
  258. NativeMethods.FbxTexture_SetDefaultAlpha(swigCPtr, pAlpha);
  259. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  260. }
  261. public double GetDefaultAlpha() {
  262. double ret = NativeMethods.FbxTexture_GetDefaultAlpha(swigCPtr);
  263. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  264. return ret;
  265. }
  266. public void SetTranslation(double pU, double pV) {
  267. NativeMethods.FbxTexture_SetTranslation(swigCPtr, pU, pV);
  268. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  269. }
  270. public double GetTranslationU() {
  271. double ret = NativeMethods.FbxTexture_GetTranslationU(swigCPtr);
  272. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  273. return ret;
  274. }
  275. public double GetTranslationV() {
  276. double ret = NativeMethods.FbxTexture_GetTranslationV(swigCPtr);
  277. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  278. return ret;
  279. }
  280. public void SetRotation(double pU, double pV, double pW) {
  281. NativeMethods.FbxTexture_SetRotation__SWIG_0(swigCPtr, pU, pV, pW);
  282. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  283. }
  284. public void SetRotation(double pU, double pV) {
  285. NativeMethods.FbxTexture_SetRotation__SWIG_1(swigCPtr, pU, pV);
  286. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  287. }
  288. public double GetRotationU() {
  289. double ret = NativeMethods.FbxTexture_GetRotationU(swigCPtr);
  290. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  291. return ret;
  292. }
  293. public double GetRotationV() {
  294. double ret = NativeMethods.FbxTexture_GetRotationV(swigCPtr);
  295. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  296. return ret;
  297. }
  298. public double GetRotationW() {
  299. double ret = NativeMethods.FbxTexture_GetRotationW(swigCPtr);
  300. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  301. return ret;
  302. }
  303. public void SetScale(double pU, double pV) {
  304. NativeMethods.FbxTexture_SetScale(swigCPtr, pU, pV);
  305. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  306. }
  307. public double GetScaleU() {
  308. double ret = NativeMethods.FbxTexture_GetScaleU(swigCPtr);
  309. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  310. return ret;
  311. }
  312. public double GetScaleV() {
  313. double ret = NativeMethods.FbxTexture_GetScaleV(swigCPtr);
  314. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  315. return ret;
  316. }
  317. public override int GetHashCode(){
  318. return swigCPtr.Handle.GetHashCode();
  319. }
  320. public bool Equals(FbxTexture other) {
  321. if (object.ReferenceEquals(other, null)) { return false; }
  322. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  323. }
  324. public override bool Equals(object obj){
  325. if (object.ReferenceEquals(obj, null)) { return false; }
  326. /* is obj a subclass of this type; if so use our Equals */
  327. var typed = obj as FbxTexture;
  328. if (!object.ReferenceEquals(typed, null)) {
  329. return this.Equals(typed);
  330. }
  331. /* are we a subclass of the other type; if so use their Equals */
  332. if (typeof(FbxTexture).IsSubclassOf(obj.GetType())) {
  333. return obj.Equals(this);
  334. }
  335. /* types are unrelated; can't be a match */
  336. return false;
  337. }
  338. public static bool operator == (FbxTexture a, FbxTexture b) {
  339. if (object.ReferenceEquals(a, b)) { return true; }
  340. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  341. return a.Equals(b);
  342. }
  343. public static bool operator != (FbxTexture a, FbxTexture b) {
  344. return !(a == b);
  345. }
  346. public enum EWrapMode {
  347. eRepeat,
  348. eClamp
  349. }
  350. public enum EBlendMode {
  351. eTranslucent,
  352. eAdditive,
  353. eModulate,
  354. eModulate2,
  355. eOver
  356. }
  357. public enum EAlphaSource {
  358. eNone,
  359. eRGBIntensity,
  360. eBlack
  361. }
  362. public enum EMappingType {
  363. eNull,
  364. ePlanar,
  365. eSpherical,
  366. eCylindrical,
  367. eBox,
  368. eFace,
  369. eUV,
  370. eEnvironment
  371. }
  372. public enum EPlanarMappingNormal {
  373. ePlanarNormalX,
  374. ePlanarNormalY,
  375. ePlanarNormalZ
  376. }
  377. public enum ETextureUse {
  378. eStandard,
  379. eShadowMap,
  380. eLightMap,
  381. eSphericalReflectionMap,
  382. eSphereReflectionMap,
  383. eBumpNormalMap
  384. }
  385. }
  386. }