/// <summary> /// Create and initialize a new DrawingZone with color and width /// </summary> public DrawingZone(TypeDrawZone type) { DoubleBuffered = true; Lines = new List <Line>(); this.TypeDrawZone = type; Resize += OnSizeChanged; }
/// <summary> /// Create and initialize a new DrawingZone with color and width /// </summary> public DrawingZone(TypeDrawZone type) { DoubleBuffered = true; Lines = new List<Line>(); this.TypeDrawZone = type; Resize += OnSizeChanged; }
/// <summary> /// Add a normalized point /// </summary> /// <param name="p3n">The new point 3D normalized</param> public void AddNormalizedPoint(Point3DNormalized p3n, long timestamp, TypeDrawZone t) { this.Path.Add(new PathStep(p3n, timestamp - Path.Timestamp)); if (this.Path.Count % 10 == 0 && t != TypeDrawZone.Player) { this.Path.DeleteUselessPoint(); } }
/// <summary> /// Add a normalized point /// </summary> /// <param name="p3n">The new point 3D normalized</param> public void AddNormalizedPoint(Point3DNormalized p3n, long timestamp, TypeDrawZone t) { this.Path.Add(new PathStep(p3n, timestamp - Path.Timestamp)); if (this.Path.Count % 10 == 0 && t != TypeDrawZone.Player) this.Path.DeleteUselessPoint(); }