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.

90 lines
2.9 KiB
C

/**********************************************************************
* @file PostGraphObjectManager.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*********************************************************************/
#ifndef __PostGraphObjectManager_H__
#define __PostGraphObjectManager_H__
#include "PostGraphObjectAgent.h"
#include "PostGraphObjectLight.h"
#include "FITK_Kernel/FITKCore/FITKAbstractDataManager.hpp"
#include "FITK_Kernel/FITKCore/FITKCoreMacros.h"
#include <QMutex>
#include <QMutexLocker>
#include <QList>
namespace Interface
{
class FITKAbstractCFDPostData;
class PostGraphObjectBase;
class PostGraphObjectLight;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-16
*/
class PostGraphAdaptorAPI PostGraphLightManager : public Core::FITKAbstractDataManager<PostGraphObjectLight>
{
public:
PostGraphLightManager() = default;
~PostGraphLightManager() = default;
};
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*/
class PostGraphAdaptorAPI PostGraphObjectManager : public Core::FITKAbstractDataManager<PostGraphObjectAgent>
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-10
*/
DeclSingleton(PostGraphObjectManager);
public:
/**
* @brief
* @param[i] postData
* @return PostGraphObjectBase*
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-12
*/
PostGraphObjectBase* getGraphObjectBase(FITKAbstractCFDPostData* postData);
/**
* @brief
* @param[i] PostDataID ID
* @return PostGraphObjectBase*
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-13
*/
PostGraphObjectBase* getGraphObjectBase(int PostDataID);
/**
* @brief
* @return PostGraphLightManager*
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-16
*/
PostGraphLightManager* getGraphLightManager();
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*/
void initialize();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*/
void finalize();
private:
PostGraphLightManager* _postLightManager = nullptr;
};
}
#endif