Esempio n. 1
0
 public UsdShadeMaterialVector(UsdShadeMaterialVector other) : this(UsdCsPINVOKE.new_UsdShadeMaterialVector__SWIG_1(UsdShadeMaterialVector.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
 public UsdShadeMaterialVectorEnumerator(UsdShadeMaterialVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Esempio n. 3
0
 public void SetRange(int index, UsdShadeMaterialVector values)
 {
     UsdCsPINVOKE.UsdShadeMaterialVector_SetRange(swigCPtr, index, UsdShadeMaterialVector.getCPtr(values));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public static UsdShadeMaterialVector ComputeBoundMaterials(UsdPrimVector prims)
        {
            UsdShadeMaterialVector ret = new UsdShadeMaterialVector(UsdCsPINVOKE.UsdShadeMaterialBindingAPI_ComputeBoundMaterials__SWIG_2(UsdPrimVector.getCPtr(prims)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public static UsdShadeMaterialVector ComputeBoundMaterials(UsdPrimVector prims, TfToken materialPurpose, UsdRelationshipVector bindingRels)
        {
            UsdShadeMaterialVector ret = new UsdShadeMaterialVector(UsdCsPINVOKE.UsdShadeMaterialBindingAPI_ComputeBoundMaterials__SWIG_0(UsdPrimVector.getCPtr(prims), TfToken.getCPtr(materialPurpose), UsdRelationshipVector.getCPtr(bindingRels)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 6
0
        public static UsdShadeMaterialVector Repeat(UsdShadeMaterial value, int count)
        {
            global::System.IntPtr  cPtr = UsdCsPINVOKE.UsdShadeMaterialVector_Repeat(UsdShadeMaterial.getCPtr(value), count);
            UsdShadeMaterialVector ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UsdShadeMaterialVector(cPtr, true);

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

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