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/FITKGraphRender.h

124 lines
3.3 KiB
C

/**
*
* @file FITKGraphRender.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-14
*
*/
#ifndef _FITKRender_H_
#define _FITKRender_H_
#include "FITKRenderWindowVTKAPI.h"
#include <QObject>
#include <QMutex>
class vtkRenderer;
class vtkRenderWindow;
namespace Core
{
class FITKGraphObjectManager;
class FITKGraphObjManager;
}
namespace Comp
{
class FITKGraphObjectVTK;
class FITKGraph3DWindowVTK;
// class FITKGraphObjectManager;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-14
*/
class FITKRenderWindowVTKAPI FITKGraphRender :public QObject
{
Q_OBJECT;
public:
/**
* @brief Construct a new FITKCompRender object
* @param[i] renderWin
* @param[i] type
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-11
*/
FITKGraphRender(FITKGraph3DWindowVTK* graphWin);
/**
* @brief Destroy the FITKCompRender object
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-11
*/
virtual ~FITKGraphRender();
/**
* @brief
* @param[i] object
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-14
*/
void addObject(FITKGraphObjectVTK* object);
/**
* @brief
* @param[i] object
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-14
*/
void removeObject(FITKGraphObjectVTK* object);
/**
* @brief
* @return vtkRenderer*
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-11
*/
vtkRenderer* getRenderer();
/**
* @brief actor
* @param[o] bound
* @return double 线<0
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-14
*/
double getActorBounds(double* bound);
/**
* @brief
* @return int
* @author Libaojun (libaojunqd@foxmail.com)
* @date 2024-04-26
*/
int getGraphObjectCount();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-28
*/
void clear();
/**
* @brief
* @param[i] rgb1
* @param[i] rgb2
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-05-08
*/
void setBackgroundColor(float* rgb1, float* rgb2 = nullptr);
private:
FITKGraph3DWindowVTK* _graphWidget{};
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-11
*/
vtkRenderer* m_renderer = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-22
*/
Core::FITKGraphObjManager* m_objectManager = nullptr;
};
}
#endif