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.
57 lines
1.7 KiB
C++
57 lines
1.7 KiB
C++
/**********************************************************************
|
|
* @file PostGraphWidgetLineCallBack.h
|
|
* @brief VTK线界面回调类
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-09-19
|
|
*********************************************************************/
|
|
#ifndef _PostGraphWidgetLineCallBack_H_
|
|
#define _PostGraphWidgetLineCallBack_H_
|
|
|
|
#include <QObject>
|
|
#include <vtkCommand.h>
|
|
|
|
namespace Interface
|
|
{
|
|
/**
|
|
* @brief VTK线界面回调类
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-09-19
|
|
*/
|
|
class PostGraphWidgetLineCallBack : public QObject, public vtkCommand
|
|
{
|
|
Q_OBJECT;
|
|
public:
|
|
/**
|
|
* @brief 构造函数
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-09-19
|
|
*/
|
|
PostGraphWidgetLineCallBack() = default;
|
|
/**
|
|
* @brief 析构函数
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-09-19
|
|
*/
|
|
~PostGraphWidgetLineCallBack() = default;
|
|
/**
|
|
* @brief 回调函数重写
|
|
* @param[i] caller 对象
|
|
* @param[i] eventId
|
|
* @param[i] callData
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-09-18
|
|
*/
|
|
virtual void Execute(vtkObject *caller, unsigned long eventId, void* callData) override;
|
|
signals:
|
|
;
|
|
/**
|
|
* @brief 数据更改
|
|
* @param[i] origin 始点
|
|
* @param[i] normal 终点
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-09-18
|
|
*/
|
|
void sigValueChange(double* startPoint, double* endPoint);
|
|
};
|
|
}
|
|
#endif |