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/FITKInterfaceMeshGen/FITKMeshGenInterface.h

219 lines
6.8 KiB
C

/**
*
* @file FITKMeshGenInterface.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-17
*
*/
#ifndef _FITKMESHGEN_INTERFACE_H___
#define _FITKMESHGEN_INTERFACE_H___
#include "FITKInterfaceMeshGenAPI.h"
#include "FITK_Kernel/FITKCore/FITKCoreMacros.h"
#include <QMutex>
#include <QObject>
namespace Interface
{
//前置声明
class FITKGlobalMeshSizeInfo;
class FITKRegionMeshSizeManager;
class FITKAbstractMeshSizeInfoGenerator;
class FITKAbstractGeometryMeshSizeGenerator;
class FITKAbstractMesherDriver;
class FITKAbstractMeshProcessor;
class FITKGeometryMeshSizeManager;
class FITKZonePointManager;
class FITKRegionGeometryRefineManager;
class FITKMeshGenInterfaceDeleator;
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
class FITKInterfaceMeshGenAPI FITKMeshGenInterface : public QObject
{
friend FITKMeshGenInterfaceDeleator;
//声明为单例
DeclSingleton(FITKMeshGenInterface);
public:
/**
* @brief
* @return FITKGlobalMeshSizeInfo*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
FITKGlobalMeshSizeInfo* getGlobalMeshSizeInfo();
/**
* @brief
* @param genator
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
void regMeshSizeGenerator(FITKAbstractMeshSizeInfoGenerator* genator);
/**
* @brief
* @return FITKAbstractGeometryMeshSizeGenerator*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
FITKAbstractMeshSizeInfoGenerator* getMeshSizeGenerator();
/**
* @brief
* @param genator FITKAbstractMeshSizeInfoGenerator*
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-24
*/
void regGeometryMeshSizeGenerator(FITKAbstractGeometryMeshSizeGenerator* genator);
/**
* @brief
* @return FITKAbstractGeometryMeshSizeGenerator*
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-24
*/
FITKAbstractGeometryMeshSizeGenerator* getGeometryMeshSizeGenerator();
/**
* @brief
* @param driver
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
void regMesherDriver(FITKAbstractMesherDriver* driver);
/**
* @brief
* @return FITKAbstractMesherDriver*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
FITKAbstractMesherDriver* getMesherDriver();
/**
* @brief
* @param p
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
void regMeshProcessor(FITKAbstractMeshProcessor* p );
/**
* @brief
* @return FITKAbstractMeshProcessor*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
FITKAbstractMeshProcessor* getMeshProcessor();
/**
* @brief
* @return FITKRegionMeshSizeManager*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
FITKRegionMeshSizeManager* getRegionMeshSizeMgr();
/**
* @brief
* @return FITKGeometryMeshSizeManager*
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-24
*/
FITKGeometryMeshSizeManager* getGeometryMeshSizeManager();
/**
* @brief
* @return FITKAbstractGeometryMeshSizeGenerator*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-26
*/
FITKZonePointManager* getZonePointManager();
/**
* @brief
* @return FITKRegionGeometryRefineManager*
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
FITKRegionGeometryRefineManager* getRegionGeometryRefineManager();
private:
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
void initialize();
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
void finalize();
private:
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
FITKAbstractMeshSizeInfoGenerator* _meshSizeGenor{};
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-24
*/
FITKAbstractGeometryMeshSizeGenerator* _geoMeshSizeGenor{};
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
FITKAbstractMesherDriver* _mesherDriver{};
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
FITKAbstractMeshProcessor* _meshProcessor{};
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
FITKGlobalMeshSizeInfo* _globalSize{};
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
FITKRegionMeshSizeManager* _regionMeshMgr{};
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-24
*/
FITKGeometryMeshSizeManager* _geoMeshSizeMgr{};
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-26
*/
FITKZonePointManager* _zonePointsManager{};
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
FITKRegionGeometryRefineManager* _regionGeoRefineMgr{};
};
class FITKMeshGenInterfaceDeleator
{
public:
explicit FITKMeshGenInterfaceDeleator() = default;
virtual ~FITKMeshGenInterfaceDeleator();
};
}
#endif