using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
|
using WW.Cad.Base;
|
using WW.Cad.Drawing;
|
using WW.Cad.Drawing.GDI;
|
using WW.Cad.IO;
|
using WW.Cad.Model;
|
using WW.Math;
|
using WW.Cad.Model.Entities;
|
using WW.Actions;
|
using WW.Cad.Model.Tables;
|
using WW.Cad.Model.Objects;
|
|
namespace TProduct.PumpGraph.Dxf
|
{
|
//坐标在一起的那种
|
public partial class MultiSpeed_Split : MultiSpeedBaseCuve
|
{
|
|
#region 流量扬程
|
protected Point2D _diagramLeftBottomPt_QH = new Point2D();//左下角
|
protected Point2D _diagramRightBottomPt_QH = new Point2D();//右下角
|
protected Point2D _diagramLeftTopPt_QH = new Point2D();//左上角
|
protected Point2D _diagramRightTopPt_QH = new Point2D();//右上角
|
#endregion
|
|
#region 流量效率
|
protected Point2D _diagramLeftBottomPt_QE = new Point2D();//左下角
|
protected Point2D _diagramRightBottomPt_QE = new Point2D();//右下角
|
protected Point2D _diagramLeftTopPt_QE = new Point2D();//左上角
|
protected Point2D _diagramRightTopPt_QE = new Point2D();//右上角
|
#endregion
|
|
#region 流量功率
|
protected Point2D _diagramLeftBottomPt_QP = new Point2D();//左下角
|
protected Point2D _diagramRightBottomPt_QP = new Point2D();//右下角
|
protected Point2D _diagramLeftTopPt_QP = new Point2D();//左上角
|
protected Point2D _diagramRightTopPt_QP = new Point2D();//右上角
|
#endregion
|
|
#region 流量汽蚀
|
protected Point2D _diagramLeftBottomPt_QNPSH = new Point2D();//左下角
|
protected Point2D _diagramRightBottomPt_QNPSH = new Point2D();//右下角
|
protected Point2D _diagramLeftTopPt_QNPSH = new Point2D();//左上角
|
protected Point2D _diagramRightTopPt_QNPSH = new Point2D(); //右上角
|
#endregion
|
|
protected double _diagram_Space = 20d;//面板之间的间距
|
protected double _diagram_Cell_Height_Up;//单元格高度(上)
|
protected double _diagram_Cell_Height_Down;//单元格高度(上)
|
protected double _diagram_Cell_Width;//单元格宽度
|
|
|
protected virtual void InitialDiagramSize(double diagramTotalLength, double diagramTotalHeight)
|
{
|
|
}
|
|
//X轴实际尺寸换算为像素尺寸(复制,需要修改)
|
protected override double MapRealToPictQ(double Q)
|
{
|
return ((Q - _coordinateParas.CoordMinQ) * (_diagramRightBottomPt.X - _diagramLeftBottomPt.X) / (_coordinateParas.GridNumberX * _coordinateParas.CoordSpaceQ)) + _diagramLeftBottomPt.X;
|
}
|
|
|
//扬程曲线Y坐标实际尺寸换算为像素尺寸(复制,需要修改)
|
protected override double MapRealToPictH(double H)
|
{
|
double startH = _coordinateParas.CoordMinH + _coordinateParas.StartLineNoH * _coordinateParas.CoordSpaceH;
|
return _diagramLeftBottomPt_QH.Y + (H - startH) * _diagram_Cell_Height_Up / _coordinateParas.CoordSpaceH;
|
}
|
|
//效率曲线Y坐标实际尺寸换算为像素尺寸(复制,需要修改)
|
protected override double MapRealToPictE(double E)
|
{
|
double startE = _coordinateParas.CoordMinE + _coordinateParas.StartLineNoE * _coordinateParas.CoordSpaceE;
|
return _diagramLeftBottomPt_QE.Y + (E - startE) * _diagram_Cell_Height_Up / _coordinateParas.CoordSpaceE;
|
}
|
|
//功率曲线Y坐标实际尺寸换算为像素尺寸(复制,需要修改)
|
protected override double MapRealToPictP(double P)
|
{
|
double startP = _coordinateParas.CoordMinP + _coordinateParas.StartLineNoP * _coordinateParas.CoordSpaceP;
|
return _diagramLeftBottomPt_QP.Y + (P - startP) * _diagram_Cell_Height_Down / _coordinateParas.CoordSpaceP;
|
}
|
|
//汽蚀曲线Y坐标实际尺寸换算为像素尺寸(复制,需要修改)
|
protected override double MapRealToPictNPSH(double NPSH)
|
{
|
if (_coordinateParas.CoordSpaceNPSH < 0.01)
|
return 0;
|
double startNPSH = _coordinateParas.CoordMinNPSH + _coordinateParas.StartLineNoNPSH * _coordinateParas.CoordSpaceNPSH;
|
return _diagramLeftBottomPt_QNPSH.Y + (NPSH - startNPSH) * _diagram_Cell_Height_Down / _coordinateParas.CoordSpaceNPSH;
|
}
|
|
protected WW.Cad.Model.Entities.AttachmentPoint _axisTitleDockV_Left = AttachmentPoint.MiddleRight;
|
}
|
}
|