|
|
|
|
#ifndef _FITKCFDPostIsosurface_H
|
|
|
|
|
#define _FITKCFDPostIsosurface_H
|
|
|
|
|
|
|
|
|
|
#include "FITKAbstractCFDPostData.h"
|
|
|
|
|
|
|
|
|
|
class vtkContourFilter;
|
|
|
|
|
|
|
|
|
|
namespace Interface
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @brief VTK稳态数据类
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-06
|
|
|
|
|
*/
|
|
|
|
|
class FITKInterfaceCFDPostAPI FITKCFDPostIsosurface :public FITKAbstractCFDPostData
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
FITKCFDPostIsosurface(int parentID);
|
|
|
|
|
virtual ~FITKCFDPostIsosurface();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 获取后处理数据类型
|
|
|
|
|
* @return FITKPostDataType 后处理数据类型
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-14
|
|
|
|
|
*/
|
|
|
|
|
virtual FITKPostDataType getPostDataType();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 设置变量名称
|
|
|
|
|
* @param[i] filedName 变量名称
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-14
|
|
|
|
|
*/
|
|
|
|
|
void setFiledName(const QString filedName);
|
|
|
|
|
/**
|
|
|
|
|
* @brief 获取变量名称
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-26
|
|
|
|
|
*/
|
|
|
|
|
QString getFiledName();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 设置变量类型
|
|
|
|
|
* @param[i] type 变量类型(点、单元)
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-26
|
|
|
|
|
*/
|
|
|
|
|
void setFiledType(const FITKPostFieldType type);
|
|
|
|
|
/**
|
|
|
|
|
* @brief 获取变量类型
|
|
|
|
|
* @return FITKPostFieldType 变量类型
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-26
|
|
|
|
|
*/
|
|
|
|
|
FITKPostFieldType getFiledType();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 设置数据
|
|
|
|
|
* @param[i] value 数据
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-26
|
|
|
|
|
*/
|
|
|
|
|
void setValue(const QList<double> value);
|
|
|
|
|
/**
|
|
|
|
|
* @brief 获取数据
|
|
|
|
|
* @return QList<double> 数据
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-26
|
|
|
|
|
*/
|
|
|
|
|
QList<double> getValue();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 获取数据
|
|
|
|
|
* @return vtkDataSet* 数据对象
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-18
|
|
|
|
|
*/
|
|
|
|
|
vtkDataSet* getOutput()override;
|
|
|
|
|
private:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 过滤器对象
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-18
|
|
|
|
|
*/
|
|
|
|
|
vtkContourFilter* _contourFilter = nullptr;
|
|
|
|
|
/**
|
|
|
|
|
* @brief 数据数量
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-26
|
|
|
|
|
*/
|
|
|
|
|
int _valueSize = 0;
|
|
|
|
|
/**
|
|
|
|
|
* @brief 变量名称
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-26
|
|
|
|
|
*/
|
|
|
|
|
QString _filedName = "";
|
|
|
|
|
/**
|
|
|
|
|
* @brief 变量类型
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-26
|
|
|
|
|
*/
|
|
|
|
|
FITKPostFieldType _filedType = FITKPostFieldType::Post_None;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|