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.

104 lines
2.9 KiB
C

/**********************************************************************
* @file PostGraphObjectBase.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-10
*********************************************************************/
#ifndef _PostGraphObjectBase_H
#define _PostGraphObjectBase_H
#include "PostGraphAdaptorAPI.h"
#include "FITK_Component/FITKRenderWindowVTK/FITKGraphObjectVTK.h"
namespace Interface {
class FITKAbstractCFDPostData;
}
namespace Comp {
class FITKGraph3DWindowVTK;
}
class vtkProp;
class vtkActor;
namespace Interface
{
class PostGraphProperty;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-10
*/
class PostGraphAdaptorAPI PostGraphObjectBase : public Comp::FITKGraphObjectVTK
{
Q_OBJECT;
public:
/**
* @brief
* @param[i] postData
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-10
*/
explicit PostGraphObjectBase(FITKAbstractCFDPostData* postData, Comp::FITKGraph3DWindowVTK* graph3DWidget);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-10
*/
virtual ~PostGraphObjectBase();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
virtual void create();
/**
* @brief ID
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-10
*/
int getPostID();
/**
* @brief
* @return PostGraphProperty*
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-12
*/
PostGraphProperty* getProperty();
/**
* @brief
* @return QList<vtkActor*>
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-12
*/
QList<vtkProp*> getActors();
/**
* @brief
* @param[i] isShow
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-12
*/
void setIsShow(bool isShow);
/**
* @brief
* @return int
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-22
*/
virtual int getRenderLayer();
protected:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-10
*/
FITKAbstractCFDPostData* _postData = nullptr;
PostGraphProperty* _property = nullptr;
Comp::FITKGraph3DWindowVTK* _currentWidget = nullptr;
};
}
#endif