| | |
| | | |
| | | private List<Yw.Geometry.Point2d> _pt_ql_list; |
| | | |
| | | private ValvePerformCoordinate _coordinate_paras; |
| | | private ValveCoordinate _coordinate_paras; |
| | | private bool _initial_data = false; |
| | | |
| | | |
| | |
| | | |
| | | #region Public Evnet |
| | | |
| | | public event Action<ValvePerformCoordinate> OnCurveCoordinateChanged; |
| | | public event Action<ValveCoordinate> OnCurveCoordinateChanged; |
| | | |
| | | public event Action<List<Yw.Geometry.Point2d>> OnDefinePointChanged; |
| | | |
| | |
| | | |
| | | _def_pt_ql_list = def_pt_ql_list; |
| | | |
| | | _coordinate_paras = ValvePerformCoordinate.ToModel(coordinate_paras); |
| | | _coordinate_paras = ValveCoordinate.ToModel(coordinate_paras); |
| | | |
| | | UpdateChart(calc_coordinate); |
| | | } |
| | |
| | | if (_pt_ql_list == null || _pt_ql_list.Count < 4) |
| | | { |
| | | //设置成白板坐标 |
| | | _coordinate_paras = new ValvePerformCoordinate(); |
| | | _coordinate_paras = new ValveCoordinate(); |
| | | _coordinate_paras.GridNumberX = 30; |
| | | _coordinate_paras.GridNumberY = 16; |
| | | //显示的坐标线号 |
| | |
| | | return; |
| | | } |
| | | |
| | | _coordinate_paras = ValvePerformCoordinate.CalcCoordinate(_pt_ql_list); |
| | | _coordinate_paras = ValveCoordinate.CalcCoordinate(_pt_ql_list); |
| | | } |
| | | |
| | | /// <summary> |