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.

89 lines
2.5 KiB
C

/**********************************************************************
* @file PostGraphWidgetSphere.h
* @brief VTK
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*********************************************************************/
#ifndef _PostGraphWidgetSphere_H_
#define _PostGraphWidgetSphere_H_
#include <QObject>
#include "PostGraphAdaptorAPI.h"
class vtkSphereWidget;
namespace Interface
{
class PostGraphWidgetSphereCallBack;
/**
* @brief VTK
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
class PostGraphAdaptorAPI PostGraphWidgetSphere : public QObject
{
Q_OBJECT;
public:
/**
* @brief
* @param[i] widget
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
PostGraphWidgetSphere(QWidget* widget);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
~PostGraphWidgetSphere();
/**
* @brief
* @param[i] isShow
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void setIsShow(bool isShow);
/**
* @brief
* @param[i] center [3]
* @param[i] radius
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
void setValue(double* center, double radius);
/**
* @brief
* @param[o] center [3]
* @param[o] radius
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
void getValue(double* center, double& radius);
signals:
;
/**
* @brief
* @param[i] origin
* @param[i] normal
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void sigValueChange(double* center, double radius);
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
vtkSphereWidget* _widget = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
PostGraphWidgetSphereCallBack* _callBack = nullptr;
};
}
#endif