Esempio n. 1
0
 /// <summary>
 /// 判断图层是否在显示范围内
 /// </summary>
 /// <param name="arise">显示范围</param>
 /// <param name="point">显示坐标</param>
 /// <returns></returns>
 protected bool Viewble(Arise arise, Coord point)
 {
     if (!MatchUtils.IsEmpty(this.target) && !MatchUtils.IsEmpty(this.target.Netmap))
     {
         bool permit = true;
         {
             if (!MatchUtils.IsEmpty(point))
             {
                 Bound bound = this.target.Viewbox(false);
                 {
                     permit = !MatchUtils.IsEmpty(bound) ? bound.Contain(this.target, point) : false;
                 }
             }
             if (!MatchUtils.IsEmpty(arise) && permit)
             {
                 double scale = this.target.Netmap.Deg2sc();
                 {
                     permit = scale > 0 ? (arise.Min <= 0.0 || scale <= arise.Min) && (arise.Max <= 0.0 || scale >= arise.Max) : false;
                 }
             }
         }
         return(permit);
     }
     return(false);
 }
Esempio n. 2
0
 public Geom()
     : base()
 {
     this.arise  = null;
     this.matte  = false;
     this.amend  = false;
     this.handle = null;
 }
Esempio n. 3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public Tips()
     : base()
 {
     this.handle = null;
     this.matte  = false;
     this.Alpha  = 85;
     this.arise  = null;
     this.quote  = null;
     this.fonts  = null;
     this.gauge  = null;
     this.drift  = null;
     this.point  = null;
     this.scrap  = null;
     this.color  = Color.FromRgb(204, 85, 34);
 }
Esempio n. 4
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public Mark()
     : base()
 {
     this.handle = null;
     this.matte  = false;
     this.amend  = false;
     this.label  = null;
     this.image  = null;
     this.arise  = null;
     this.fonts  = null;
     this.frame  = null;
     this.dimen  = null;
     this.calib  = null;
     this.point  = null;
     this.color  = Colors.Blue;
     this.scene  = Colors.Transparent;
 }
Esempio n. 5
0
 /// <summary>
 /// 判断图层是否在显示范围内
 /// </summary>
 /// <param name="arise">显示范围</param>
 /// <returns></returns>
 protected bool Viewble(Arise arise)
 {
     return(this.Viewble(arise, null));
 }