Example #1
0
 /// <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;
 }
Example #2
0
 /// <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;
 }
Example #3
0
        /// <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();
            }
        }
Example #4
0
        /// <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();
        }