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/FITKRegionGeometryRefine.h

271 lines
8.2 KiB
C

/**********************************************************************
* @file FITKRegionGeometryRefine.h
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*********************************************************************/
#ifndef __FITKREGIONGEOMETRYREFINE_H__
#define __FITKREGIONGEOMETRYREFINE_H__
#include "FITKInterfaceMeshGenAPI.h"
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"
#include "FITK_Kernel/FITKCore/FITKVarientParams.h"
#include "FITK_Kernel/FITKCore/FITKAbstractDataManager.hpp"
namespace Interface
{
class FITKAbsGeoCommand;
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-22
*/
class FITKInterfaceMeshGenAPI FITKRegionGeometryRefine :
public Core::FITKAbstractDataObject, public Core::FITKVarientParams
{
Q_OBJECT
FITKCLASS(Interface, FITKRegionGeometryRefine);
public:
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
enum RefineModelType
{
RefineDistance,
RefineInside,
RefineOutside,
};
Q_ENUM(RefineModelType);
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
enum GapModelType
{
GapNone,
GapMixed,
GapInside,
GapOutside,
};
Q_ENUM(GapModelType);
/**
* @brief Construct a new FITKRegionGeometryRefine object
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-22
*/
explicit FITKRegionGeometryRefine() = default;
/**
* @brief Destroy the FITKRegionGeometryRefine object
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-22
*/
virtual ~FITKRegionGeometryRefine() = default;
/**
* @brief Id
* @param[i] geoId Id
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-23
*/
void setGeometryId(int geoId);
/**
* @brief Id
* @return int
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-23
*/
int getGeometryId();
/**
* @brief
* @return Interface::FITKAbsGeoCommand*
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-26
*/
Interface::FITKAbsGeoCommand* getGeometryModel();
/**
* @brief
* @param[i] limit
* @return void
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
void setLimitRefinement(bool limit);
/**
* @brief
* @return bool
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
bool getLimitRefineMent();
/**
* @brief
* @param[i] refineType
* @return void
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
void setRefineModel(RefineModelType refineType);
/**
* @brief
* @return RefineModelType
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
RefineModelType getRefineModel();
/**
* @brief
* @param[i] distance
* @return void
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
void setDistance(double distance);
/**
* @brief
* @return double
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
double getDistance();
/**
* @brief
* @param[i] level
* @return void
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
void setLevel(int level);
/**
* @brief
* @return int
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
int getLevel();
/**
* @brief
* @param[i] gapType
* @return void
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
void setGapRefineModel(GapModelType gapType);
/**
* @brief
* @return GapModelType
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
GapModelType getGapRefineModel();
/**
* @brief
* @param[i] cells
* @return void
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
void setCellsInGapNum(int cells);
/**
* @brief
* @return int
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
int getCellsInGapNum();
/**
* @brief
* @param[i] maxGap
* @return void
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
void setMaxGapLevel(int maxGap);
/**
* @brief
* @return int
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
int getMaxGapLevel();
private:
/**
* @brief Id
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-22
*/
int m_geometryId{ 0 };
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
bool m_limitRefinement{ false };
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
RefineModelType m_refineModel{ RefineModelType::RefineDistance };
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
double m_distance{ 0.0 };
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
int m_level{ 0 };
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
GapModelType m_gapModel{ GapModelType::GapNone };
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
int m_cellInGapNum{ 4 };
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-09-02
*/
int m_maxGapLevel{ 8 };
};
}
namespace Interface
{
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-22
*/
class FITKInterfaceMeshGenAPI FITKRegionGeometryRefineManager :
public Core::FITKAbstractDataManager<FITKRegionGeometryRefine>
{
public:
/**
* @brief Construct a new FITKGeometryMeshSizeManager object
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-22
*/
explicit FITKRegionGeometryRefineManager() = default;
/**
* @brief Destroy the FITKGeometryMeshSizeManager object
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-22
*/
virtual ~FITKRegionGeometryRefineManager() = default;
};
}
#endif