[vtk-developers] Proposal to add background properties (Color and Opacity) to vtkTextProperty

Roger Bramon Feixas rogerbramon at gmail.com
Thu Oct 27 07:07:50 EDT 2011


Hi,

We have the necessity to draw the bounding box of a text in order to improve
the readability of a text when it is drawn in front of an image which has
similar colors.

Please, see it in gerrit: http://review.source.kitware.com/#change,3153

We decided to add two background properties (Color and Opacity) to
vtkTextProperty using the same design of Color and Opacity properties.
Having these properties in vtkTextProperty allow us to use it in either
vtkTextActor or vtkTextMapper.

Moreover, we modified vtkFreeTypeUtilities and vtkOpenGLFreeTypeTextMapper
to test these new properties with vtkTextActor and vktTextMapper,
respectively. I guess we should also consider to modify
vtkMesaFreeTypeTextMapper but it is not done yet.

Note that, vtkFreeTypeUtilities also includes the modifications to solve the
shadow rendering proposed here: http://vtk.org/Bug/view.php?id=9618. It is
required to draw the background correctly, but it can be pushed separately.

I'm not sure who should be the reviewers or if it is better to discuss it on
the mailing list. So, please, let me know about that.

Thanks,

Roger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20111027/e84de529/attachment.html>


More information about the vtk-developers mailing list