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.

88 lines
2.5 KiB
C

/**********************************************************************
* @file PostGraphWidgetLine.h
* @brief VTK线
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*********************************************************************/
#ifndef _PostGraphWidgetLine_H_
#define _PostGraphWidgetLine_H_
#include <QObject>
#include "PostGraphAdaptorAPI.h"
class vtkLineWidget2;
class vtkLineRepresentation;
namespace Interface
{
class PostGraphWidgetLineCallBack;
/**
* @brief VTK线
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
class PostGraphAdaptorAPI PostGraphWidgetLine : public QObject
{
Q_OBJECT;
public:
/**
* @brief
* @param[i] widget
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
PostGraphWidgetLine(QWidget* widget);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-09
*/
~PostGraphWidgetLine();
/**
* @brief 线
* @param[i] startPoint
* @param[i] endPoint
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-19
*/
void setLine(double* startPoint, double* endPoint);
/**
* @brief
* @param[i] isShow
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void setIsShow(bool isShow);
signals:
;
/**
* @brief
* @param[i] origin
* @param[i] normal
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void sigValueChange(double* startPoint, double* endPoint);
private:
/**
* @brief 线
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
vtkLineWidget2* _widget = nullptr;
/**
* @brief 线
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-19
*/
vtkLineRepresentation* _representation = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
PostGraphWidgetLineCallBack* _callBack = nullptr;
};
}
#endif