コード例 #1
0
 public UsdGeomCollectionAPIVector(UsdGeomCollectionAPIVector other) : this(UsdCsPINVOKE.new_UsdGeomCollectionAPIVector__SWIG_1(UsdGeomCollectionAPIVector.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public UsdGeomCollectionAPIVectorEnumerator(UsdGeomCollectionAPIVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
コード例 #3
0
 public void SetRange(int index, UsdGeomCollectionAPIVector values)
 {
     UsdCsPINVOKE.UsdGeomCollectionAPIVector_SetRange(swigCPtr, index, UsdGeomCollectionAPIVector.getCPtr(values));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
        public static UsdGeomCollectionAPIVector GetCollections(UsdSchemaBase schemaObj)
        {
            UsdGeomCollectionAPIVector ret = new UsdGeomCollectionAPIVector(UsdCsPINVOKE.UsdGeomCollectionAPI_GetCollections__SWIG_1(UsdSchemaBase.getCPtr(schemaObj)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
        public static UsdGeomCollectionAPIVector GetCollections(UsdPrim prim)
        {
            UsdGeomCollectionAPIVector ret = new UsdGeomCollectionAPIVector(UsdCsPINVOKE.UsdGeomCollectionAPI_GetCollections__SWIG_0(UsdPrim.getCPtr(prim)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
        public static UsdGeomCollectionAPIVector Repeat(UsdGeomCollectionAPI value, int count)
        {
            global::System.IntPtr      cPtr = UsdCsPINVOKE.UsdGeomCollectionAPIVector_Repeat(UsdGeomCollectionAPI.getCPtr(value), count);
            UsdGeomCollectionAPIVector ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UsdGeomCollectionAPIVector(cPtr, true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
        public UsdGeomCollectionAPIVector GetRange(int index, int count)
        {
            global::System.IntPtr      cPtr = UsdCsPINVOKE.UsdGeomCollectionAPIVector_GetRange(swigCPtr, index, count);
            UsdGeomCollectionAPIVector ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UsdGeomCollectionAPIVector(cPtr, true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #8
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UsdGeomCollectionAPIVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }