[vtk-developers] vtkImagePlaneWidget ENH
Sebastien BARRE
sebastien.barre at kitware.com
Mon Jul 29 15:50:13 EDT 2002
Hi Dean
At 7/29/2002 03:03 PM, Dean Inglis wrote:
>The text annotation is accomplished with a vtkTextActor (currently
>ScaledText off) and the text
>properties are controlled by access to the actor's vtkTextProperty.
The right/easy way to go is to remove your TextProperty ivar from your code
and just get or set the vtkTextProperty of your TextActor through your API.
>Something
>is up with the color of the text though: is there some confusion with the
>vtkTextActor's vtkProperty2D and vtkTextProperty in terms of precedence for
>color, since both have a color ivar?
You should have no pb with the change above.
As far as priority is concerned, if the color of a vtkTextActor's
vtkTextProperty has not been changed, its default value is -1.0, -1.0,
-1.0, which means that the vtkActor2D (i.e. vtkTextActor) color should be
used instead (to maintain backward comp for a while).
--
Sebastien Barre
More information about the vtk-developers
mailing list