Exemplo n.º 1
0
 public void SetWGeo2DDatas(WGeometry2D WGC, bool Update_Bound)
 {
     Entities = WGC.Entities;
     PsList   = WGC.PsList;
     if (Update_Bound == false)
     {
         return;
     }
     this.Bounds = new BoundingBox(
         (float)WGC.Bounds.Xmin,
         (float)WGC.Bounds.Xmax,
         (float)WGC.Bounds.Ymin,
         (float)WGC.Bounds.Ymax);
 }
Exemplo n.º 2
0
        private void RenderPoints(ScreenTrans zoom, WGeos2D_PsList PsList)
        {
            Ps = new PointF[PsList.Count + 1];
            for (int i = 1; i <= PsList.Count; i++)
            {
                if (PsList[i] == null)
                {
                    Ps[i] = new PointF(float.MaxValue, float.MaxValue);
                }
                Ps[i] = new PointF((float)PsList[i].X, (float)PsList[i].Y);
                Ps[i] = zoom.WorldToScreen(Ps[i].X, Ps[i].Y);

                if (RParas.SwitchHP == true && PsList[i].HardCheck == true)
                {
                    G.FillEllipse(RParas.BrushHP, Ps[i].X - RParas.Rhp / 2, Ps[i].Y - RParas.Rhp / 2, RParas.Rhp, RParas.Rhp);
                }
                if (RParas.SwitchSP == true && PsList[i].HardCheck == false)
                {
                    G.FillEllipse(RParas.BrushSP, Ps[i].X - RParas.Rsp / 2, Ps[i].Y - RParas.Rsp / 2, RParas.Rsp, RParas.Rsp);
                }
            }
        }