예제 #1
0
 public VtVec4iArray(uint n, GfVec4i value) : this(UsdCsPINVOKE.new_VtVec4iArray__SWIG_5(n, GfVec4i.getCPtr(value)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
 public VtValue(GfVec4i obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_22(GfVec4i.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #3
0
 public GfVec4d(GfVec4i other) : this(UsdCsPINVOKE.new_GfVec4d__SWIG_6(GfVec4i.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #4
0
 protected void SetValue(int index, GfVec4i value)
 {
     UsdCsPINVOKE.VtVec4iArray_SetValue(swigCPtr, index, GfVec4i.getCPtr(value));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #5
0
 public void push_back(GfVec4i elem)
 {
     UsdCsPINVOKE.VtVec4iArray_push_back(swigCPtr, GfVec4i.getCPtr(elem));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #6
0
 public void assign(uint n, GfVec4i fill)
 {
     UsdCsPINVOKE.VtVec4iArray_assign(swigCPtr, n, GfVec4i.getCPtr(fill));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #7
0
        public GfVec4i GetComplement(GfVec4i b)
        {
            GfVec4i ret = new GfVec4i(UsdCsPINVOKE.GfVec4i_GetComplement(swigCPtr, GfVec4i.getCPtr(b)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #8
0
        public static bool Equals(GfVec4i lhs, GfVec4i rhs)
        {
            bool ret = UsdCsPINVOKE.GfVec4i_Equals(GfVec4i.getCPtr(lhs), GfVec4i.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #9
0
        public GfVec4i GetProjection(GfVec4i v)
        {
            GfVec4i ret = new GfVec4i(UsdCsPINVOKE.GfVec4i_GetProjection(swigCPtr, GfVec4i.getCPtr(v)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #10
0
        public static bool operator==(GfVec4i lhs, GfVec4i rhs)
        {
            // The Swig binding glue will re-enter this operator comparing to null, so
            // that case must be handled explicitly to avoid an infinite loop. This is still
            // not great, since it crosses the C#/C++ barrier twice. A better approache might
            // be to return a simple value from C++ that can be compared in C#.
            bool lnull = lhs as object == null;
            bool rnull = rhs as object == null;

            return((lnull == rnull) && ((lnull && rnull) || GfVec4i.Equals(lhs, rhs)));
        }
예제 #11
0
 public VtVec4iArray(Vt_ArrayForeignDataSource foreignSrc, GfVec4i data, uint size) : this(UsdCsPINVOKE.new_VtVec4iArray__SWIG_2(Vt_ArrayForeignDataSource.getCPtr(foreignSrc), GfVec4i.getCPtr(data), size), true)
 {
 }
예제 #12
0
        public GfVec4i Set(int s0, int s1, int s2, int s3)
        {
            GfVec4i ret = new GfVec4i(UsdCsPINVOKE.GfVec4i_Set(swigCPtr, s0, s1, s2, s3), false);

            return(ret);
        }
예제 #13
0
        public static GfVec4i Axis(uint i)
        {
            GfVec4i ret = new GfVec4i(UsdCsPINVOKE.GfVec4i_Axis(i), true);

            return(ret);
        }
예제 #14
0
        public static GfVec4i WAxis()
        {
            GfVec4i ret = new GfVec4i(UsdCsPINVOKE.GfVec4i_WAxis(), true);

            return(ret);
        }
예제 #15
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfVec4i obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
예제 #16
0
 override public bool Equals(object rhs)
 {
     return(GfVec4i.Equals(this, rhs as GfVec4i));
 }
예제 #17
0
        protected GfVec4i GetValue(int index)
        {
            GfVec4i ret = new GfVec4i(UsdCsPINVOKE.VtVec4iArray_GetValue(swigCPtr, index), false);

            return(ret);
        }