Ejemplo n.º 1
0
 public GfFrustum(GfVec3d position, GfRotation rotation, GfRange2d window, GfRange1d nearFar, GfFrustum.ProjectionType projectionType) : this(UsdCsPINVOKE.new_GfFrustum__SWIG_2(GfVec3d.getCPtr(position), GfRotation.getCPtr(rotation), GfRange2d.getCPtr(window), GfRange1d.getCPtr(nearFar), (int)projectionType), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
 public GfFrustum(GfMatrix4d camToWorldXf, GfRange2d window, GfRange1d nearFar, GfFrustum.ProjectionType projectionType) : this(UsdCsPINVOKE.new_GfFrustum__SWIG_4(GfMatrix4d.getCPtr(camToWorldXf), GfRange2d.getCPtr(window), GfRange1d.getCPtr(nearFar), (int)projectionType), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 3
0
 public void SetWindow(GfRange2d window)
 {
     UsdCsPINVOKE.GfFrustum_SetWindow(swigCPtr, GfRange2d.getCPtr(window));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 4
0
 public void ExtendBy(GfRange2d range)
 {
     UsdCsPINVOKE.GfRange2d_ExtendBy__SWIG_1(swigCPtr, GfRange2d.getCPtr(range));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 5
0
        public static bool Equals(GfRange2d lhs, GfRange2d rhs)
        {
            bool ret = UsdCsPINVOKE.GfRange2d_Equals(GfRange2d.getCPtr(lhs), GfRange2d.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 6
0
        public GfRange2d IntersectWith(GfRange2d b)
        {
            GfRange2d ret = new GfRange2d(UsdCsPINVOKE.GfRange2d_IntersectWith(swigCPtr, GfRange2d.getCPtr(b)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 7
0
        public static GfRange2d Intersection(GfRange2d a, GfRange2d b)
        {
            GfRange2d ret = new GfRange2d(UsdCsPINVOKE.GfRange2d_Intersection__SWIG_0(GfRange2d.getCPtr(a), GfRange2d.getCPtr(b)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 8
0
        public GfRange2d Union(GfVec2d b)
        {
            GfRange2d ret = new GfRange2d(UsdCsPINVOKE.GfRange2d_Union__SWIG_2(swigCPtr, GfVec2d.getCPtr(b)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 9
0
        public bool IsOutside(GfRange2d range)
        {
            bool ret = UsdCsPINVOKE.GfRange2d_IsOutside(swigCPtr, GfRange2d.getCPtr(range));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 10
0
        public bool Contains(GfRange2d range)
        {
            bool ret = UsdCsPINVOKE.GfRange2d_Contains__SWIG_1(swigCPtr, GfRange2d.getCPtr(range));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 11
0
        public static bool operator==(GfRange2d lhs, GfRange2d 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) || GfRange2d.Equals(lhs, rhs)));
        }
Ejemplo n.º 12
0
        public GfRange2d GetWindow()
        {
            GfRange2d ret = new GfRange2d(UsdCsPINVOKE.GfFrustum_GetWindow(swigCPtr), false);

            return(ret);
        }
Ejemplo n.º 13
0
 override public bool Equals(object rhs)
 {
     return(GfRange2d.Equals(this, rhs as GfRange2d));
 }
Ejemplo n.º 14
0
        public GfRange2d GetQuadrant(uint i)
        {
            GfRange2d ret = new GfRange2d(UsdCsPINVOKE.GfRange2d_GetQuadrant(swigCPtr, i), true);

            return(ret);
        }
Ejemplo n.º 15
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfRange2d obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }