You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWATI/Include/mTool/mToolPvt/iWxPvtUtilItemPseudo.h

76 lines
1.7 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "iWxPvtUtilItem.h"
class M_TOOL_PVT_EXPORT iWxPvtUtilItemPseudo : public iWxPvtUtilItem
{
Q_OBJECT
public:
explicit iWxPvtUtilItemPseudo(QWidget *parent = 0);
~iWxPvtUtilItemPseudo();
// 传递参数
virtual void setInfos(QString sFluidType, QString sPhaseType, QString sPara);
// 传递参数
void calAndFreshBy(QMap<QString, VecPointF>& mapInputs, \
iWxPvtUtilItem* pWxZg, iWxPvtUtilItem* pWxMug);
// 组织四列拟压力相关的数据
// VecDouble vecP = vvec[0]
// VecDouble vecPs = vvec[1]
// VecDouble vecZg = vvec[2]
// VecDouble vecMug = vvec[3]
bool getPvtPseuInfos(VVecDouble& vvec);
// 文件标识
virtual QString getFilePvtTag();
protected:
virtual void initUI_Others_Paras(QHBoxLayout* pLayoutH);
// 四个范围点nWhich0-3
double getPrsScale(int nWhich);
// 步长
double getPrsStep();
// 获取数值
double getCtrlValueBy(QString sKey);
protected slots:
// 压力段范围点改变
void slotPrsScaleChanged();
// 压力段步长改变
void slotPrsStepChanged();
// 根据当前压力段范围点重新计算
void slotBtnRefresh();
private:
// 初始化
virtual QWidget* initUI_Chart();
virtual void initUI_Others();
// 算法有多少种
virtual void dealwithMethods();
// 标题
virtual void dealwithTitles();
// 计算点
virtual bool calResultPos(QPointF& pt);
// 组织数据
bool organizeInputs(QString sX, \
QMap<QString, VecPointF>& mapInputs, \
QMap<QString, VecFloat>& mapParas);
signals:
private:
VecFloat m_vecZg;
VecFloat m_vecMug;
};