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

121 lines
3.7 KiB
C

/**
*
* @file FITKComponentCreator.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*
*/
#ifndef __FITKCOMPONENT_CREATOR_H__
#define __FITKCOMPONENT_CREATOR_H__
#include "FITK_Kernel/FITKCore/FITKAbstractObject.hpp"
#include "FITKInterfaceModelAPI.h"
namespace Interface
{
class FITKComponentManager;
class FITKModelSet;
class FITKMeshSurface;
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*
*/
class FITKInerfaceModelAPI FITKComponentCreator : public Core::FITKAbstractObject
{
public:
/**
* @brief Construct a new FITKComponentCreator object
* @param[i] manager
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
explicit FITKComponentCreator(FITKComponentManager* manager);
/**
* @brief Destroy the FITKComponentCreator object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
virtual ~FITKComponentCreator() = default;
/**
* @brief
* @param[] name My Param doc
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
void setName(const QString& name);
/**
* @brief
* @param[] internal My Param doc
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
void isInternal(const bool internal);
/**
* @brief
* @param[i] parentID id
* @param[i] member ID
* @return FITKModelSet*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
FITKModelSet* createNodeSet(const int &parentID, const QList<int> & member);
/**
* @brief
* @param[i] parentID id
* @param[i] member ID
* @return FITKModelSet*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
FITKModelSet* createEleSet(const int &parentID, const QList<int> & member);
/**
* @brief
* @param[i] setSurfaceIndex
* @return FITKMeshSurface*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
FITKMeshSurface* createEleSurface(QHash<Interface::FITKModelSet*, int >& setSurfaceIndex);
private:
/**
* @brief
* @param[i] parentID id
* @param[i] member ID
* @return FITKModelSet*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
FITKModelSet* createSet(const int &parentID, const QList<int> & member);
private:
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
FITKComponentManager* _compManager{};
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
bool _internal{ true };
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
QString _name{};
};
}
#endif