示例#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;
 }
示例#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;
 }
示例#3
0
文件: Line.cs 项目: Araxor/mouvtor
        /// <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();
            }
        }
示例#4
0
文件: Line.cs 项目: Araxor/mouvtor
        /// <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();
        }