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_Component/FITKRenderWindowVTK/FITKGraph3DWindowInterface.h

128 lines
3.5 KiB
C

/**
*
* @file FITKGraph3DWindowInterface.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-14
*
*/
#ifndef _FITKGraph3DWindowInterface_H_
#define _FITKGraph3DWindowInterface_H_
#include "FITKRenderWindowVTKAPI.h"
#include "FITK_Kernel/FITKAppFramework/FITKComponentInterface.h"
#include "FITK_Kernel/FITKCore/FITKVarientParams.h"
#include <functional>
#include <QHash>
//定义字符串
#define VTKRENDERLAYER "VTKRENDERLAYER"
#define BackGroundColorTop "BackGroundColorTop"
#define BackGroundColorButtom "BackGroundColorButtom"
namespace Comp
{
class FITKGraphInteractionStyle;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-18
*/
class FITKRenderWindowVTKAPI Graph3DWindowInitializer : public Core::FITKVarientParams
{
public:
explicit Graph3DWindowInitializer() = default;
virtual ~Graph3DWindowInitializer() = default;
/**
* @brief
* @return FITKGraphInteractionStyle*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-05-08
*/
virtual FITKGraphInteractionStyle* getStyle();
/**
* @brief
* @param[i] nc
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-05-08
*/
void setLayerCount(const int nc );
/**
* @brief
* @return int
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-05-08
*/
int getLayerCount() const;
private:
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-05-08
*/
int _layerCount{ 3 };
};
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-12
*/
class FITKRenderWindowVTKAPI FITKGraph3DWindowInterface :public AppFrame::FITKComponentInterface
{
public:
/**
* @brief Construct a new FITKGraph3DWindowInterface object
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-14
*/
FITKGraph3DWindowInterface() = default;
/**
* @brief Destroy the FITKGraph3DWindowComp object
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-12
*/
virtual ~FITKGraph3DWindowInterface();
/**
* @brief
* @param[i] indexPort
* @return QWidget*
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-12
*/
QWidget* getWidget(const int indexPort)override;
/**
* @brief
* @return QString
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-12
*/
QString getComponentName();
/**
* @brief
* @param[i] key
* @param[i] info
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-18
*/
void addInitializer(int key, Graph3DWindowInitializer* info);
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-18
*/
QHash<int, Graph3DWindowInitializer*> _initilizerList{};
};
}
#endif