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.
AppFlow/FITK_Component/FITKFlowOFIOHDF5/FITKFlowOFHDF5Reader.h

102 lines
2.6 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**********************************************************************
* @file FITKFlowOFHDF5Reader.h
* @brief HDF5文件读取 继承自线程任务。
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-07
*********************************************************************/
#ifndef __FITKFLOWOFHDF5READER_H__
#define __FITKFLOWOFHDF5READER_H__
#include "FITKFlowOFIOHDF5API.h"
#include "FITK_Kernel/FITKCore/FITKCoreMacros.h"
#include "FITK_Interface/FITKInterfaceIO/FITKAbstractHDF5Reader.h"
namespace IO
{
/**
* @brief HDF5文件读取
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-30
*/
class FITKFLOWOFIOHDF5API FITKFlowOFHDF5Reader : public FITKAbstractHDF5Reader
{
public:
/**
* @brief Construct a new FITKAbaqusHDF5Reader object
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-30
*/
explicit FITKFlowOFHDF5Reader() = default;
virtual ~FITKFlowOFHDF5Reader() = default;
/**
* @brief 重写run函数
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-30
*/
void run() override;
/**
* @brief 发送计算进度
* @param Progress 进度百分比
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-04-10
*/
void sendCalculateProgress(int Progress);
/**
* @brief 打印控制台消息
* @param[i] level 打印级别 1 normal 2 warning 3error
* @param[i] str 数据
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-30
*/
void consoleMessage(int level, const QString& str) override;
protected:
/**
* @brief 读取版本号
* @return 状态 true成功 false失败
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-30
*/
bool readVersion();
/**
* @brief 读取几何数据
* @return bool
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-09
*/
bool readDataGeometry();
bool readGeoComponent();
bool readGeometryRefine();
bool readGeoMeshSize();
bool readMaterialPoint();
bool readRegionMesh();
bool readMesh();
bool readPhysicsData();
/**
* @brief 重置数据仓库
* @return void
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-11
*/
void resetDataObject();
private:
};
}
#endif