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

191 lines
6.0 KiB
C

/**
*
* @file FITKAbstractElement.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*
*/
#ifndef __FITABSTRACT_ELEMENT_H___
#define __FITABSTRACT_ELEMENT_H___
#include "FITKInterfaceModelAPI.h"
#include "FITKModelEnum.h"
#include "FITK_Kernel/FITKCore/FITKAbstractObject.hpp"
#include <QList>
namespace Interface
{
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
class FITKInerfaceModelAPI FITKAbstractElement : public Core::FITKAbstractObject
{
public:
/**
* @brief Construct a new FITKAbstractElement object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
FITKAbstractElement () = default;
/**
* @brief Destroy the FITKAbstractElement object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
virtual ~FITKAbstractElement ();
/**
* @brief
* @return FITKEleType
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
virtual FITKModelEnum::FITKEleType getEleType() = 0;
/**
* @brief
* @return int
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
virtual int getNodeCount() = 0;
/**
* @brief ID
* @param[i] id ID
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
void setEleID(const int id);
/**
* @brief ID
* @return int
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
int getEleID() const;
/**
* @brief indexIDIDIndex
* @param[i] index 0
* @return int
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
int getNodeID(const int index) const;
/**
* @brief IDIDIndex
* @param[i] index 0
* @param[i] nodeID ID IDIndex
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
void setNodeID(const int index, int nodeID);
/**
* @brief IDIDIndex
* @param[i] ids IDgetNodeCount
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
void setNodeID(const QList<int>& ids );
/**
* @brief
* @return int
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
virtual int getFaceCount() = 0 ;
/**
* @brief
* @return int 1线 2 3
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-09
*/
virtual int getElementDim() = 0;
/**
* @brief
* @return int
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
virtual int getEdgeCount() = 0 ;
/**
* @brief index
* @param[i] index 0
* @return QList<int> getNodeCount
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
virtual QList<int> getFace(const int index) = 0;
/**
* @brief index
* @param[i] index 0
* @return QList<int> getNodeCount
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
virtual QList<int> getEdge(const int index) = 0;
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-03
*/
void reverse();
/**
* @brief
* @param[i] face
* @param[i] normalSens
* @return int
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
int getFaceIndex(const QList<int>& face, bool normalSens = false);
private:
/**
* @brief
* @param[i] face
* @return int
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
int getFaceIndexNorSen (const QList<int>& face);
/**
* @brief
* @param[i] face
* @return int
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-24
*/
int getFaceIndexNorUnSen(const QList<int>& face);
protected:
/**
* @brief
* @param[i] c
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
virtual void setNodeCount(const int c);
protected:
/**
* @brief ID
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
int _eleID{ -1 };
/**
* @brief ID
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-28
*/
QList<int> _elemenTopo{};
};
}
#endif