Exemplo n.º 1
0
 public VtInt64Array(VtInt64Array other) : this(UsdCsPINVOKE.new_VtInt64Array__SWIG_1(VtInt64Array.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
 public VtValue(VtInt64Array obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_30(VtInt64Array.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
 public void swap(VtInt64Array other)
 {
     UsdCsPINVOKE.VtInt64Array_swap(swigCPtr, VtInt64Array.getCPtr(other));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
        public static bool Equals(VtInt64Array lhs, VtInt64Array rhs)
        {
            bool ret = UsdCsPINVOKE.VtInt64Array_Equals(VtInt64Array.getCPtr(lhs), VtInt64Array.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 5
0
        public bool IsIdentical(VtInt64Array other)
        {
            bool ret = UsdCsPINVOKE.VtInt64Array_IsIdentical(swigCPtr, VtInt64Array.getCPtr(other));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public UsdGeomBoolVector ComputeMaskAtTime(UsdTimeCode time, VtInt64Array ids)
        {
            UsdGeomBoolVector ret = new UsdGeomBoolVector(UsdCsPINVOKE.UsdGeomPointInstancer_ComputeMaskAtTime__SWIG_0(swigCPtr, UsdTimeCode.getCPtr(time), VtInt64Array.getCPtr(ids)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public bool InvisIds(VtInt64Array ids, UsdTimeCode time)
        {
            bool ret = UsdCsPINVOKE.UsdGeomPointInstancer_InvisIds(swigCPtr, VtInt64Array.getCPtr(ids), UsdTimeCode.getCPtr(time));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public bool DeactivateIds(VtInt64Array ids)
        {
            bool ret = UsdCsPINVOKE.UsdGeomPointInstancer_DeactivateIds(swigCPtr, VtInt64Array.getCPtr(ids));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        static public VtInt64Array ToVtArray(long[] input)
        {
            var output = new VtInt64Array((uint)input.Length);

            unsafe
            {
                fixed(long *p = input)
                {
                    output.CopyFromArray((IntPtr)p);
                }
            }
            return(output);
        }
Exemplo n.º 10
0
 static public void FromVtArray(VtInt64Array input, ref long[] output)
 {
     if (output.Length != input.size())
     {
         output = UsdIo.ArrayAllocator.Malloc <long>(input.size());
     }
     unsafe
     {
         fixed(long *p = output)
         {
             input.CopyToArray((IntPtr)p);
         }
     }
 }
Exemplo n.º 11
0
 // Convenience API: generates garbage, do not use when performance matters.
 static public long[] FromVtArray(VtInt64Array input)
 {
     long[] output = UsdIo.ArrayAllocator.Malloc <long>(input.size());
     FromVtArray(input, ref output);
     return(output);
 }
Exemplo n.º 12
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VtInt64Array obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemplo n.º 13
0
 static public List <long> ListFromVtArray(VtInt64Array input)
 {
     return(FromVtArray(input).ToList());
 }