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/CompMaterialPointWidget.h

144 lines
3.8 KiB
C

/**
*
* @file CompMaterialPointWidget.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*
*/
#ifndef CompMaterialPointWidget_H
#define CompMaterialPointWidget_H
#include <QWidget>
namespace Ui {
class CompMaterialPointWidget;
}
namespace GUI
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
class CompMaterialPointWidget :public QWidget
{
Q_OBJECT;
public:
/**
* @brief Construct a new Comp Material Point Widget object
* @param[i] parent
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
CompMaterialPointWidget(QWidget* parent);
/**
* @brief Destroy the Comp Material Point Widget object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
~CompMaterialPointWidget();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void init();
/**
* @brief
* @param[i] name
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void setName(QString name);
/**
* @brief
* @return QString
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
QString getName();
/**
* @brief
* @param[o] point
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void getPoint(double* point);
/**
* @brief
* @param[i] point
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void setPoint(double* point);
/**
* @brief
* @param[i] pos
* @param[i] value
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void setData(int pos, QVariant value);
/**
* @brief
* @param[i] pos
* @return QVariant
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
QVariant data(int pos);
/**
* @brief
* @param[i] row
* @param[i] clo
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void setCurrentPos(int row, int clo);
/**
* @brief
* @return QPair<int, int>
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
QPair<int, int> getCurrentPos();
signals:
;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void sigDeleteClicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void sigPointChange();
private:
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
Ui::CompMaterialPointWidget* _ui = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
QHash<int, QVariant> _data;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
QPair<int, int> _currentPos;
};
}
#endif