Rasagar/Library/PackageCache/com.autodesk.fbx/Runtime/Scripts/FbxLayer.cs

162 lines
7.0 KiB
C#
Raw Normal View History

2024-08-30 07:33:54 -07:00
#if UNITY_EDITOR || FBXSDK_RUNTIME
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace Autodesk.Fbx {
public class FbxLayer : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal FbxLayer(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayer obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
throw new global::System.MethodAccessException("C++ destructor does not have public access");
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
global::System.GC.SuppressFinalize(this);
}
}
public FbxLayerElementNormal GetNormals() {
global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetNormals(swigCPtr);
FbxLayerElementNormal ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementNormal(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxLayerElementTangent GetTangents() {
global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetTangents(swigCPtr);
FbxLayerElementTangent ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementTangent(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxLayerElementBinormal GetBinormals() {
global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetBinormals(swigCPtr);
FbxLayerElementBinormal ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementBinormal(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxLayerElementMaterial GetMaterials() {
global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetMaterials(swigCPtr);
FbxLayerElementMaterial ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementMaterial(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxLayerElementUV GetUVs(FbxLayerElement.EType pTypeIdentifier) {
global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetUVs__SWIG_0(swigCPtr, (int)pTypeIdentifier);
FbxLayerElementUV ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementUV(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxLayerElementUV GetUVs() {
global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetUVs__SWIG_1(swigCPtr);
FbxLayerElementUV ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementUV(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxLayerElementVertexColor GetVertexColors() {
global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetVertexColors(swigCPtr);
FbxLayerElementVertexColor ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementVertexColor(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetNormals(FbxLayerElementNormal pNormals) {
NativeMethods.FbxLayer_SetNormals(swigCPtr, FbxLayerElementNormal.getCPtr(pNormals));
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetBinormals(FbxLayerElementBinormal pBinormals) {
NativeMethods.FbxLayer_SetBinormals(swigCPtr, FbxLayerElementBinormal.getCPtr(pBinormals));
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetTangents(FbxLayerElementTangent pTangents) {
NativeMethods.FbxLayer_SetTangents(swigCPtr, FbxLayerElementTangent.getCPtr(pTangents));
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetMaterials(FbxLayerElementMaterial pMaterials) {
NativeMethods.FbxLayer_SetMaterials(swigCPtr, FbxLayerElementMaterial.getCPtr(pMaterials));
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetUVs(FbxLayerElementUV pUVs, FbxLayerElement.EType pTypeIdentifier) {
NativeMethods.FbxLayer_SetUVs__SWIG_0(swigCPtr, FbxLayerElementUV.getCPtr(pUVs), (int)pTypeIdentifier);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetUVs(FbxLayerElementUV pUVs) {
NativeMethods.FbxLayer_SetUVs__SWIG_1(swigCPtr, FbxLayerElementUV.getCPtr(pUVs));
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetVertexColors(FbxLayerElementVertexColor pVertexColors) {
NativeMethods.FbxLayer_SetVertexColors(swigCPtr, FbxLayerElementVertexColor.getCPtr(pVertexColors));
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public override int GetHashCode(){
return swigCPtr.Handle.GetHashCode();
}
public bool Equals(FbxLayer other) {
if (object.ReferenceEquals(other, null)) { return false; }
return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
}
public override bool Equals(object obj){
if (object.ReferenceEquals(obj, null)) { return false; }
/* is obj a subclass of this type; if so use our Equals */
var typed = obj as FbxLayer;
if (!object.ReferenceEquals(typed, null)) {
return this.Equals(typed);
}
/* are we a subclass of the other type; if so use their Equals */
if (typeof(FbxLayer).IsSubclassOf(obj.GetType())) {
return obj.Equals(this);
}
/* types are unrelated; can't be a match */
return false;
}
public static bool operator == (FbxLayer a, FbxLayer b) {
if (object.ReferenceEquals(a, b)) { return true; }
if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
return a.Equals(b);
}
public static bool operator != (FbxLayer a, FbxLayer b) {
return !(a == b);
}
}
}
#endif // UNITY_EDITOR || FBXSDK_RUNTIME