|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @file DiscretizationWidget.h
|
|
|
|
|
* @brief 求解器离散数据界面
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
#ifndef _DiscretizationWidget_H
|
|
|
|
|
#define _DiscretizationWidget_H
|
|
|
|
|
|
|
|
|
|
#include "GUICalculateDialogAPI.h"
|
|
|
|
|
#include "GUICalculateWidgetBase.h"
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class DiscretizationWidget;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Interface {
|
|
|
|
|
class FITKOFDiscretization;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace EventOper {
|
|
|
|
|
class ParaWidgetInterfaceOperator;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace GUI
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @brief 求解器离散数据界面
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
class GUICalculateDialogAPI DiscretizationWidget :public GUICalculateWidgetBase
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT;
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* @brief Construct a new Discretization Widget object
|
|
|
|
|
* @param[i] oper 操作器对象
|
|
|
|
|
* @param[i] parent 父对象
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
DiscretizationWidget(EventOper::ParaWidgetInterfaceOperator* oper, QWidget* parent = nullptr);
|
|
|
|
|
/**
|
|
|
|
|
* @brief Destroy the Discretization Widget object
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
~DiscretizationWidget();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 初始化
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
void init();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 更新widget
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
void updateWidget();
|
|
|
|
|
protected:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 显示事件重写
|
|
|
|
|
* @param[i] event 事件对象
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-16
|
|
|
|
|
*/
|
|
|
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
|
/**
|
|
|
|
|
* @brief 界面大小变化事件重写
|
|
|
|
|
* @param[i] event 事件对象
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-16
|
|
|
|
|
*/
|
|
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
|
|
|
private:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 更新离散时间界面
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
void updateTimeWidget();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 更新离散对流界面
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
void updateConvectionWidget();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 更新梯度界面
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
void updateGradientsWidget();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 更新插值界面
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
void updateInterpolationWidget();
|
|
|
|
|
private:
|
|
|
|
|
/**
|
|
|
|
|
* @brief ui
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
Ui::DiscretizationWidget* _ui = nullptr;
|
|
|
|
|
/**
|
|
|
|
|
* @brief 离散数据对象
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
Interface::FITKOFDiscretization* _disValue = nullptr;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
#endif
|