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

130 lines
3.6 KiB
C

/**
*
* @file FITKAbstractFields.h
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*
*/
#ifndef _FITKABSTRACT_FIELDS_H___
#define _FITKABSTRACT_FIELDS_H___
#include <QString>
#include "FITKInterfacePhysicsAPI.h"
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"
#include "FITK_Kernel/FITKCore/FITKAbstractDataManager.hpp"
namespace Interface
{
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
class FITKInterfacePhysicsAPI FITKAbstractFiled :
public Core::FITKAbstractNDataObject
{
Q_OBJECT
public:
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
enum FITKFieldType
{
FFTNone, ///< 未定义
FFTDiscrete, ///< 离散场
FFTAnalytical, ///< 解析场
};
Q_ENUM(FITKFieldType);
public:
/**
* @brief Construct a new FITKAbstractFiled object
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
explicit FITKAbstractFiled() = default;
/**
* @brief Destroy the FITKAbstractFiled object
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
virtual ~FITKAbstractFiled() = 0;
/**
* @brief
* @return FITKFieldType
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
virtual FITKFieldType getFieldType() = 0;
/**
* @brief
* @param des
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
void setDescribe(const QString & des);
/**
* @brief
* @return QString
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
QString getDescribe() const;
/**
* @brief ,id
* @param[i] obj
* @return true
* @return false
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-12
*/
virtual bool copy(FITKAbstractDataObject* obj) override;
private:
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
QString _describe{};
};
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
class FITKInterfacePhysicsAPI FITKFieldsManager :
public Core::FITKAbstractDataObject,public Core::FITKAbstractDataManager<FITKAbstractFiled>
{
public:
/**
* @brief Construct a new FITKFieldsManager object
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
explicit FITKFieldsManager() = default;
/**
* @brief Destroy the FITKFieldsManager object
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
virtual ~FITKFieldsManager() = default;
/**
* @brief
* @param[i] t
* @return QList<FITKAbstractFiled*>
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-11
*/
QList<FITKAbstractFiled*> getFields(FITKAbstractFiled::FITKFieldType t);
};
}
#endif