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/FITKInterfaceGeometry/FITKGeometryMeshVS.h

126 lines
3.9 KiB
C

/**
*
* @file FITKGeometryMeshVS.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*
*/
#ifndef _FITK_GEOMETRY_MESH_VS_H___
#define _FITK_GEOMETRY_MESH_VS_H___
#include "FITKInterfaceGeometryAPI.h"
#include "FITK_Kernel/FITKCore/FITKAbstractDataObject.h"
#include <QHashIterator>
namespace Interface
{
class FITKGeoMeshVSPt;
class FITKGeoMeshVSEdgeEntity;
class FITKGeoMeshVSFaceEntity;
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
class FITKInterfaceGeometryAPI FITKGeometryMeshVS :
public Core::FITKAbstractDataObject
{
public:
/**
* @brief Construct a new FITKGeometryMeshVS object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
explicit FITKGeometryMeshVS() = default;
/**
* @brief Destroy the FITKGeometryMeshVS object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
virtual ~FITKGeometryMeshVS();
/**
* @brief
* @param[i] id id
* @param[i] pt
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
void insertPoint(int id, FITKGeoMeshVSPt* pt);
/**
* @brief
* @param[i] id id
* @param[i] pt
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
void insertEdge(int id, FITKGeoMeshVSEdgeEntity* pt);
/**
* @brief
* @param[i] id id
* @param[i] pt
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
void insertFace(int id, FITKGeoMeshVSFaceEntity* pt);
/**
* @brief
* @return const QHash<int, FITKGeoMeshVSPt*>& int id
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
const QHash<int, FITKGeoMeshVSPt*> & getPointItems() const;
/**
* @brief
* @return const QHash<int, FITKGeoMeshVSPt*>& int id
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
const QHash<int, FITKGeoMeshVSEdgeEntity*> & getEdgeItems() const;
/**
* @brief
* @return const QHash<int, FITKGeoMeshVSFaceEntity*>& int id
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
const QHash<int, FITKGeoMeshVSFaceEntity*> & getFaceItems() const;
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
void clear();
/**
* @brief
* @return true
* @return false
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
bool isValid();
private:
/**
* @brief id
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
QHash<int, FITKGeoMeshVSPt*> _points{};
/**
* @brief 线 id
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
QHash<int, FITKGeoMeshVSEdgeEntity*> _edges{};
/**
* @brief id
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-08-31
*/
QHash<int, FITKGeoMeshVSFaceEntity*> _faces{};
};
}
#endif