Esempio n. 1
0
 /// <summary>
 /// Draws the scale ticks, with an invisible circle with r=MeterRadius bisecting each tick
 /// </summary>
 /// <param name="tickLength">The length of each tick</param>
 /// <param name="group">The geometry group to add each tick to</param>
 /// <param name="startAngle">The angle to start drawing ticks at, relative to the negative Y axis</param>
 private void DrawScale(double tickLength, GeometryGroup group, double startAngle = 0.0)
 {
     MeterTickPoints?.Clear();
     if (Intervals == null)
     {
         return;
     }
     foreach (var interval in Intervals)
     {
         DrawInterval(interval, tickLength, group, startAngle);
         startAngle += (interval.EndDegree - interval.StartDegree) * (Math.PI / 180);
     }
 }