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/FITKInterfacePhysics/FITKAbstractMaterial.h

80 lines
2.2 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
*
* @file FITKAbstractMaterial.h
* @brief 抽象材料类声明
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-29
*
*/
#ifndef _FITKABSTRACTMATERIAL_H___
#define _FITKABSTRACTMATERIAL_H___
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"
#include "FITKInterfacePhysicsAPI.h"
#include "FITK_Kernel/FITKCore/FITKAbstractDataManager.hpp"
namespace Interface
{
/**
* @brief 抽象材料类
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-29
*/
class FITKInterfacePhysicsAPI FITKAbstractMaterial : public Core::FITKAbstractNDataObject
{
public:
explicit FITKAbstractMaterial();
virtual ~FITKAbstractMaterial() = 0;
/**
* @brief 获取材料id注意该值与管理器的中使用的id无关与其他对象的关联也无关
* @return int
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-04-03
*/
int getMaterialID() const;
/**
* @brief 获取材料描述
* @return QString
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-06-13
*/
QString getMaterialDescribe() const;
/**
* @brief 设置材料描述
* @param[i] des 材料描述
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-06-13
*/
void setMaterialDescribe( const QString& des);
private:
/**
* @brief 材料id与管理器无关不能被使用
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-04-03
*/
int _materialID{ -1 };
/**
* @brief 材料描述
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-06-13
*/
QString _describe{};
};
/**
* @brief 材料管理器
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-07
*/
class FITKInterfacePhysicsAPI FITKMaterialManager : public Core::FITKAbstractDataObject
, public Core::FITKAbstractDataManager<FITKAbstractMaterial>
{
public:
explicit FITKMaterialManager() = default;
virtual ~FITKMaterialManager() = default;
};
}
#endif // !_FITKABSTRACTMATERIAL_H___