using WW.Cad.Model.Entities;
|
using WW.Math;
|
|
namespace TProduct.PumpGraph.Dxf
|
{
|
public partial class LxpFeatChart : FeatChart
|
{
|
// 额定点(倒三角形式)
|
protected void DrawRatedPoint()
|
{
|
if (_ratedParas == null)
|
return;
|
|
if (!_isDrawRatedParasCurve)
|
return;
|
|
Point2D centerPt = new Point2D();
|
centerPt.X = MapRealToPictQ(_ratedParas.Q);
|
centerPt.Y = MapRealToPictH(_ratedParas.H);
|
|
|
DxfLine lineH = new DxfLine(new Point2D(centerPt.X, centerPt.Y),
|
new Point2D(centerPt.X - 25, centerPt.Y));
|
lineH.LineWeight = 35;
|
lineH.Color = _designPointColor;
|
_dxfFileModel.Entities.Add(lineH);
|
|
|
DxfLine lineV = new DxfLine(new Point2D(centerPt.X, centerPt.Y),
|
new Point2D(centerPt.X, centerPt.Y - 16));
|
lineV.LineWeight = 35;
|
lineV.Color = _designPointColor;
|
_dxfFileModel.Entities.Add(lineV);
|
|
|
DxfLine lineX1 = new DxfLine(new Point2D(centerPt.X, centerPt.Y - 16),
|
new Point2D(centerPt.X - 25, centerPt.Y));
|
lineX1.LineWeight = 35;
|
lineX1.Color = _designPointColor;
|
_dxfFileModel.Entities.Add(lineX1);
|
|
DxfLine lineX2 = new DxfLine(new Point2D(centerPt.X, centerPt.Y - 11.26),
|
new Point2D(centerPt.X - 17.45, centerPt.Y));
|
lineX2.LineWeight = 35;
|
lineX2.Color = _designPointColor;
|
_dxfFileModel.Entities.Add(lineX2);
|
|
|
DxfLine lineX3 = new DxfLine(new Point2D(centerPt.X, centerPt.Y - 6.52),
|
new Point2D(centerPt.X - 10.1, centerPt.Y));
|
lineX3.LineWeight = 35;
|
lineX3.Color = _designPointColor;
|
_dxfFileModel.Entities.Add(lineX3);
|
}
|
|
}
|
}
|