コード例 #1
0
 /// <summary>
 /// Measures layout entities and defines unassigned properties.
 /// </summary>
 /// <param name="State">Current drawing state.</param>
 /// <param name="PathState">Current path state.</param>
 public virtual void Measure(DrawingState State, PathState PathState)
 {
     if (this.defined)
     {
         PathState.Set(this.xCoordinate, this.yCoordinate);
         PathState.Set(this.xCoordinate2, this.yCoordinate2);
         PathState.Set(this.xCoordinate3, this.yCoordinate3);
     }
 }
コード例 #2
0
 /// <summary>
 /// Draws layout entities.
 /// </summary>
 /// <param name="State">Current drawing state.</param>
 /// <param name="PathState">Current path state.</param>
 /// <param name="Path">Path being generated.</param>
 public virtual void Draw(DrawingState State, PathState PathState, SKPath Path)
 {
     if (this.defined)
     {
         this.P1 = Path.LastPoint;
         PathState.CloseLine();
         this.P2 = Path.LastPoint;
     }
 }
コード例 #3
0
ファイル: LineToRel.cs プロジェクト: iamr8/IoTGateway
 /// <summary>
 /// Draws layout entities.
 /// </summary>
 /// <param name="State">Current drawing state.</param>
 /// <param name="PathState">Current path state.</param>
 /// <param name="Path">Path being generated.</param>
 public override void Draw(DrawingState State, PathState PathState, SKPath Path)
 {
     if (this.defined)
     {
         this.P1 = Path.LastPoint;
         Path.LineTo(PathState.Add(this.xCoordinate, this.yCoordinate));
         this.P2 = Path.LastPoint;
     }
 }
コード例 #4
0
ファイル: CubicToRel.cs プロジェクト: iamr8/IoTGateway
 /// <summary>
 /// Measures layout entities and defines unassigned properties.
 /// </summary>
 /// <param name="State">Current drawing state.</param>
 /// <param name="PathState">Current path state.</param>
 public override void Measure(DrawingState State, PathState PathState)
 {
     if (this.defined)
     {
         PathState.Add(this.xCoordinate, this.yCoordinate);
         PathState.Add(this.xCoordinate2, this.yCoordinate2);
         PathState.Add(this.xCoordinate3, this.yCoordinate3);
     }
 }
コード例 #5
0
ファイル: ConicToRel.cs プロジェクト: iamr8/IoTGateway
 /// <summary>
 /// Draws layout entities.
 /// </summary>
 /// <param name="State">Current drawing state.</param>
 /// <param name="PathState">Current path state.</param>
 /// <param name="Path">Path being generated.</param>
 public override void Draw(DrawingState State, PathState PathState, SKPath Path)
 {
     if (this.defined)
     {
         this.P0 = Path.LastPoint;
         this.P1 = PathState.Add(this.xCoordinate, this.yCoordinate);
         this.P2 = PathState.Add(this.xCoordinate2, this.yCoordinate2);
         Path.ConicTo(this.P1, this.P2, this.weight);
     }
 }
コード例 #6
0
		/// <summary>
		/// Draws layout entities.
		/// </summary>
		/// <param name="State">Current drawing state.</param>
		/// <param name="PathState">Current path state.</param>
		/// <param name="Path">Path being generated.</param>
		public override void Draw(DrawingState State, PathState PathState, SKPath Path)
		{
			if (this.defined)
			{
				SKPoint P = PathState.Add(this.xCoordinate, this.yCoordinate);
				Path.ArcTo(this.r, this.r, 0, SKPathArcSize.Small,
					this.clockDir ? SKPathDirection.Clockwise : SKPathDirection.CounterClockwise,
					P.X, P.Y);
			}
		}
コード例 #7
0
ファイル: LineTo.cs プロジェクト: iamr8/IoTGateway
 /// <summary>
 /// Draws layout entities.
 /// </summary>
 /// <param name="State">Current drawing state.</param>
 /// <param name="PathState">Current path state.</param>
 /// <param name="Path">Path being generated.</param>
 public virtual void Draw(DrawingState State, PathState PathState, SKPath Path)
 {
     if (this.defined)
     {
         this.P1 = Path.LastPoint;
         PathState.Set(this.xCoordinate, this.yCoordinate);
         Path.LineTo(this.xCoordinate, this.yCoordinate);
         this.P2 = Path.LastPoint;
     }
 }
コード例 #8
0
ファイル: QuadraticTo.cs プロジェクト: iamr8/IoTGateway
        /// <summary>
        /// Draws layout entities.
        /// </summary>
        /// <param name="State">Current drawing state.</param>
        /// <param name="PathState">Current path state.</param>
        /// <param name="Path">Path being generated.</param>
        public virtual void Draw(DrawingState State, PathState PathState, SKPath Path)
        {
            if (this.defined)
            {
                this.P0 = Path.LastPoint;
                this.P1 = new SKPoint(this.xCoordinate, this.yCoordinate);
                this.P2 = new SKPoint(this.xCoordinate2, this.yCoordinate2);

                PathState.Set(this.xCoordinate, this.yCoordinate);
                PathState.Set(this.xCoordinate2, this.yCoordinate2);
                Path.QuadTo(this.P1, this.P2);
            }
        }