Пример #1
0
        public void Draw(ilGrapher ilg)
        {
            for (int i = 1; i < MacroSignal.Count; i++)
            {
                ilg.DrawLine(
                    ColorSignal,
                    2,
                    (float)MacroSignal[i - 1].Key * MacroSignalK.X,
                    (float)MacroSignal[i - 1].Value * MacroSignalK.Y,
                    (float)MacroSignal[i].Key * MacroSignalK.X,
                    (float)MacroSignal[i].Value * MacroSignalK.Y
                    );
                ilg.FillCirclePoint(
                    ColorSignal,
                    2,
                    new PointF(
                        (float)MacroSignal[i].Key * MacroSignalK.X,
                        (float)MacroSignal[i].Value * MacroSignalK.Y
                        )
                    );
            }

            for (int i = 1; i < MacroCoherency.Count; i++)
            {
                ilg.DrawLine(
                    ColorCoherency,
                    2,
                    (float)MacroCoherency[i - 1].Key * MacroCoherencyK.X,
                    (float)MacroCoherency[i - 1].Value * MacroCoherencyK.Y,
                    (float)MacroCoherency[i].Key * MacroCoherencyK.X,
                    (float)MacroCoherency[i].Value * MacroCoherencyK.Y
                    );
                ilg.FillCirclePoint(
                    Color.Blue,
                    2,
                    new PointF(
                        (float)MacroCoherency[i].Key * MacroCoherencyK.X,
                        (float)MacroCoherency[i].Value * MacroCoherencyK.Y
                        )
                    );
            }
        }
 public override void Draw(ilGrapher g)
 {
     g.DrawLine(Color, P1, P2);
 }