コード例 #1
0
 /// <summary>
 /// Draw trace from pad to pad
 /// </summary>
 public PointF DrawTrace(Components.Pad pad, Components.Pad to, double width = 0.15)
 {
     return(DrawTrace(pad.Location, to.Location, pad.Net, pad.Owner.Front, width));
 }
コード例 #2
0
        /// <summary>
        /// Drawe a trace from pad with delta
        /// </summary>
        public PointF DrawTrace(Components.Pad from, SizeF size, double width = 0.15)
        {
            var dest = from.Location + size;

            return(DrawTrace(from, dest, width));
        }
コード例 #3
0
 /// <summary>
 /// Start new trace from pad
 /// </summary>
 /// <returns></returns>
 public PointF SetTraceStart(Components.Pad pad, double width = 0.15)
 {
     return(SetTraceStart(pad.Location, pad.Net, pad.Owner.Front, width));
 }
コード例 #4
0
 /// <summary>
 /// Drawe a trace from pad with delta
 /// </summary>
 public PointF DrawTrace(Components.Pad from, double dX, double dY, double width = 0.15)
 {
     return(DrawTrace(from, new SizeF((float)dX, (float)(dY)), width));
 }
コード例 #5
0
 /// <summary>
 /// Continue trace to a pad. This will adjust the net on the pad
 /// </summary>
 /// <param name="to">Pad to advance to</param>
 /// <returns>Next point</returns>
 public PointF ContinueTrace(Components.Pad to)
 {
     to.Net = lastNet;
     return(DrawTrace(lastPoint, to.Location, lastNet, lastFront, lastWidth));
 }