예제 #1
0
 public UsdGeomSubsetVector(UsdGeomSubsetVector other) : this(UsdCsPINVOKE.new_UsdGeomSubsetVector__SWIG_1(UsdGeomSubsetVector.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
 public UsdGeomSubsetVectorEnumerator(UsdGeomSubsetVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
예제 #3
0
 public void SetRange(int index, UsdGeomSubsetVector values)
 {
     UsdCsPINVOKE.UsdGeomSubsetVector_SetRange(swigCPtr, index, UsdGeomSubsetVector.getCPtr(values));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #4
0
        public static UsdGeomSubsetVector GetMaterialBindSubsets(UsdGeomImageable geom)
        {
            UsdGeomSubsetVector ret = new UsdGeomSubsetVector(UsdCsPINVOKE.UsdShadeMaterial_GetMaterialBindSubsets(UsdGeomImageable.getCPtr(geom)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #5
0
        public static bool ValidateSubsets(UsdGeomSubsetVector subsets, uint elementCount, TfToken familyType, /*cstype*/ out string reason)
        {
            bool ret = UsdCsPINVOKE.UsdGeomSubset_ValidateSubsets(UsdGeomSubsetVector.getCPtr(subsets), elementCount, TfToken.getCPtr(familyType), out reason);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #6
0
        public static VtIntArray GetUnassignedIndices(UsdGeomSubsetVector subsets, uint elementCount)
        {
            VtIntArray ret = new VtIntArray(UsdCsPINVOKE.UsdGeomSubset_GetUnassignedIndices__SWIG_1(UsdGeomSubsetVector.getCPtr(subsets), elementCount), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #7
0
        public static UsdGeomSubsetVector GetGeomSubsets(UsdGeomImageable geom, TfToken elementType)
        {
            UsdGeomSubsetVector ret = new UsdGeomSubsetVector(UsdCsPINVOKE.UsdGeomSubset_GetGeomSubsets__SWIG_1(UsdGeomImageable.getCPtr(geom), TfToken.getCPtr(elementType)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #8
0
        public static UsdGeomSubsetVector Repeat(UsdGeomSubset value, int count)
        {
            global::System.IntPtr cPtr = UsdCsPINVOKE.UsdGeomSubsetVector_Repeat(UsdGeomSubset.getCPtr(value), count);
            UsdGeomSubsetVector   ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UsdGeomSubsetVector(cPtr, true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #9
0
        public UsdGeomSubsetVector GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = UsdCsPINVOKE.UsdGeomSubsetVector_GetRange(swigCPtr, index, count);
            UsdGeomSubsetVector   ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UsdGeomSubsetVector(cPtr, true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public UsdGeomSubsetVector GetMaterialBindSubsets()
        {
            UsdGeomSubsetVector ret = new UsdGeomSubsetVector(UsdCsPINVOKE.UsdShadeMaterialBindingAPI_GetMaterialBindSubsets(swigCPtr), true);

            return(ret);
        }
예제 #11
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UsdGeomSubsetVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }