예제 #1
0
 /// <summary>
 /// Returns true if the object is visible on the view.
 /// </summary>
 /// <returns>true</returns>
 /// <c>false</c>
 /// <param name="view">View.</param>
 public override bool IsVisibleIn(View2D view)
 {
     if (view.OverlapsWithBox(MinX, MinY, MaxX, MaxY))
     {
         return(true); // maybe a better hittest?
     }
     return(false);
 }
예제 #2
0
        /// <summary>
        /// Returns true if the object is visible on the view.
        /// </summary>
        /// <returns>true</returns>
        /// <c>false</c>
        /// <param name="view">View.</param>
        /// <param name="zoom"></param>
        public bool IsVisibleIn(View2D view, float zoom)
        {
            if (this.MinZoom > zoom || this.MaxZoom < zoom)
            { // outside of zoom bounds!
                return(false);
            }

            return(view.OverlapsWithBox(this.Left, this.Top, this.Right, this.Bottom));
        }
예제 #3
0
        /// <summary>
        /// Returns true if the object is visible on the view.
        /// </summary>
        /// <returns>true</returns>
        /// <c>false</c>
        /// <param name="view">View.</param>
        /// <param name="zoom"></param>
        public override bool IsVisibleIn(View2D view, float zoom)
        {
            if (this.MinZoom > zoom || this.MaxZoom < zoom)
            { // outside of zoom bounds!
                return(false);
            }

            if (view.OverlapsWithBox(MinX, MinY, MaxX, MaxY))
            {
                return(true); // maybe a better hittest?
            }
            return(false);
        }
예제 #4
0
        /// <summary>
        /// Returns true if the object is visible on the view.
        /// </summary>
        /// <returns>true</returns>
        /// <c>false</c>
        /// <param name="view">View.</param>
        /// <param name="zoom"></param>
        public bool IsVisibleIn(View2D view, float zoom)
        {
            if (this.MinZoom > zoom || this.MaxZoom < zoom)
            { // outside of zoom bounds!
                return false;
            }

            if (view.OverlapsWithBox (MinX, MinY, MaxX, MaxY)) {
                return true; // maybe a better hittest?
            }
            return false;
        }
예제 #5
0
        /// <summary>
        /// Returns true if the object is visible on the view.
        /// </summary>
        /// <returns>true</returns>
        /// <c>false</c>
        /// <param name="view">View.</param>
        /// <param name="zoom"></param>
        public override bool IsVisibleIn(View2D view, float zoom)
        {
            if (this.MinZoom > zoom || this.MaxZoom < zoom)
            { // outside of zoom bounds!
                return false;
            }

            return view.OverlapsWithBox(this.Left, this.Top, this.Right, this.Bottom);
        }
예제 #6
0
 /// <summary>
 /// Returns true if the object is visible on the view.
 /// </summary>
 /// <returns>true</returns>
 /// <c>false</c>
 /// <param name="view">View.</param>
 ///
 public override bool IsVisibleIn(View2D view)
 {
     return(view.OverlapsWithBox(this.Left, this.Top, this.Right, this.Bottom));
 }
예제 #7
0
파일: Polygon2D.cs 프로젝트: JoeCooper/ui
 /// <summary>
 /// Returns true if the object is visible on the view.
 /// </summary>
 /// <returns>true</returns>
 /// <c>false</c>
 /// <param name="view">View.</param>
 public override bool IsVisibleIn(View2D view)
 {
     if (view.OverlapsWithBox(MinX, MinY, MaxX, MaxY))
     {
         return true; // maybe a better hittest?
     }
     return false;
 }
예제 #8
0
파일: Image2D.cs 프로젝트: JoeCooper/ui
 /// <summary>
 /// Returns true if the object is visible on the view.
 /// </summary>
 /// <returns>true</returns>
 /// <c>false</c>
 /// <param name="view">View.</param>
 /// 
 public override bool IsVisibleIn(View2D view)
 {
     return view.OverlapsWithBox(this.Left, this.Top, this.Right, this.Bottom);
 }