FbxLayerElementTemplateFbxSurfaceMaterial.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 FbxLayerElementTemplateFbxSurfaceMaterial : FbxLayerElement {
  12. private global::System.Runtime.InteropServices.HandleRef swigCPtr;
  13. internal FbxLayerElementTemplateFbxSurfaceMaterial(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementTemplateFbxSurfaceMaterial_SWIGUpcast(cPtr), cMemoryOwn) {
  14. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
  15. }
  16. internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementTemplateFbxSurfaceMaterial obj) {
  17. return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
  18. }
  19. public override void Dispose() {
  20. lock(this) {
  21. if (swigCPtr.Handle != global::System.IntPtr.Zero) {
  22. if (swigCMemOwn) {
  23. swigCMemOwn = false;
  24. throw new global::System.MethodAccessException("C++ destructor does not have public access");
  25. }
  26. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
  27. }
  28. global::System.GC.SuppressFinalize(this);
  29. base.Dispose();
  30. }
  31. }
  32. public FbxLayerElementArrayTemplateFbxSurfaceMaterial GetDirectArray() {
  33. FbxLayerElementArrayTemplateFbxSurfaceMaterial ret = new FbxLayerElementArrayTemplateFbxSurfaceMaterial(NativeMethods.FbxLayerElementTemplateFbxSurfaceMaterial_GetDirectArray(swigCPtr), false);
  34. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  35. return ret;
  36. }
  37. public FbxLayerElementArrayTemplateInt GetIndexArray() {
  38. FbxLayerElementArrayTemplateInt ret = new FbxLayerElementArrayTemplateInt(NativeMethods.FbxLayerElementTemplateFbxSurfaceMaterial_GetIndexArray(swigCPtr), false);
  39. if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
  40. return ret;
  41. }
  42. }
  43. }