Visual3d_layer text replacement

Hi, I am using Visual3D_Layer to manage rectangular zoom cursor and to display some entities information at the cursor position with OCC6.6.0. 

Now with OCC7.2.0 the Visual3D_Layer class was erased.

For the Zoom cursor I am using the new AIS_RubberBand class.

But, what can i use to dynamically display entities information at cursor position ?

Every suggestion will be appreciated.

 

 

 

 

 

Kirill Gavrilov's picture

AIS_TextLabel?

Marco Balen's picture

I try it

thanks

Marco Balen's picture

I Kirill,

have any idea of what type of coordinate is necessary ti position the text ?

It seems that it are not "3d" coordinate as the other AIS entties.

It seems pixel coordinate but with Y inverted !? 

Kirill Gavrilov's picture

At first, you can check the source code of Draw Harness command vdrawtext,
as well as test cases in folder tests/3rdparty/fonts demonstrating various scenarios of text label usage
(just check each test in 3D viewer to see which one does something similar to what you are looking for).