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.
AppFlow/FITK_Interface/FITKInterfaceFlowOF/FITKOFTurbulenceManager.h

88 lines
2.6 KiB
C

/**********************************************************************
* @file FITKOFTurbulenceManager.h
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-21
*********************************************************************/
#ifndef _FITK_TURBS_OF_MANAGER_H___
#define _FITK_TURBS_OF_MANAGER_H___
#include "FITKInterfaceFlowOFAPI.h"
#include "FITKOFEnum.hpp"
#include <functional>
#include <QStringList>
namespace Interface
{
class FITKAbstractOFTurbulence;
}
typedef std::function<Interface::FITKAbstractOFTurbulence*()> CREATETURBULENCEFUN;
namespace Interface
{
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-21
*/
struct FITKOFTurbulenceInfo
{
QString _turbulenceName{};
FITKOFSolverTypeEnum::FITKOFTurbulenceType _turbType{ FITKOFSolverTypeEnum::FITKOFTurbulenceType::TurbNone };
QList<FITKOFSolverTypeEnum::FITKOFSolverType> _enableSolverType;
CREATETURBULENCEFUN _createFuns{};
};
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-21
*/
class FITKInterfaceFlowOFAPI FITKOFTurbulenceManager
{
public:
explicit FITKOFTurbulenceManager();
virtual ~FITKOFTurbulenceManager();
/**
* @brief
* @param[i] tbType
* @param[i] stype
* @return QList<QString>
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-21
*/
QStringList filterTurbence(FITKOFSolverTypeEnum::FITKOFTurbulenceType tbType, FITKOFSolverTypeEnum::FITKOFSolverType stype);
/**
* @brief
* @param[i] turbulenceName
* @return FITKOFTurbulenceInfo
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-21
*/
FITKOFTurbulenceInfo getTurbenceInfoByTurbulenceName(QString turbulenceName);
private:
/**
* @brief
* @return void
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-21
*/
void initTurbulences();
private:
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-21
*/
QList<FITKOFTurbulenceInfo> _turbulences{};
};
}
#endif