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/OperatorsGUI/OperGraphPickPreview.h

112 lines
3.4 KiB
C

/*****************************************************************//**
* @file OperGraphPickPreview.h
* @brief
*
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*********************************************************************/
#ifndef __OPERGRAPHPICKPREVIEW_H__
#define __OPERGRAPHPICKPREVIEW_H__
#include "OperatorsInterface/GraphInteractionOperator.h"
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"
// 前置声明
namespace Exchange
{
class FITKFluidVTKGraphObject3D;
class FITKFluidVTKGraphObjectPickPreview;
}
namespace GraphData
{
class PickedDataProvider;
}
namespace GUIOper
{
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
class OperGraphPickPreview : public EventOper::GraphInteractionOperator
{
public:
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
explicit OperGraphPickPreview();
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
~OperGraphPickPreview();
/**
* @brief []
* @param graphWindow
* @param actor
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
void picked(Comp::FITKGraph3DWindowVTK* graphWindow, vtkActor2D* actor) override;
/**
* @brief []
* @param graphWindow
* @param actor
* @param index
* @param pickedWorldPos
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
void picked(Comp::FITKGraph3DWindowVTK* graphWindow, vtkActor* actor, int index, double* pickedWorldPos) override;
/**
* @brief []
* @param graphWindow[]
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
void clear(Comp::FITKGraph3DWindowVTK* graphWindow = nullptr) override;
private:
/**
* @brief
* @param obj
* @param graphWidget
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
void addGraphObjectToWidget(Exchange::FITKFluidVTKGraphObject3D* obj, Comp::FITKGraph3DWindowVTK* graphWidget);
private:
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
Exchange::FITKFluidVTKGraphObjectPickPreview* m_graphObjPreview{ nullptr };
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
GraphData::PickedDataProvider* m_pickedProvider{ nullptr };
};
Register2FITKOPeratorRepo(GraphPickPreview, OperGraphPickPreview);
} // namespace GUIOper
#endif // __OPERGRAPHPICKPREVIEW_H__