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.
AppFlowPost/GUIDialog/ClipSliceWidgetPlane.h

120 lines
3.6 KiB
C

/**********************************************************************
* @file ClipSliceWidgetPlane.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-08
*********************************************************************/
#ifndef _ClipSliceWidgetPlane_H
#define _ClipSliceWidgetPlane_H
#include "ClipSliceWidgetBase.h"
namespace Ui{
class ClipSliceWidgetPlane;
}
namespace Interface {
class FITKAbstractCFDPostData;
class PostGraphWidgetPlane;
}
namespace GUI
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-08
*/
class ClipSliceWidgetPlane :public ClipSliceWidgetBase
{
Q_OBJECT;
public:
/**
* @brief
* @param[i] parent
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-08
*/
ClipSliceWidgetPlane(ClipSlice widgetType, int currentDataID, int parentDataID, QWidget* parent = nullptr);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-08
*/
virtual ~ClipSliceWidgetPlane();
/**
* @brief
* @param[i] glyphData
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
virtual void getDataFromWidget(Interface::FITKAbstractCFDPostData* postData) override;
/**
* @brief
* @param[i] glyphData
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
virtual void setDataToWidget(Interface::FITKAbstractCFDPostData* postParentData, Interface::FITKAbstractCFDPostData* postData) override;
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);
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-08
*/
void hideEvent(QHideEvent *event);
private slots:
;
/**
* @brief vtkPlaneWidget
* @param[i] origin
* @param[i] normal
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void slotVTKWidgetValueChange(double* origin, double* normal);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
void slotDataChange();
private:
/**
* @brief vtk
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
Interface::PostGraphWidgetPlane* _planeWidget = nullptr;
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-08
*/
Ui::ClipSliceWidgetPlane* _ui = nullptr;
/**
* @brief ID
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-08
*/
int _parentDataID = -1;
};
}
#endif