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/GUIGeometryDialog/SphereInfoWidget.h

159 lines
4.3 KiB
C

/**
*
* @file SphereInfoWidget.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*
*/
#ifndef _SphereInfoWidget_H
#define _SphereInfoWidget_H
#include "GUIGeometryDialogAPI.h"
#include "GeometryWidgetBase.h"
namespace Ui {
class SphereInfoWidget;
}
namespace Interface {
class FITKAbsGeoModelSphere;
class FITKAbsGeoCommand;
}
namespace EventOper {
class ParaWidgetInterfaceOperator;
}
namespace GUI
{
class CompFaceGroupWidget;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
class GUIGeometryDialogAPI SphereInfoWidget :public GeometryWidgetBase
{
Q_OBJECT;
public:
/**
* @brief
* @param[i] oper
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
SphereInfoWidget(EventOper::ParaWidgetInterfaceOperator* oper);
/**
* @brief
* @param[i] obj
* @param[i] oper
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
SphereInfoWidget(Interface::FITKAbsGeoModelSphere* obj, EventOper::ParaWidgetInterfaceOperator* oper);
/**
* @brief Destroy the Sphere Info Widget object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
~SphereInfoWidget();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void init();
/**
* @brief
* @param[i] point
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void setCenterPoint(double* point);
/**
* @brief
* @param[i] rowIndex
* @param[i] facesId id
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void setFaceGroupValue(int rowIndex, QList<int> facesId);
protected:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void closeEvent(QCloseEvent *event) override;
private slots:
;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void on_pushButton_CenterPoint_clicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void on_pushButton_Cancel_clicked();
/**
* @brief /
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void on_pushButton_CreateOrEdit_clicked();
private:
/**
* @brief
* @return true
* @return false
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
bool checkValue();
/**
* @brief Set the Data To Widget object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void setDataToWidget();
/**
* @brief Get the Data Form Widget object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void getDataFormWidget();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-07-16
*/
void switchCreateModel(bool isCreate);
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
bool _isCreate = false;
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
Ui::SphereInfoWidget* _ui = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
CompFaceGroupWidget* _faceGroupWidget = nullptr;
};
}
#endif