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/FITKGeoOCCIOHDF5/FITKOCCHDF5AdaptorOperGeome...

225 lines
8.1 KiB
C

/*****************************************************************//**
*
* @file FITKOCCHDF5AdaptorOperGeometry.h
* @brief HDF5 Adaptor OperGeometry
* @author fulipeng (flipengqd@yeah.net)
* @date 2024-09-11
*
*********************************************************************/
#ifndef __FITKOCCHDF5ADAPTOROPERGEOMETRY_H__
#define __FITKOCCHDF5ADAPTOROPERGEOMETRY_H__
#include "FITKGeoOCCIOHDF5API.h"
#include "FITK_Kernel/FITKCore/FITKCoreMacros.h"
#include "FITK_Kernel/FITKAdaptor/FITKIOAdaptorFactory.h"
#include "FITK_Interface/FITKInterfaceGeoIOHDF5/FITKAbstractHDF5Adaptor.h"
ForwardDeclarNS(Core, FITKAbstractDataObject);
ForwardDeclarNS(Interface, FITKAbsGeoCommand);
ForwardDeclarNS(Interface, FITKAbsGeoDelete);
ForwardDeclarNS(Interface, FITKAbsGeoOperBool);
ForwardDeclarNS(Interface, FITKAbsGeoModelOperImprintSolid);
ForwardDeclarNS(Interface, FITKAbsGeoModelImport);
ForwardDeclarNS(Interface, FITKAbsGeoModelExport);
ForwardDeclarNS(Interface, FITKAbsGeoModelOperCompound);
ForwardDeclarNS(H5, H5File);
ForwardDeclarNS(H5, Group);
ForwardDeclarNS(H5, H5Object);
ForwardDeclarNS(H5, DataType);
namespace IO
{
/**
* @brief HDF5 Adaptor Basic Geometry Solid
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
class FITKGEOOCCIOHDF5API FITKOCCHDF5AdaptorOperGeometry : public FITKAbstractHDF5Adaptor
{
public:
/**
* @brief Construct a new FITKOCCHDF5AdaptorOperGeometry object
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
explicit FITKOCCHDF5AdaptorOperGeometry() = default;
virtual ~FITKOCCHDF5AdaptorOperGeometry() = default;
/**
* @brief
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
QString getAdaptorClass() override;
/**
* @brief
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
bool adaptR() override;
/**
* @brief
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
bool adaptW() override;
protected:
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
bool readOperGeometry(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
bool writeOperGeometry(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
bool readOperGeometryDelete(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
bool writeOperGeometryDelete(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
bool readOperGeometryBool(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-11
*/
bool writeOperGeometryBool(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-13
*/
bool readOperGeometryOperImprintSolid(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-13
*/
bool writeOperGeometryOperImprintSolid(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-13
*/
bool readOperGeometryOperImport(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-13
*/
bool writeOperGeometryOperImport(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-13
*/
bool readOperGeometryOperExport(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-13
*/
bool writeOperGeometryOperExport(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-13
*/
bool readOperGeometryOperCompoundBase(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-13
*/
bool writeOperGeometryOperCompoundBase(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
};
Register2FITKIOAdaptorFactory(HDF5, Interface::FITKAbsGeoDelete, FITKOCCHDF5AdaptorOperGeometry, 1)
Register2FITKIOAdaptorFactory(HDF5, Interface::FITKAbsGeoOperBool, FITKOCCHDF5AdaptorOperGeometry, 2)
Register2FITKIOAdaptorFactory(HDF5, Interface::FITKAbsGeoModelOperImprintSolid, FITKOCCHDF5AdaptorOperGeometry, 3)
Register2FITKIOAdaptorFactory(HDF5, Interface::FITKAbsGeoModelImport, FITKOCCHDF5AdaptorOperGeometry, 4)
Register2FITKIOAdaptorFactory(HDF5, Interface::FITKAbsGeoModelExport, FITKOCCHDF5AdaptorOperGeometry, 5)
Register2FITKIOAdaptorFactory(HDF5, Interface::FITKAbsGeoModelOperCompound, FITKOCCHDF5AdaptorOperGeometry, 6)
}
#endif