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/FITKInterfaceModel/FITKAbstractModel.h

101 lines
2.9 KiB
C

/**
*
* @file FITKAbstractModel.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-27
*
*/
#ifndef __FITKABSTRACTMODEL_H__
#define __FITKABSTRACTMODEL_H__
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"
#include "FITKInterfaceModelAPI.h"
#include "FITKModelEnum.h"
namespace Interface
{
class FITKComponentManager;
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-27
*/
class FITKInerfaceModelAPI FITKAbstractModel : public Core::FITKAbstractNDataObject
{
public:
/**
* @brief Construct a new FITKAbstractModel object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-27
*/
explicit FITKAbstractModel() = default;
/**
* @brief Destroy the FITKAbstractModel object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-27
*/
virtual ~FITKAbstractModel() = 0;
/**
* @brief
* @return AbsModelType
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-27
*/
virtual FITKModelEnum::AbsModelType getAbsModelType() = 0;
/**
* @brief /
* @return Interface::FITKModelSetManager*
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-03-17
*/
virtual FITKComponentManager* getComponentManager();
/**
* @brief
* @param[i] file
* @return true
* @return false
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
virtual bool writeToFile(const QString & file);
/**
* @brief
* @return FITKModelDim
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-27
*/
virtual FITKModelEnum::FITKModelDim getModelDim();
/**
* @brief
* @param[i] pointID ID
* @param[o] coor
* @param[i] modelIndex
* @return bool
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-19
*/
virtual bool getPointCoor(int pointID, double* coor, int modelIndex = 0);
public:
/**
* @brief
* @param[i] from
* @param[i] to
* @param[i] dim
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-19
*/
static void CopyArray(double* from, double* to, int dim);
};
}
#endif