Example #1
0
 public VtValue(GfVec2i obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_14(GfVec2i.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public VtVec2iArray(uint n, GfVec2i value) : this(UsdCsPINVOKE.new_VtVec2iArray__SWIG_4(n, GfVec2i.getCPtr(value)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public GfVec2d(GfVec2i other) : this(UsdCsPINVOKE.new_GfVec2d__SWIG_7(GfVec2i.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public void push_back(GfVec2i elem)
 {
     UsdCsPINVOKE.VtVec2iArray_push_back(swigCPtr, GfVec2i.getCPtr(elem));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #5
0
 public void assign(uint n, GfVec2i fill)
 {
     UsdCsPINVOKE.VtVec2iArray_assign(swigCPtr, n, GfVec2i.getCPtr(fill));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #6
0
 protected void SetValue(int index, GfVec2i value)
 {
     UsdCsPINVOKE.VtVec2iArray_SetValue(swigCPtr, index, GfVec2i.getCPtr(value));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #7
0
        public static bool Equals(GfVec2i lhs, GfVec2i rhs)
        {
            bool ret = UsdCsPINVOKE.GfVec2i_Equals(GfVec2i.getCPtr(lhs), GfVec2i.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #8
0
        public GfVec2i GetProjection(GfVec2i v)
        {
            GfVec2i ret = new GfVec2i(UsdCsPINVOKE.GfVec2i_GetProjection(swigCPtr, GfVec2i.getCPtr(v)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #9
0
        public GfVec2i GetComplement(GfVec2i b)
        {
            GfVec2i ret = new GfVec2i(UsdCsPINVOKE.GfVec2i_GetComplement(swigCPtr, GfVec2i.getCPtr(b)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #10
0
        public static bool operator==(GfVec2i lhs, GfVec2i 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) || GfVec2i.Equals(lhs, rhs)));
        }
Example #11
0
        public GfVec2i Set(int s0, int s1)
        {
            GfVec2i ret = new GfVec2i(UsdCsPINVOKE.GfVec2i_Set(swigCPtr, s0, s1), false);

            return(ret);
        }
Example #12
0
        protected GfVec2i GetValue(int index)
        {
            GfVec2i ret = new GfVec2i(UsdCsPINVOKE.VtVec2iArray_GetValue(swigCPtr, index), false);

            return(ret);
        }
Example #13
0
 public VtVec2iArray(Vt_ArrayForeignDataSource foreignSrc, GfVec2i data, uint size) : this(UsdCsPINVOKE.new_VtVec2iArray__SWIG_2(Vt_ArrayForeignDataSource.getCPtr(foreignSrc), GfVec2i.getCPtr(data), size), true)
 {
 }
Example #14
0
        public static GfVec2i Axis(uint i)
        {
            GfVec2i ret = new GfVec2i(UsdCsPINVOKE.GfVec2i_Axis(i), true);

            return(ret);
        }
Example #15
0
        public static GfVec2i YAxis()
        {
            GfVec2i ret = new GfVec2i(UsdCsPINVOKE.GfVec2i_YAxis(), true);

            return(ret);
        }
Example #16
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfVec2i obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #17
0
 override public bool Equals(object rhs)
 {
     return(GfVec2i.Equals(this, rhs as GfVec2i));
 }