电力油色谱分析图谱,3D图和大卫三角形代码绘制,QT 和 JS

JS的立体图还没弄,今天只弄了QT的三维图和三角图,还有JS的大卫三角图,因为前端的同事也需要用这个图谱,只能给他们写一个JS版本的,脑壳痛

绘制流程:

1、根据导则的边界范围计算出相应的点

2、绘制出填充

3、绘制坐标轴

4、绘制图像标记

 render() {
        this.CalcLocaltion();
        this.DrawBackground("谱图:大卫三角");
        this.DrawPolygon(this.context, this.poly_triangle, 'transparent', 'black');

        this.DrawAreaLines();
        this.DrawAreaBrush();

        this.Draw_Axis_CH4();
        this.Draw_Axis_C2H4();
        this.Draw_Axis_C2H2();

        this.DrawLine(this.context, this.pd_txt_p_a, this.pd_txt_p_b, 'black');
        this.context.font = '18px Arial';
        this.context.fillStyle = 'black';
        this.context.fillText("PD",this.pd_txt_p_b.x,this.pd_txt_p_b.y);

        this.DrawLine(this.context, this.t1_txt_p_a, this.t1_txt_p_b, 'black');
        this.context.fillText("T1",this.t1_txt_p_b.x,this.t1_txt_p_b.y);

        this.DrawLine(this.context,
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值