How to get the hilighted AIS_InteractiveObject?

I want to get the hilighted AIS_InteractiveObject with mouse moving without selecting.

I have a drawing with a cube (TopoDS_Solid or TopoDS_Compound)
The filter is set to select Faces

Now when I move the mouse over the cube the face under the mouse is hilighted.
When I use AISContect.SelectedShape I get the whole solid not only the hilighted face.
I have also tried to use DetectedInteractive without success.

Any idea how to obtain only the hilighted face under the mouse without selecting it first?
Thank you in advance.


Peter Zbinden's picture

I found the solution now:

AISContext.DetectedShape gets the hilighted face under the mouse.