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.

96 lines
3.1 KiB
C

/**********************************************************************
* @file FITKCFDPostThreshold.h
* @brief
* 2024.10.14
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*********************************************************************/
#ifndef _FITKCFDPostThreshold_H
#define _FITKCFDPostThreshold_H
#include "FITKInterfaceCFDPostAPI.h"
#include "FITKAbstractCFDPostData.h"
class vtkThreshold;
namespace Interface
{
class FITKCFDPost3DManager;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*/
class FITKInterfaceCFDPostAPI FITKCFDPostThreshold : public FITKAbstractCFDPostData
{
public:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*/
FITKCFDPostThreshold(int parentID);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*/
virtual ~FITKCFDPostThreshold();
/**
* @brief
* @return FITKPostDataType
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-14
*/
virtual FITKPostDataType getPostDataType() override;
/**
* @brief
* @return vtkDataSet* vtk
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
vtkDataSet* getOutput() override;
/**
* @brief
* @param[i] lower
* @param[i] upper
* @param[i] fieldType
* @param[i] fieldName
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-14
*/
void setValue(double lower, double upper, Interface::FITKPostFieldType fieldType, QString fieldName);
/**
* @brief
* @param[o] lower
* @param[o] upper
* @param[o] fieldType
* @param[o] fieldName
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-14
*/
void getValue(double& lower, double& upper, Interface::FITKPostFieldType& fieldType, QString& fieldName);
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
vtkThreshold* _threshold = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-14
*/
QString _fieldName = "";
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-14
*/
Interface::FITKPostFieldType _fieldType = Interface::FITKPostFieldType::Post_None;
};
}
#endif