コード例 #1
0
ファイル: VtValue.cs プロジェクト: khunrobot/usd-unity-sdk
 public VtValue(SdfAssetPathArray obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_24(SdfAssetPathArray.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
        static public SdfAssetPath[] FromVtArray(SdfAssetPathArray input)
        {
            var output = UsdIo.ArrayAllocator.Malloc <SdfAssetPath>(input.size());

            FromVtArray(input, ref output);
            return(output);
        }
コード例 #3
0
 public SdfAssetPathArray(SdfAssetPathArray other) : this(UsdCsPINVOKE.new_SdfAssetPathArray__SWIG_1(SdfAssetPathArray.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
 public void SetPayloadAssetDependencies(SdfAssetPathArray assetDeps)
 {
     UsdCsPINVOKE.UsdModelAPI_SetPayloadAssetDependencies(swigCPtr, SdfAssetPathArray.getCPtr(assetDeps));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
 public void swap(SdfAssetPathArray other)
 {
     UsdCsPINVOKE.SdfAssetPathArray_swap(swigCPtr, SdfAssetPathArray.getCPtr(other));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #6
0
ファイル: UsdClipsAPI.cs プロジェクト: mwikenma/usd-unity-sdk
        public bool SetClipAssetPaths(SdfAssetPathArray assetPaths)
        {
            bool ret = UsdCsPINVOKE.UsdClipsAPI_SetClipAssetPaths__SWIG_1(swigCPtr, SdfAssetPathArray.getCPtr(assetPaths));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
ファイル: UsdClipsAPI.cs プロジェクト: mwikenma/usd-unity-sdk
        public SdfAssetPathArray ComputeClipAssetPaths(string clipSet)
        {
            SdfAssetPathArray ret = new SdfAssetPathArray(UsdCsPINVOKE.UsdClipsAPI_ComputeClipAssetPaths__SWIG_0(swigCPtr, clipSet), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #8
0
        public static bool Equals(SdfAssetPathArray lhs, SdfAssetPathArray rhs)
        {
            bool ret = UsdCsPINVOKE.SdfAssetPathArray_Equals(SdfAssetPathArray.getCPtr(lhs), SdfAssetPathArray.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #9
0
        public bool IsIdentical(SdfAssetPathArray other)
        {
            bool ret = UsdCsPINVOKE.SdfAssetPathArray_IsIdentical(swigCPtr, SdfAssetPathArray.getCPtr(other));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #10
0
        static public SdfAssetPathArray ToVtArray(SdfAssetPath[] input)
        {
            var output = new SdfAssetPathArray((uint)input.Length);

            // PERFORMANCE: this is super inefficient.
            for (int i = 0; i < input.Length; i++)
            {
                output[i] = new SdfAssetPath(input[i].GetAssetPath());
            }
            return(output);
        }
コード例 #11
0
 static public void FromVtArray(SdfAssetPathArray input, ref SdfAssetPath[] output)
 {
     if (output.Length != input.size())
     {
         output = UsdIo.ArrayAllocator.Malloc <SdfAssetPath>(input.size());
     }
     // PERFORMANCE: this is super inefficient.
     for (int i = 0; i < input.size(); i++)
     {
         output[i] = input[i];
     }
 }
コード例 #12
0
        public bool GetPayloadAssetDependencies(SdfAssetPathArray assetDeps)
        {
            bool ret = UsdCsPINVOKE.UsdModelAPI_GetPayloadAssetDependencies(swigCPtr, SdfAssetPathArray.getCPtr(assetDeps));

            return(ret);
        }
コード例 #13
0
 static public List <SdfAssetPath> ListFromVtArray(SdfAssetPathArray input)
 {
     return(FromVtArray(input).ToList());
 }
コード例 #14
0
ファイル: UsdClipsAPI.cs プロジェクト: mwikenma/usd-unity-sdk
        public bool GetClipAssetPaths(SdfAssetPathArray assetPaths)
        {
            bool ret = UsdCsPINVOKE.UsdClipsAPI_GetClipAssetPaths__SWIG_1(swigCPtr, SdfAssetPathArray.getCPtr(assetPaths));

            return(ret);
        }
コード例 #15
0
ファイル: UsdClipsAPI.cs プロジェクト: mwikenma/usd-unity-sdk
        public SdfAssetPathArray ComputeClipAssetPaths()
        {
            SdfAssetPathArray ret = new SdfAssetPathArray(UsdCsPINVOKE.UsdClipsAPI_ComputeClipAssetPaths__SWIG_1(swigCPtr), true);

            return(ret);
        }
コード例 #16
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SdfAssetPathArray obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }