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.

96 lines
2.9 KiB
C

/*****************************************************************//**
* @file OperGraphPick.h
* @brief
*
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*********************************************************************/
#ifndef __OPERGRAPHPICK_H__
#define __OPERGRAPHPICK_H__
#include "OperatorsInterface/GraphInteractionOperator.h"
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"
// 前置声明
class vtkDataSet;
namespace Interface {
class PostGraphObjectPick;
}
namespace GraphData
{
class PickedDataProvider;
}
namespace GUIOper
{
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
class OperGraphPick : public EventOper::GraphInteractionOperator
{
public:
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
explicit OperGraphPick();
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
~OperGraphPick();
/**
* @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 pickObjType
* @param pickMethod
* @param dataObjIdID-1[]
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
void setActorStateByPickInfo(int pickObjType, int pickMethod, int dataObjId = -1) override;
private:
/**
* @brief
* @param obj
* @param graphWidget
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
void addGraphObjectToWidget(Interface::PostGraphObjectPick* obj, Comp::FITKGraph3DWindowVTK* graphWidget);
private:
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-07-19
*/
GraphData::PickedDataProvider* m_pickedProvider{ nullptr };
};
Register2FITKOPeratorRepo(GraphPick, OperGraphPick);
} // namespace GUIOper
#endif // __OPERGRAPHPICK_H__