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.

97 lines
2.9 KiB
C

/**********************************************************************
* @file PostGraphWidgetCylinder.h
* @brief VTK
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*********************************************************************/
#ifndef _PostGraphWidgetCylinder_H_
#define _PostGraphWidgetCylinder_H_
#include <QObject>
#include "PostGraphAdaptorAPI.h"
class vtkImplicitCylinderWidget;
class vtkImplicitCylinderRepresentation;
namespace Interface
{
class PostGraphWidgetCylinderCallBack;
/**
* @brief VTK线
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
class PostGraphAdaptorAPI PostGraphWidgetCylinder : public QObject
{
Q_OBJECT;
public:
/**
* @brief
* @param[i] widget
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
PostGraphWidgetCylinder(QWidget* widget);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
~PostGraphWidgetCylinder();
/**
* @brief
* @param[i] bounds [6]
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void setBounds(double* bounds);
/**
* @brief
* @param[i] center [3]
* @param[i] axis [3]
* @param[i] radius
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-11
*/
void setValue(double* center, double* axis, double radius);
/**
* @brief
* @param[i] isShow
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void setIsShow(bool isShow);
signals:
;
/**
* @brief
* @param[i] center [3]
* @param[i] axis [3]
* @param[i] radius
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-11
*/
void sigValueChange(double* center, double* axis, double radius);
private:
/**
* @brief VTK
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
vtkImplicitCylinderWidget* _widget = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-11
*/
vtkImplicitCylinderRepresentation* _representation = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
PostGraphWidgetCylinderCallBack* _callBack = nullptr;
};
}
#endif