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

Roger Bramon Feixas rogerbramon at gmail.com
Thu Nov 3 15:17:46 EDT 2011


Hi,

Anyone have some time to discuss about it? We believe it's a good feature
to be added.

Thanks,

Roger

On Thu, Oct 27, 2011 at 1:07 PM, Roger Bramon Feixas
<rogerbramon at gmail.com>wrote:

> 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/20111103/f5f684a8/attachment.html>


More information about the vtk-developers mailing list