public UsdCollectionAPIVector(UsdCollectionAPIVector other) : this(UsdCsPINVOKE.new_UsdCollectionAPIVector__SWIG_1(UsdCollectionAPIVector.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public UsdCollectionAPIVectorEnumerator(UsdCollectionAPIVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public void SetRange(int index, UsdCollectionAPIVector values)
 {
     UsdCsPINVOKE.UsdCollectionAPIVector_SetRange(swigCPtr, index, UsdCollectionAPIVector.getCPtr(values));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
        public static UsdCollectionAPIVector GetAllCollections(UsdPrim prim)
        {
            UsdCollectionAPIVector ret = new UsdCollectionAPIVector(UsdCsPINVOKE.UsdCollectionAPI_GetAllCollections(UsdPrim.getCPtr(prim)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public static UsdCollectionAPIVector Repeat(UsdCollectionAPI value, int count)
        {
            global::System.IntPtr  cPtr = UsdCsPINVOKE.UsdCollectionAPIVector_Repeat(UsdCollectionAPI.getCPtr(value), count);
            UsdCollectionAPIVector ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UsdCollectionAPIVector(cPtr, true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public UsdCollectionAPIVector GetRange(int index, int count)
        {
            global::System.IntPtr  cPtr = UsdCsPINVOKE.UsdCollectionAPIVector_GetRange(swigCPtr, index, count);
            UsdCollectionAPIVector ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UsdCollectionAPIVector(cPtr, true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UsdCollectionAPIVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }