For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Visual3d_layer text replacement

Marco Balen's picture
Forums: 

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).

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.