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_Interface/FITKInterfaceIOHDF5/FITKInterfaceHDF5AdaptorMesh.h

115 lines
3.4 KiB
C

/**
*
* @file FITKInterfaceHDF5AdaptorMesh.h
* @brief HDF5Mesh
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-29
*
*/
#ifndef _FITKINTERFACEHDF5ADAPTORMESH_H__
#define _FITKINTERFACEHDF5ADAPTORMESH_H__
#include "FITKInterfaceIOHDF5API.h"
#include "FITKAbstractHDF5Adaptor.h"
#include "FITK_Kernel/FITKAdaptor/FITKIOAdaptorFactory.h"
//前置声明
ForwardDeclarNS(Interface, FITKModelSurface)
ForwardDeclarNS(Interface, FITKUnstructuredMesh)
ForwardDeclarNS(Interface, FITKUnstructuredMeshVTK)
namespace IO
{
/**
* @brief HDF5 Mesh
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-29
*/
class FITKINTERFACEHDF5IOAPI FITKInterfaceHDF5AdaptorMesh : public FITKAbstractHDF5Adaptor
{
public:
explicit FITKInterfaceHDF5AdaptorMesh() = default;
virtual ~FITKInterfaceHDF5AdaptorMesh() = default;
/**
* @brief
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-29
*/
QString getAdaptorClass() override;
/**
* @brief
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-29
*/
bool adaptR() override;
/**
* @brief
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-29
*/
bool adaptW() override;
protected:
/**
* @brief
* @param mesh
* @param h5Group HDF5
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-29
*/
virtual bool readNode(Interface::FITKUnstructuredMesh* mesh, H5::Group& h5Group);
/**
* @brief
* @param mesh
* @param h5Group HDF5
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-29
*/
virtual bool readElement(Interface::FITKUnstructuredMesh* mesh, H5::Group& h5Group);
/**
* @brief
* @param mesh
* @param h5Group HDF5
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-29
*/
virtual bool writeNode(Interface::FITKUnstructuredMesh* mesh, H5::Group& h5Group);
/**
* @brief
* @param mesh
* @param h5Group HDF5
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-29
*/
virtual bool writeElement(Interface::FITKUnstructuredMesh* mesh, H5::Group& h5Group);
/**
* @brief
* @param mesh
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-06-03
*/
virtual QMultiHash<QString, int> extractElementInformation(Interface::FITKUnstructuredMesh* mesh);
};
//Register2FITKIOAdaptorFactory(HDF5, Interface::FITKModelSet, FITKInterfaceHDF5AdaptorSet)
}
#endif