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.

203 lines
5.8 KiB
C

/**********************************************************************
* @file ProbeDialog.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*********************************************************************/
#ifndef _ProbeDialog_H
#define _ProbeDialog_H
#include "GUIDialogBase.h"
#include "GUIDialogAPI.h"
namespace Ui {
class ProbeDialog;
}
namespace Interface {
class FITKAbstractCFDPostData;
}
namespace EventOper {
class ParaWidgetInterfaceOperator;
}
namespace GUI
{
class ClipSliceWidgetBase;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
class GUIDialogAPI ProbeDialog :public GUIDialogBase
{
Q_OBJECT;
public:
/**
* @brief
* @param[i] oper
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
ProbeDialog(int dataID, EventOper::ParaWidgetInterfaceOperator* oper, bool isCreate);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
~ProbeDialog();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void init();
/**
* @brief
* @param[i] point
* @param[i] pointID ID
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-22
*/
void insertPoint(double* point, int pointID);
/**
* @brief
* @param[i] cellID
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-23
*/
void insertCell(int cellID);
protected:
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-23
*/
void closeEvent(QCloseEvent* event) override;
private slots:
;
/**
* @brief OK
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void on_pushButton_OK_clicked();
/**
* @brief Cancel
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void on_pushButton_Cancel_clicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-18
*/
void on_pushButton_PointAdd_clicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-18
*/
void on_pushButton_PointSelect_clicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-23
*/
void on_pushButton_CellSelect_clicked();
/**
* @brief
* @param[i] index
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-23
*/
void on_comboBox_Type_currentIndexChanged(int index);
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
void InitCreate();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
void InitEdit();
/**
* @brief
* @return bool
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
bool OKCreate();
/**
* @brief
* @return bool
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
bool OKEdit();
/**
* @brief
* @param[i] glyphData
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
void getDataFromWidget(Interface::FITKAbstractCFDPostData* glyphData);
/**
* @brief
* @param[i] glyphData
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
void setDataToWidget(Interface::FITKAbstractCFDPostData* glyphData);
/**
* @brief
* @param[i] point
* @param[i] pointID id(id == -1)
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-18
*/
void tableAddPoint(double* point, int pointID = -1);
/**
* @brief
* @param[i] cellID ID
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-23
*/
void tableAddCell(int cellID);
private:
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
Ui::ProbeDialog* _ui = nullptr;
/**
* @brief id
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
int _currentDataID = -1;
/**
* @brief ID
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
int _parentDataID = -1;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
bool _isCreate = true;
};
}
#endif