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.

52 lines
1.2 KiB
C

#ifndef _PostGraphObjectPick_H
#define _PostGraphObjectPick_H
#include "PostGraphAdaptorAPI.h"
#include "PostGraphObjectBase.h"
class vtkDataSet;
class vtkPolyData;
class vtkUnstructuredGrid;
class vtkDataSetMapper;
namespace Interface
{
class PostGraphAdaptorAPI PostGraphObjectPick :public PostGraphObjectBase
{
public:
PostGraphObjectPick(FITKAbstractCFDPostData* postData, Comp::FITKGraph3DWindowVTK* graph3DWidget);
~PostGraphObjectPick();
void setPickeData(vtkUnstructuredGrid* grid);
void setPickedType(int type);
void setVisible(bool visibility);
void setColor(QColor color);
void update();
/**
* @brief
* @return int
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-22
*/
virtual int getRenderLayer();
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-22
*/
vtkActor* _actor = nullptr;
vtkUnstructuredGrid* _pickGrid = nullptr;
vtkUnstructuredGrid* _grid = nullptr;
vtkDataSetMapper* _mapper = nullptr;
};
}
#endif