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.

142 lines
4.1 KiB
C

/**********************************************************************
* @file StreamLineDialog.h
* @brief 线
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-19
*********************************************************************/
#ifndef _StreamLineDialog_H
#define _StreamLineDialog_H
#include "GUIDialogAPI.h"
#include "GUIDialogBase.h"
#include "FITK_Interface/FITKInterfaceCFDPost/FITKAbstractCFDPostData.h"
namespace Ui {
class StreamLineDialog;
}
namespace Interface {
class FITKCFDPostStreamLine;
class PostGraphWidgetLine;
}
namespace GUI
{
class GUIDialogAPI StreamLineDialog : public GUIDialogBase
{
Q_OBJECT;
public:
StreamLineDialog(int dataID, EventOper::ParaWidgetInterfaceOperator* oper, bool isCreate);
~StreamLineDialog();
void init();
protected:
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-19
*/
void showEvent(QShowEvent* event);
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-19
*/
void closeEvent(QCloseEvent* event);
private slots:
;
void on_pushButton_OK_clicked();
void on_pushButton_Cancel_clicked();
/**
* @brief
* @param[i] startPoint
* @param[i] endPoint
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-19
*/
void slotValueChange(double* startPoint, double* endPoint);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
void slotDataChange();
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::FITKCFDPostStreamLine* streamLine);
/**
* @brief
* @param[i] glyphData
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
void setDataToWidget(Interface::FITKCFDPostStreamLine* streamLine);
private:
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-27
*/
Ui::StreamLineDialog* _ui = nullptr;
/**
* @brief vtk线
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-19
*/
Interface::PostGraphWidgetLine* _lineWidget = 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