Example #1
0
 public Sequence(IEnumerable <State> states, int generation, int numConsistent, Sector.ID myID)
 {
     States           = states.ToArray();
     GenerationOffset = generation;
     ConsistentRange  = numConsistent;
     MyID             = myID;
 }
Example #2
0
        private void DrawLine(Pen p, Point offset, float w, float h, Sector.ID to, Sector.WeightedIDDelta from)
        {
            float x, y;

            from.Export(out x, out y);
            PointF p0 = new PointF((x + to.X) * w + offset.X, (y + to.Y) * h + offset.Y);
            PointF p1 = new PointF(to.X * w + offset.X, to.Y * h + offset.Y);

            //Pen p = new Pen(new System.Drawing.Drawing2D.LinearGradientBrush(p0, p1, Color.FromArgb(0, 255, 0, 0), Color.FromArgb(255, 0, 0)));
            graphics.DrawLine(p, p0, p1);
            //p.Dispose();
        }
Example #3
0
 public State(Sector.ID sid) : this()
 {
 }
Example #4
0
 private void DrawLine(Pen p, Point offset, float w, float h, Sector.ID to, Sector.ID from)
 {
     graphics.DrawLine(p, from.X * w + offset.X, from.Y * h + offset.Y,
                       to.X * w + offset.X, to.Y * h + offset.Y);
 }