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.
nmWTAI-Platform/Include/mAlg/mAlgPseudo/iAlgPseuCaller.h

40 lines
997 B
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 "Defines.h"
#include "mAlgPseudo_global.h"
#include "mAlgDefines.h"
#include "mAlgMatrix.h"
// 拟压力相关的通用调用入口(属于用的部分)
// 本类主要用于:是在处理解释过程中进行拟压力/压力转换的入口
// 注1.本类会根据当前模式自动调用iAlgPseuConvertCommon/iAlgPseuConvertComp/iAlgPseuConvertTri
// 2.此处默认拟压力数据已经完全准备好
class M_ALGPSEUDO_EXPORT iAlgPseuCaller
{
public:
iAlgPseuCaller();
// 当前是否采用三区模式计算拟压力
static void setPseuMode(int n);
static int getPseuMode();
// 主调用函数,内部自动区分压力还是拟压力
static bool calP(double ps, double &p, int which = -1);
static bool calPS(double p, double &ps, int which = -1);
private:
// 当前是否采用三区模式计算拟压力
// 0常规、1:三区拟压力(白)、2:组分三区拟压力(徐)
static int m_nPseuMode;
};