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.

135 lines
3.7 KiB
C

/**********************************************************************
* @file LightSubWidget.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*********************************************************************/
#ifndef _LightSubWidget_H
#define _LightSubWidget_H
#include "GUIDialogAPI.h"
#include "GUIWidget/GUIWidgetBase.h"
namespace Ui {
class LightSubWidget;
}
namespace Interface {
class FITKCFDPostLight;
class PostGraphWidgetLine;
}
namespace EventOper {
class ParaWidgetInterfaceOperator;
}
namespace GUI
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
class GUIDialogAPI LightSubWidget : public GUIWidgetBase
{
Q_OBJECT;
public:
/**
* @brief
* @param[i] currentDataID id
* @param[i] parent
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
LightSubWidget(int currentDataID, QWidget* parent = nullptr);
/**
* @brief
* @return void
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
~LightSubWidget();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
void init();
/**
* @brief
* @param[i] title
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
void setWidgetTitle(QString title);
protected:
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
void showEvent(QShowEvent *event);
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
void closeEvent(QCloseEvent *event);
private slots:
;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
void on_pushButton_Remove_clicked();
/**
* @brief
* @param[i] index
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
void on_comboBox_Type_currentIndexChanged(int index);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
void on_pushButton_SelectColor_clicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
void slotValueChange();
/**
* @brief VTK
* @param[i] startPoint
* @param[i] endPoint
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-17
*/
void slotVTKLineWidgetValueChange(double* startPoint, double* endPoint);
private:
/**
* @brief
* @param[i] data
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-16
*/
void setDataToWidget(Interface::FITKCFDPostLight* data);
private:
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-16
*/
Ui::LightSubWidget* _ui = nullptr;
//Interface::PostGraphWidgetLine* _lineWidget = nullptr;
};
}
#endif