Modelowanie_Wirtualnych_Swi.../Library/PackageCache/com.autodesk.fbx@4.0.1/Runtime/Scripts/FbxGeometry.cs
2021-07-09 23:35:24 +02:00

131 lines
5.8 KiB
C#

#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 FbxGeometry : FbxGeometryBase {
internal FbxGeometry(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
// override void Dispose() {base.Dispose();}
public new static FbxGeometry Create(FbxManager pManager, string pName) {
global::System.IntPtr cPtr = NativeMethods.FbxGeometry_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
FbxGeometry ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGeometry(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public new static FbxGeometry Create(FbxObject pContainer, string pName) {
global::System.IntPtr cPtr = NativeMethods.FbxGeometry_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
FbxGeometry ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGeometry(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public int AddDeformer(FbxDeformer pDeformer) {
int ret = NativeMethods.FbxGeometry_AddDeformer(swigCPtr, FbxDeformer.getCPtr(pDeformer));
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public int GetDeformerCount() {
int ret = NativeMethods.FbxGeometry_GetDeformerCount__SWIG_0(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxDeformer GetDeformer(int pIndex, FbxStatus pStatus) {
global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_0(swigCPtr, pIndex, FbxStatus.getCPtr(pStatus));
FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxDeformer GetDeformer(int pIndex) {
global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_1(swigCPtr, pIndex);
FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public int GetDeformerCount(FbxDeformer.EDeformerType pType) {
int ret = NativeMethods.FbxGeometry_GetDeformerCount__SWIG_1(swigCPtr, (int)pType);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxDeformer GetDeformer(int pIndex, FbxDeformer.EDeformerType pType, FbxStatus pStatus) {
global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_2(swigCPtr, pIndex, (int)pType, FbxStatus.getCPtr(pStatus));
FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxDeformer GetDeformer(int pIndex, FbxDeformer.EDeformerType pType) {
global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_3(swigCPtr, pIndex, (int)pType);
FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public override int GetHashCode(){
return swigCPtr.Handle.GetHashCode();
}
public bool Equals(FbxGeometry 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 FbxGeometry;
if (!object.ReferenceEquals(typed, null)) {
return this.Equals(typed);
}
/* are we a subclass of the other type; if so use their Equals */
if (typeof(FbxGeometry).IsSubclassOf(obj.GetType())) {
return obj.Equals(this);
}
/* types are unrelated; can't be a match */
return false;
}
public static bool operator == (FbxGeometry a, FbxGeometry 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 != (FbxGeometry a, FbxGeometry b) {
return !(a == b);
}
public FbxBlendShape GetBlendShapeDeformer(int pIndex, FbxStatus pStatus) {
global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetBlendShapeDeformer__SWIG_0(swigCPtr, pIndex, FbxStatus.getCPtr(pStatus));
FbxBlendShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShape(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxBlendShape GetBlendShapeDeformer(int pIndex) {
global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetBlendShapeDeformer__SWIG_1(swigCPtr, pIndex);
FbxBlendShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShape(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
}
#endif // UNITY_EDITOR || FBXSDK_RUNTIME