FbxLight.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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 FbxLight : FbxNodeAttribute {
  12. internal FbxLight(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
  13. // override void Dispose() {base.Dispose();}
  14. public new static FbxLight Create(FbxManager pManager, string pName) {
  15. global::System.IntPtr cPtr = NativeMethods.FbxLight_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
  16. FbxLight ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLight(cPtr, false);
  17. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  18. return ret;
  19. }
  20. public new static FbxLight Create(FbxObject pContainer, string pName) {
  21. global::System.IntPtr cPtr = NativeMethods.FbxLight_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
  22. FbxLight ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLight(cPtr, false);
  23. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  24. return ret;
  25. }
  26. public void SetShadowTexture(FbxTexture pTexture) {
  27. NativeMethods.FbxLight_SetShadowTexture(swigCPtr, FbxTexture.getCPtr(pTexture));
  28. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  29. }
  30. public FbxTexture GetShadowTexture() {
  31. global::System.IntPtr cPtr = NativeMethods.FbxLight_GetShadowTexture(swigCPtr);
  32. FbxTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxTexture(cPtr, false);
  33. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  34. return ret;
  35. }
  36. public FbxPropertyELightType LightType {
  37. get {
  38. FbxPropertyELightType ret = new FbxPropertyELightType(NativeMethods.FbxLight_LightType_get(swigCPtr), false);
  39. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  40. return ret;
  41. }
  42. }
  43. public FbxPropertyBool CastLight {
  44. get {
  45. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_CastLight_get(swigCPtr), false);
  46. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  47. return ret;
  48. }
  49. }
  50. public FbxPropertyBool DrawVolumetricLight {
  51. get {
  52. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_DrawVolumetricLight_get(swigCPtr), false);
  53. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  54. return ret;
  55. }
  56. }
  57. public FbxPropertyBool DrawGroundProjection {
  58. get {
  59. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_DrawGroundProjection_get(swigCPtr), false);
  60. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  61. return ret;
  62. }
  63. }
  64. public FbxPropertyBool DrawFrontFacingVolumetricLight {
  65. get {
  66. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_DrawFrontFacingVolumetricLight_get(swigCPtr), false);
  67. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  68. return ret;
  69. }
  70. }
  71. public new FbxPropertyDouble3 Color {
  72. get {
  73. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxLight_Color_get(swigCPtr), false);
  74. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  75. return ret;
  76. }
  77. }
  78. public FbxPropertyDouble Intensity {
  79. get {
  80. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_Intensity_get(swigCPtr), false);
  81. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  82. return ret;
  83. }
  84. }
  85. public FbxPropertyDouble InnerAngle {
  86. get {
  87. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_InnerAngle_get(swigCPtr), false);
  88. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  89. return ret;
  90. }
  91. }
  92. public FbxPropertyDouble OuterAngle {
  93. get {
  94. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_OuterAngle_get(swigCPtr), false);
  95. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  96. return ret;
  97. }
  98. }
  99. public FbxPropertyDouble Fog {
  100. get {
  101. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_Fog_get(swigCPtr), false);
  102. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  103. return ret;
  104. }
  105. }
  106. public FbxPropertyEDecayType DecayType {
  107. get {
  108. FbxPropertyEDecayType ret = new FbxPropertyEDecayType(NativeMethods.FbxLight_DecayType_get(swigCPtr), false);
  109. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  110. return ret;
  111. }
  112. }
  113. public FbxPropertyDouble DecayStart {
  114. get {
  115. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_DecayStart_get(swigCPtr), false);
  116. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  117. return ret;
  118. }
  119. }
  120. public FbxPropertyString FileName {
  121. get {
  122. FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxLight_FileName_get(swigCPtr), false);
  123. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  124. return ret;
  125. }
  126. }
  127. public FbxPropertyBool EnableNearAttenuation {
  128. get {
  129. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_EnableNearAttenuation_get(swigCPtr), false);
  130. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  131. return ret;
  132. }
  133. }
  134. public FbxPropertyDouble NearAttenuationStart {
  135. get {
  136. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_NearAttenuationStart_get(swigCPtr), false);
  137. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  138. return ret;
  139. }
  140. }
  141. public FbxPropertyDouble NearAttenuationEnd {
  142. get {
  143. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_NearAttenuationEnd_get(swigCPtr), false);
  144. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  145. return ret;
  146. }
  147. }
  148. public FbxPropertyBool EnableFarAttenuation {
  149. get {
  150. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_EnableFarAttenuation_get(swigCPtr), false);
  151. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  152. return ret;
  153. }
  154. }
  155. public FbxPropertyDouble FarAttenuationStart {
  156. get {
  157. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_FarAttenuationStart_get(swigCPtr), false);
  158. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  159. return ret;
  160. }
  161. }
  162. public FbxPropertyDouble FarAttenuationEnd {
  163. get {
  164. FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_FarAttenuationEnd_get(swigCPtr), false);
  165. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  166. return ret;
  167. }
  168. }
  169. public FbxPropertyBool CastShadows {
  170. get {
  171. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_CastShadows_get(swigCPtr), false);
  172. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  173. return ret;
  174. }
  175. }
  176. public FbxPropertyDouble3 ShadowColor {
  177. get {
  178. FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxLight_ShadowColor_get(swigCPtr), false);
  179. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  180. return ret;
  181. }
  182. }
  183. public FbxPropertyEAreaLightShape AreaLightShape {
  184. get {
  185. FbxPropertyEAreaLightShape ret = new FbxPropertyEAreaLightShape(NativeMethods.FbxLight_AreaLightShape_get(swigCPtr), false);
  186. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  187. return ret;
  188. }
  189. }
  190. public FbxPropertyFloat LeftBarnDoor {
  191. get {
  192. FbxPropertyFloat ret = new FbxPropertyFloat(NativeMethods.FbxLight_LeftBarnDoor_get(swigCPtr), false);
  193. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  194. return ret;
  195. }
  196. }
  197. public FbxPropertyFloat RightBarnDoor {
  198. get {
  199. FbxPropertyFloat ret = new FbxPropertyFloat(NativeMethods.FbxLight_RightBarnDoor_get(swigCPtr), false);
  200. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  201. return ret;
  202. }
  203. }
  204. public FbxPropertyFloat TopBarnDoor {
  205. get {
  206. FbxPropertyFloat ret = new FbxPropertyFloat(NativeMethods.FbxLight_TopBarnDoor_get(swigCPtr), false);
  207. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  208. return ret;
  209. }
  210. }
  211. public FbxPropertyFloat BottomBarnDoor {
  212. get {
  213. FbxPropertyFloat ret = new FbxPropertyFloat(NativeMethods.FbxLight_BottomBarnDoor_get(swigCPtr), false);
  214. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  215. return ret;
  216. }
  217. }
  218. public FbxPropertyBool EnableBarnDoor {
  219. get {
  220. FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_EnableBarnDoor_get(swigCPtr), false);
  221. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  222. return ret;
  223. }
  224. }
  225. public override int GetHashCode(){
  226. return swigCPtr.Handle.GetHashCode();
  227. }
  228. public bool Equals(FbxLight other) {
  229. if (object.ReferenceEquals(other, null)) { return false; }
  230. return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
  231. }
  232. public override bool Equals(object obj){
  233. if (object.ReferenceEquals(obj, null)) { return false; }
  234. /* is obj a subclass of this type; if so use our Equals */
  235. var typed = obj as FbxLight;
  236. if (!object.ReferenceEquals(typed, null)) {
  237. return this.Equals(typed);
  238. }
  239. /* are we a subclass of the other type; if so use their Equals */
  240. if (typeof(FbxLight).IsSubclassOf(obj.GetType())) {
  241. return obj.Equals(this);
  242. }
  243. /* types are unrelated; can't be a match */
  244. return false;
  245. }
  246. public static bool operator == (FbxLight a, FbxLight b) {
  247. if (object.ReferenceEquals(a, b)) { return true; }
  248. if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
  249. return a.Equals(b);
  250. }
  251. public static bool operator != (FbxLight a, FbxLight b) {
  252. return !(a == b);
  253. }
  254. public new enum EType {
  255. ePoint,
  256. eDirectional,
  257. eSpot,
  258. eArea,
  259. eVolume
  260. }
  261. public enum EDecayType {
  262. eNone,
  263. eLinear,
  264. eQuadratic,
  265. eCubic
  266. }
  267. public enum EAreaLightShape {
  268. eRectangle,
  269. eSphere
  270. }
  271. }
  272. }