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