Thu, 04/07/2005 - 12:08
Forums:
We need to display texts, but we are not using OCAF. Quite an obvious solution would be to descend from TopoDS_TShape and TopoDS_Shape. Than it would be very easy to store it in our datastruct, and draw it in our way.
The question is that, is it a very unusual solution? And how would OCC's alorithms react to this "alien" class ? Has anyone tried it before?
Thanks.
Thu, 04/07/2005 - 15:42
If you need to display text in an OCC viewer, you could simply create your own AIS_InteractiveObject (AIS_Text3D for example). We did that by redefining the Compute method and using the Prs3d_Text::Draw method.
Good luck,
Francois.