Example #1
0
 public GfVec3i(GfVec3i other) : this(UsdCsPINVOKE.new_GfVec3i__SWIG_1(GfVec3i.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public VtVec3iArray(uint n, GfVec3i value) : this(UsdCsPINVOKE.new_VtVec3iArray__SWIG_4(n, GfVec3i.getCPtr(value)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public VtValue(GfVec3i obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_18(GfVec3i.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public void assign(uint n, GfVec3i fill)
 {
     UsdCsPINVOKE.VtVec3iArray_assign(swigCPtr, n, GfVec3i.getCPtr(fill));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #5
0
 public void push_back(GfVec3i elem)
 {
     UsdCsPINVOKE.VtVec3iArray_push_back(swigCPtr, GfVec3i.getCPtr(elem));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #6
0
 protected void SetValue(int index, GfVec3i value)
 {
     UsdCsPINVOKE.VtVec3iArray_SetValue(swigCPtr, index, GfVec3i.getCPtr(value));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #7
0
        public static bool Equals(GfVec3i lhs, GfVec3i rhs)
        {
            bool ret = UsdCsPINVOKE.GfVec3i_Equals(GfVec3i.getCPtr(lhs), GfVec3i.getCPtr(rhs));

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

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

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #10
0
        public static bool operator==(GfVec3i lhs, GfVec3i 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) || GfVec3i.Equals(lhs, rhs)));
        }
Example #11
0
        public static GfVec3i ZAxis()
        {
            GfVec3i ret = new GfVec3i(UsdCsPINVOKE.GfVec3i_ZAxis(), true);

            return(ret);
        }
Example #12
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfVec3i obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #13
0
 override public bool Equals(object rhs)
 {
     return(GfVec3i.Equals(this, rhs as GfVec3i));
 }
Example #14
0
        protected GfVec3i GetValue(int index)
        {
            GfVec3i ret = new GfVec3i(UsdCsPINVOKE.VtVec3iArray_GetValue(swigCPtr, index), false);

            return(ret);
        }
Example #15
0
        public static GfVec3i Axis(uint i)
        {
            GfVec3i ret = new GfVec3i(UsdCsPINVOKE.GfVec3i_Axis(i), true);

            return(ret);
        }
Example #16
0
        public GfVec3i Set(int s0, int s1, int s2)
        {
            GfVec3i ret = new GfVec3i(UsdCsPINVOKE.GfVec3i_Set(swigCPtr, s0, s1, s2), false);

            return(ret);
        }
Example #17
0
 public VtVec3iArray(Vt_ArrayForeignDataSource foreignSrc, GfVec3i data, uint size) : this(UsdCsPINVOKE.new_VtVec3iArray__SWIG_2(Vt_ArrayForeignDataSource.getCPtr(foreignSrc), GfVec3i.getCPtr(data), size), true)
 {
 }