[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
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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtk-developers