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/GUIMeshDialog/MaterialPointWidget.h

174 lines
4.7 KiB
C

/**
*
* @file MaterialPointWidget.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*
*/
#ifndef _MaterialPointWidget_H
#define _MaterialPointWidget_H
#include "GUIMeshDialogAPI.h"
#include "GUIWidget/GUIWidgetBase.h"
namespace Ui {
class MaterialPointWidget;
}
namespace EventOper {
class ParaWidgetInterfaceOperator;
}
namespace GUI
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
class GUIMeshDialogAPI MaterialPointWidget :public GUIWidgetBase
{
Q_OBJECT;
public:
/**
* @brief Construct a new Material Point Widget object
* @param[i] oper
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
MaterialPointWidget(EventOper::ParaWidgetInterfaceOperator* oper);
/**
* @brief Destroy the Material Point Widget object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
~MaterialPointWidget();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void init();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void initTableWidget();
protected:
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void hideEvent(QHideEvent* event);
private slots:
;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void on_pushButton_Clear_clicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void on_pushButton_Add_clicked();
/**
* @brief
* @param[i] item
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void slotCellTableClicked(int row, int column);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void slotMatPointWidgetDeleteClicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void slotMatPointWidgetPointChange();
private:
/**
* @brief
* @return QString
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
QString getPointNewName();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void updateTableWidget();
/**
* @brief
* QTableWidget
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void updateFaceWidgetCurrentPos();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void clearGraphHight();
/**
* @brief Table
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void clearTableWidget();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
bool checkValue();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void setDataToWidget();
/**
* @brief 使
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void getDataFromWidget();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void updateGraph(bool isShow = true);
private:
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
Ui::MaterialPointWidget* _ui = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
EventOper::ParaWidgetInterfaceOperator* _oper = nullptr;
};
}
#endif