public SdfLayerTreeHandleVector(SdfLayerTreeHandleVector other) : this(UsdCsPINVOKE.new_SdfLayerTreeHandleVector__SWIG_1(SdfLayerTreeHandleVector.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public SdfLayerTreeHandleVectorEnumerator(SdfLayerTreeHandleVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public void SetRange(int index, SdfLayerTreeHandleVector values)
 {
     UsdCsPINVOKE.SdfLayerTreeHandleVector_SetRange(swigCPtr, index, SdfLayerTreeHandleVector.getCPtr(values));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public SdfLayerTreeHandleVector GetChildTrees()
        {
            SdfLayerTreeHandleVector ret = new SdfLayerTreeHandleVector(UsdCsPINVOKE.SdfLayerTree_GetChildTrees(swigCPtr), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public static SdfLayerTreeHandle New(SdfLayerHandle layer, SdfLayerTreeHandleVector childTrees)
        {
            SdfLayerTreeHandle ret = new SdfLayerTreeHandle(UsdCsPINVOKE.SdfLayerTree_New__SWIG_1(SdfLayerHandle.getCPtr(layer), SdfLayerTreeHandleVector.getCPtr(childTrees)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #6
0
        public SdfLayerTreeHandle New(SdfLayerHandle layer, SdfLayerTreeHandleVector childTrees, SdfLayerOffset cumulativeOffset)
        {
            SdfLayerTreeHandle ret = new SdfLayerTreeHandle(UsdCsPINVOKE.SdfLayerTreeHandle_New__SWIG_0(swigCPtr, SdfLayerHandle.getCPtr(layer), SdfLayerTreeHandleVector.getCPtr(childTrees), SdfLayerOffset.getCPtr(cumulativeOffset)), true);

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

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

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SdfLayerTreeHandleVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #10
0
        public SdfLayerTreeHandleVector GetChildTrees()
        {
            SdfLayerTreeHandleVector ret = new SdfLayerTreeHandleVector(UsdCsPINVOKE.SdfLayerTreeHandle_GetChildTrees(swigCPtr), false);

            return(ret);
        }