123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- //------------------------------------------------------------------------------
- // <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 FbxScene : FbxDocument {
- internal FbxScene(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
- // override void Dispose() {base.Dispose();}
- public new static FbxScene Create(FbxManager pManager, string pName) {
- global::System.IntPtr cPtr = NativeMethods.FbxScene_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
- FbxScene ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxScene(cPtr, false);
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- return ret;
- }
- public new static FbxScene Create(FbxObject pContainer, string pName) {
- global::System.IntPtr cPtr = NativeMethods.FbxScene_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
- FbxScene ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxScene(cPtr, false);
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- return ret;
- }
- public FbxNode GetRootNode() {
- global::System.IntPtr cPtr = NativeMethods.FbxScene_GetRootNode(swigCPtr);
- FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false);
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- return ret;
- }
- public FbxPose GetPose(int pIndex) {
- global::System.IntPtr cPtr = NativeMethods.FbxScene_GetPose(swigCPtr, pIndex);
- FbxPose ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxPose(cPtr, false);
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- return ret;
- }
- public bool AddPose(FbxPose pPose) {
- bool ret = NativeMethods.FbxScene_AddPose(swigCPtr, FbxPose.getCPtr(pPose));
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- return ret;
- }
- public FbxDocumentInfo GetSceneInfo() {
- global::System.IntPtr cPtr = NativeMethods.FbxScene_GetSceneInfo(swigCPtr);
- FbxDocumentInfo ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDocumentInfo(cPtr, false);
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- return ret;
- }
- public void SetSceneInfo(FbxDocumentInfo pSceneInfo) {
- NativeMethods.FbxScene_SetSceneInfo(swigCPtr, FbxDocumentInfo.getCPtr(pSceneInfo));
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- }
- public FbxGlobalSettings GetGlobalSettings() {
- FbxGlobalSettings ret = new FbxGlobalSettings(NativeMethods.FbxScene_GetGlobalSettings(swigCPtr), false);
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- return ret;
- }
- public void SetCurrentAnimationStack(FbxAnimStack pAnimStack) {
- NativeMethods.FbxScene_SetCurrentAnimationStack(swigCPtr, FbxAnimStack.getCPtr(pAnimStack));
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- }
- public FbxAnimStack GetCurrentAnimationStack() {
- global::System.IntPtr cPtr = NativeMethods.FbxScene_GetCurrentAnimationStack(swigCPtr);
- FbxAnimStack ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimStack(cPtr, false);
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- return ret;
- }
- public int GetNodeCount() {
- int ret = NativeMethods.FbxScene_GetNodeCount(swigCPtr);
- if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
- return ret;
- }
- public override int GetHashCode(){
- return swigCPtr.Handle.GetHashCode();
- }
- public bool Equals(FbxScene 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 FbxScene;
- if (!object.ReferenceEquals(typed, null)) {
- return this.Equals(typed);
- }
- /* are we a subclass of the other type; if so use their Equals */
- if (typeof(FbxScene).IsSubclassOf(obj.GetType())) {
- return obj.Equals(this);
- }
- /* types are unrelated; can't be a match */
- return false;
- }
- public static bool operator == (FbxScene a, FbxScene 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 != (FbxScene a, FbxScene b) {
- return !(a == b);
- }
- }
- }
|