How to know which label is selected with mouse clicking when using vtkLabelPlacementMapper?

Dear users,

I tried to use vtkLabelPlacementMapper to manage many labels, but failed to get the info about which label was selected by mouse clicking. I used HardwareSelector,it could give which actor was selected (the actor corresponding to the label mapper), but always give the same number whichever label of the actor was clicked. Did not find any relevant info from the document. Please help teach me how to implement the right selection of the labels. BTW, the points or the corresponding glyphs can be correctly selected with the HardwareSelector. Thanks a lot!

Yongjin

I tried using vtkIdFilter to generate both point and cell id arrays before sending the data to vtkPointSetToLabelHierarchy, but still failed to get correct Id info for the selected label with HardareSelector. Also tried vtkLabeledDataMapper, it has the same issue regarding getting the selected label’s Id.
Got to know there is a new vtkFastLabeleddataMapper in vtk 9.5, but do not know whether the new filter still have the same issue.
Is there any solution for getting the label’s Id? Please kindly help or share some hints. Thanks a lot.