|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace RiverPortray
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 网格参数信息.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class GridParameter
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Initializes a new instance of the <see cref="GridParameter"/> class.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public GridParameter()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Initializes a new instance of the <see cref="GridParameter"/> class.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="xNum">The x num.</param>
|
|
|
|
|
|
/// <param name="yNum">The y num.</param>
|
|
|
|
|
|
/// <param name="deltX">The delt x.</param>
|
|
|
|
|
|
/// <param name="deltY">The delt y.</param>
|
|
|
|
|
|
/// <param name="zMin">The z min.</param>
|
|
|
|
|
|
/// <param name="zMax">The z max.</param>
|
|
|
|
|
|
public GridParameter(int xNum, int yNum, double deltX, double deltY, double zMin, double zMax)
|
|
|
|
|
|
: this()
|
|
|
|
|
|
{
|
|
|
|
|
|
XNum = xNum;
|
|
|
|
|
|
YNum = yNum;
|
|
|
|
|
|
DeltX = deltX;
|
|
|
|
|
|
DeltY = deltY;
|
|
|
|
|
|
ZMin = zMin;
|
|
|
|
|
|
ZMax = zMax;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
|
|
///// Gets or sets the 起始X.
|
|
|
|
|
|
///// </summary>
|
|
|
|
|
|
//[Category("网格信息"), DisplayName("起始X")]
|
|
|
|
|
|
//public double XMin { get; set; }
|
|
|
|
|
|
///// <summary>
|
|
|
|
|
|
///// Gets or sets the 起始Y.
|
|
|
|
|
|
///// </summary>
|
|
|
|
|
|
//[Category("网格信息"), DisplayName("起始Y")]
|
|
|
|
|
|
//public double YMin { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets 列数.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Category("网格信息"), DisplayName("列数")]
|
|
|
|
|
|
[ReadOnly(true)]
|
|
|
|
|
|
public int XNum { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets 行数.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Category("网格信息"), DisplayName("行数")]
|
|
|
|
|
|
[ReadOnly(true)]
|
|
|
|
|
|
public int YNum { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets X步长.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Category("网格信息"), DisplayName("X步长")]
|
|
|
|
|
|
[ReadOnly(true)]
|
|
|
|
|
|
public double DeltX { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets Y步长.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Category("网格信息"), DisplayName("Y步长")]
|
|
|
|
|
|
[ReadOnly(true)]
|
|
|
|
|
|
public double DeltY { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets Z最小.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Category("网格信息"), DisplayName("Z最小")]
|
|
|
|
|
|
[ReadOnly(true)]
|
|
|
|
|
|
public double ZMin { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets Z最大.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Category("网格信息"), DisplayName("Z最大")]
|
|
|
|
|
|
[ReadOnly(true)]
|
|
|
|
|
|
public double ZMax { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|