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/FITKInterfaceMesh/FITKUnstructuredFluidMeshVTK.h

164 lines
4.7 KiB
C

/**
*
* @file FITKUnstructuredFulidMeshVTK.h
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*
*/
#ifndef _FITKUNSTRUCTMESH_FLUID_H___
#define _FITKUNSTRUCTMESH_FLUID_H___
#include "FITKInterfaceMeshAPI.h"
#include "FITK_Interface/FITKInterfaceModel/FITKElementList.h"
#include "FITK_Kernel/FITKCore/FITKAbstractDataManager.hpp"
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"
#include <QList>
class vtkUnstructuredGrid;
namespace Interface
{
class FITKUnstructuredMeshVTK;
class FITKBoundaryMeshVTKManager;
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
class FITKInterfaceMeshAPI FITKUnstructuredFluidMeshVTK : public Core::FITKAbstractNDataObject
{
public:
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
explicit FITKUnstructuredFluidMeshVTK();
/**
* @brief Destroy the FITKUnstructuredFluidMeshVTK object
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
virtual ~FITKUnstructuredFluidMeshVTK();
/**
* @brief
* @return FITKUnstructuredMeshVTK*
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
FITKUnstructuredMeshVTK* getFieldMesh();
/**
* @brief
* @return FITKBoundaryMeshVTKManager*
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
FITKBoundaryMeshVTKManager* getBoundaryMeshManager();
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-26
*/
void clearMesh();
private:
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
FITKUnstructuredMeshVTK* _fieldMesh{};
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
FITKBoundaryMeshVTKManager* _boundaryMeshManager{};
};
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
class FITKInterfaceMeshAPI FITKBoundaryMeshVTK :public Core::FITKAbstractNDataObject,
public FITKElementList
{
FITKCLASS(Interface, FITKBoundaryMeshVTK);
public:
/**
* @brief Construct a new FITKBoundaryMeshVTK object
* @param[i] fieldmesh 使
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
explicit FITKBoundaryMeshVTK(FITKUnstructuredMeshVTK* fieldmesh);
/**
* @brief Destroy the FITKBoundaryMeshVTK object
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
virtual ~FITKBoundaryMeshVTK();
/**
* @brief
* @param[i] element
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
virtual void appendElement(FITKAbstractElement* element) override;
/**
* @brief vtk
* @return
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-24
*/
vtkUnstructuredGrid* getGrid();
private:
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
FITKUnstructuredMeshVTK* _fieldMesh{};
/**
* @brief VTK
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
vtkUnstructuredGrid* _vtkDataSet{};
};
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
class FITKInterfaceMeshAPI FITKBoundaryMeshVTKManager
: public Core::FITKAbstractDataManager<FITKBoundaryMeshVTK>
{
public:
/**
* @brief Construct a new FITKBoundaryMeshVTKManager object
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
explicit FITKBoundaryMeshVTKManager() = default;
/**
* @brief Destroy the FITKBoundaryMeshVTKManager object
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-07-24
*/
virtual ~FITKBoundaryMeshVTKManager() = default;
};
}
#endif