Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
        }