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/FITKOCCHDF5AdaptorSketchGeo...

104 lines
3.2 KiB
C

/*****************************************************************//**
*
* @file FITKOCCHDF5AdaptorSketchGeometry.h
* @brief HDF5 Adaptor OperGeometry
* @author fulipeng (flipengqd@yeah.net)
* @date 2024-09-19
*
*********************************************************************/
#ifndef __FITKOCCHDF5AdaptorSketchGeometry_H__
#define __FITKOCCHDF5AdaptorSketchGeometry_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, FITKAbsGeoSketch2D);
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-19
*/
class FITKGEOOCCIOHDF5API FITKOCCHDF5AdaptorSketchGeometry : public FITKAbstractHDF5Adaptor
{
public:
/**
* @brief Construct a new FITKOCCHDF5AdaptorSketchGeometry object
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-19
*/
explicit FITKOCCHDF5AdaptorSketchGeometry() = default;
virtual ~FITKOCCHDF5AdaptorSketchGeometry() = default;
/**
* @brief
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-19
*/
QString getAdaptorClass() override;
/**
* @brief
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-19
*/
bool adaptR() override;
/**
* @brief
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-19
*/
bool adaptW() override;
protected:
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-19
*/
bool readSketchGeometry(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief
* @param comm
* @param h5Group
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-19
*/
bool writeSketchGeometry(Interface::FITKAbsGeoCommand* comm, H5::Group& h5Group);
/**
* @brief GeoModel
* @param enumName
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-09-09
*/
Core::FITKAbstractNDataObject* getGeoCommand(QString enumName);
};
Register2FITKIOAdaptorFactory(HDF5, Interface::FITKAbsGeoSketch2D, FITKOCCHDF5AdaptorSketchGeometry, 1)
}
#endif