forked from BilalY/Rasagar
323 lines
17 KiB
C#
323 lines
17 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 FbxAnimCurve : FbxAnimCurveBase {
|
|
internal FbxAnimCurve(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
|
|
|
|
// override void Dispose() {base.Dispose();}
|
|
|
|
public static FbxAnimCurve Create(FbxScene pContainer, string pName) {
|
|
global::System.IntPtr cPtr = NativeMethods.FbxAnimCurve_Create(FbxScene.getCPtr(pContainer), pName);
|
|
FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual void KeyModifyBegin() {
|
|
NativeMethods.FbxAnimCurve_KeyModifyBegin(swigCPtr);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeyModifyEnd() {
|
|
NativeMethods.FbxAnimCurve_KeyModifyEnd(swigCPtr);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual int KeyAdd(FbxTime pTime, ref int pLast) {
|
|
int ret = NativeMethods.FbxAnimCurve_KeyAdd__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), ref pLast);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual int KeyAdd(FbxTime pTime) {
|
|
int ret = NativeMethods.FbxAnimCurve_KeyAdd__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime));
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public override bool KeyRemove(int pIndex) {
|
|
bool ret = NativeMethods.FbxAnimCurve_KeyRemove__SWIG_0(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public override bool KeyRemove(int pStartIndex, int pEndIndex) {
|
|
bool ret = NativeMethods.FbxAnimCurve_KeyRemove__SWIG_1(swigCPtr, pStartIndex, pEndIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1, FbxAnimCurveDef.EWeightedMode pTangentWeightMode, float pWeight0, float pWeight1, float pVelocity0, float pVelocity1) {
|
|
NativeMethods.FbxAnimCurve_KeySet__SWIG_0(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1, (int)pTangentWeightMode, pWeight0, pWeight1, pVelocity0, pVelocity1);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1, FbxAnimCurveDef.EWeightedMode pTangentWeightMode, float pWeight0, float pWeight1, float pVelocity0) {
|
|
NativeMethods.FbxAnimCurve_KeySet__SWIG_1(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1, (int)pTangentWeightMode, pWeight0, pWeight1, pVelocity0);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1, FbxAnimCurveDef.EWeightedMode pTangentWeightMode, float pWeight0, float pWeight1) {
|
|
NativeMethods.FbxAnimCurve_KeySet__SWIG_2(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1, (int)pTangentWeightMode, pWeight0, pWeight1);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1, FbxAnimCurveDef.EWeightedMode pTangentWeightMode, float pWeight0) {
|
|
NativeMethods.FbxAnimCurve_KeySet__SWIG_3(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1, (int)pTangentWeightMode, pWeight0);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1, FbxAnimCurveDef.EWeightedMode pTangentWeightMode) {
|
|
NativeMethods.FbxAnimCurve_KeySet__SWIG_4(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1, (int)pTangentWeightMode);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1) {
|
|
NativeMethods.FbxAnimCurve_KeySet__SWIG_5(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0) {
|
|
NativeMethods.FbxAnimCurve_KeySet__SWIG_6(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode) {
|
|
NativeMethods.FbxAnimCurve_KeySet__SWIG_7(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation) {
|
|
NativeMethods.FbxAnimCurve_KeySet__SWIG_8(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue) {
|
|
NativeMethods.FbxAnimCurve_KeySet__SWIG_9(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual FbxAnimCurveDef.EInterpolationType KeyGetInterpolation(int pKeyIndex) {
|
|
FbxAnimCurveDef.EInterpolationType ret = (FbxAnimCurveDef.EInterpolationType)NativeMethods.FbxAnimCurve_KeyGetInterpolation(swigCPtr, pKeyIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual void KeySetInterpolation(int pKeyIndex, FbxAnimCurveDef.EInterpolationType pInterpolation) {
|
|
NativeMethods.FbxAnimCurve_KeySetInterpolation(swigCPtr, pKeyIndex, (int)pInterpolation);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual FbxAnimCurveDef.ETangentMode KeyGetTangentMode(int pKeyIndex, bool pIncludeOverrides) {
|
|
FbxAnimCurveDef.ETangentMode ret = (FbxAnimCurveDef.ETangentMode)NativeMethods.FbxAnimCurve_KeyGetTangentMode__SWIG_0(swigCPtr, pKeyIndex, pIncludeOverrides);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual FbxAnimCurveDef.ETangentMode KeyGetTangentMode(int pKeyIndex) {
|
|
FbxAnimCurveDef.ETangentMode ret = (FbxAnimCurveDef.ETangentMode)NativeMethods.FbxAnimCurve_KeyGetTangentMode__SWIG_1(swigCPtr, pKeyIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual void KeySetTangentMode(int pKeyIndex, FbxAnimCurveDef.ETangentMode pTangent) {
|
|
NativeMethods.FbxAnimCurve_KeySetTangentMode(swigCPtr, pKeyIndex, (int)pTangent);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual FbxAnimCurveKey KeyGet(int pIndex) {
|
|
FbxAnimCurveKey ret = new FbxAnimCurveKey(NativeMethods.FbxAnimCurve_KeyGet(swigCPtr, pIndex), true);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual float KeyGetValue(int pKeyIndex) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetValue(swigCPtr, pKeyIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual void KeySetValue(int pKeyIndex, float pValue) {
|
|
NativeMethods.FbxAnimCurve_KeySetValue(swigCPtr, pKeyIndex, pValue);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeyIncValue(int pKeyIndex, float pValue) {
|
|
NativeMethods.FbxAnimCurve_KeyIncValue(swigCPtr, pKeyIndex, pValue);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeyMultValue(int pKeyIndex, float pValue) {
|
|
NativeMethods.FbxAnimCurve_KeyMultValue(swigCPtr, pKeyIndex, pValue);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySetBreak(int pKeyIndex, bool pVal) {
|
|
NativeMethods.FbxAnimCurve_KeySetBreak(swigCPtr, pKeyIndex, pVal);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual bool KeyGetBreak(int pKeyIndex) {
|
|
bool ret = NativeMethods.FbxAnimCurve_KeyGetBreak(swigCPtr, pKeyIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual float KeyGetLeftDerivative(int pIndex) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetLeftDerivative(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual void KeySetLeftDerivative(int pIndex, float pValue) {
|
|
NativeMethods.FbxAnimCurve_KeySetLeftDerivative(swigCPtr, pIndex, pValue);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual float KeyGetLeftAuto(int pIndex, bool pApplyOvershootProtection) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetLeftAuto__SWIG_0(swigCPtr, pIndex, pApplyOvershootProtection);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual float KeyGetLeftAuto(int pIndex) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetLeftAuto__SWIG_1(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual float KeyGetRightDerivative(int pIndex) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetRightDerivative(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual void KeySetRightDerivative(int pIndex, float pValue) {
|
|
NativeMethods.FbxAnimCurve_KeySetRightDerivative(swigCPtr, pIndex, pValue);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual float KeyGetRightAuto(int pIndex, bool pApplyOvershootProtection) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetRightAuto__SWIG_0(swigCPtr, pIndex, pApplyOvershootProtection);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual float KeyGetRightAuto(int pIndex) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetRightAuto__SWIG_1(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual bool KeyIsLeftTangentWeighted(int pIndex) {
|
|
bool ret = NativeMethods.FbxAnimCurve_KeyIsLeftTangentWeighted(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual bool KeyIsRightTangentWeighted(int pIndex) {
|
|
bool ret = NativeMethods.FbxAnimCurve_KeyIsRightTangentWeighted(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual float KeyGetLeftTangentWeight(int pIndex) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetLeftTangentWeight(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual float KeyGetRightTangentWeight(int pIndex) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetRightTangentWeight(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual void KeySetLeftTangentWeight(int pIndex, float pWeight, bool pAdjustTan) {
|
|
NativeMethods.FbxAnimCurve_KeySetLeftTangentWeight__SWIG_0(swigCPtr, pIndex, pWeight, pAdjustTan);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySetLeftTangentWeight(int pIndex, float pWeight) {
|
|
NativeMethods.FbxAnimCurve_KeySetLeftTangentWeight__SWIG_1(swigCPtr, pIndex, pWeight);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySetRightTangentWeight(int pIndex, float pWeight, bool pAdjustTan) {
|
|
NativeMethods.FbxAnimCurve_KeySetRightTangentWeight__SWIG_0(swigCPtr, pIndex, pWeight, pAdjustTan);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual void KeySetRightTangentWeight(int pIndex, float pWeight) {
|
|
NativeMethods.FbxAnimCurve_KeySetRightTangentWeight__SWIG_1(swigCPtr, pIndex, pWeight);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
}
|
|
|
|
public virtual float KeyGetLeftTangentVelocity(int pIndex) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetLeftTangentVelocity(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public virtual float KeyGetRightTangentVelocity(int pIndex) {
|
|
float ret = NativeMethods.FbxAnimCurve_KeyGetRightTangentVelocity(swigCPtr, pIndex);
|
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
|
return ret;
|
|
}
|
|
|
|
public override int GetHashCode(){
|
|
return swigCPtr.Handle.GetHashCode();
|
|
}
|
|
|
|
public bool Equals(FbxAnimCurve 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 FbxAnimCurve;
|
|
if (!object.ReferenceEquals(typed, null)) {
|
|
return this.Equals(typed);
|
|
}
|
|
/* are we a subclass of the other type; if so use their Equals */
|
|
if (typeof(FbxAnimCurve).IsSubclassOf(obj.GetType())) {
|
|
return obj.Equals(this);
|
|
}
|
|
/* types are unrelated; can't be a match */
|
|
return false;
|
|
}
|
|
|
|
public static bool operator == (FbxAnimCurve a, FbxAnimCurve 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 != (FbxAnimCurve a, FbxAnimCurve b) {
|
|
return !(a == b);
|
|
}
|
|
|
|
public static new FbxAnimCurve Create(FbxManager pManager, string pName) {
|
|
throw new System.NotImplementedException("FbxAnimCurve can only be created with a scene as argument.");
|
|
}
|
|
public static new FbxAnimCurve Create(FbxObject pContainer, string pName) {
|
|
throw new System.NotImplementedException("FbxAnimCurve can only be created with a scene as argument.");
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif // UNITY_EDITOR || FBXSDK_RUNTIME |