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/GUIDialog/GUICalculateDialog/BoundaryWidget.h

128 lines
3.5 KiB
C

/**
*
* @file BoundaryWidget.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*
*/
#ifndef _BoundaryWidget_H
#define _BoundaryWidget_H
#include "GUICalculateDialogAPI.h"
#include "GUICalculateWidgetBase.h"
#include "FITK_Interface/FITKInterfaceFlowOF/FITKOFEnum.hpp"
namespace Ui {
class BoundaryWidget;
}
namespace Interface {
class FITKOFBoundary;
}
namespace EventOper {
class ParaWidgetInterfaceOperator;
}
namespace GUI
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
class GUICalculateDialogAPI BoundaryWidget :public GUICalculateWidgetBase
{
Q_OBJECT;
public:
/**
* @brief Construct a new Boundary Widget object
* @param[i] oper
* @param[i] parent
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
BoundaryWidget(Interface::FITKOFBoundary* boundaryObj, EventOper::ParaWidgetInterfaceOperator* oper, QWidget* parent = nullptr);
/**
* @brief Destroy the Boundary Widget object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
~BoundaryWidget();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void init();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-27
*/
void update();
/**
* @brief
* @return Interface::FITKOFBoundary*
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-28
*/
Interface::FITKOFBoundary* getCurrentObj();
protected:
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-27
*/
void showEvent(QShowEvent *event) override;
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-27
*/
void hideEvent(QHideEvent *event) override;
private:
/**
* @brief Flow
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-28
*/
void updateFlow();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-28
*/
void updateTurbulence();
/**
* @brief phases
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-28
*/
void updatePhases();
private:
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
Ui::BoundaryWidget* _ui = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-27
*/
Interface::FITKOFBoundary* _boundaryObj = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-27
*/
Interface::FITKOFSolverTypeEnum::FITKOFBoundaryType _currentType = Interface::FITKOFSolverTypeEnum::FITKOFBoundaryType::BNone;
};
}
#endif