tx
2025-04-09 fa7510e1ed63df0366787fa4ed1b3db6426d2b46
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
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;
    }
}