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.
101 lines
2.9 KiB
C++
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
|