[vtk-developers] new vtkTextProperty class and changes

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Mon Jul 1 14:33:53 EDT 2002


Unless I misunderstood. Lisa was hinting that

vtkActor2D--->vtkTextActor and others
(Property)      vtkTextProperty

this means 2 properties for the textactors...(Doh!)

how about

vtkAbstractActor2d ->vtkActor2D (Normal property)
                   ->vtkTextActor (TextProperty)

ignore this if I've missed the point

JB


----- Original Message -----
From: "Sebastien BARRE" <sebastien.barre at kitware.com>
To: "Lisa Avila" <lisa.avila at kitware.com>
Cc: <vtk-developers at public.kitware.com>
Sent: Monday, July 01, 2002 5:05 PM
Subject: Re: [vtk-developers] new vtkTextProperty class and changes


> At 7/1/2002 11:52 AM, Lisa Avila wrote:
>
> >>The Color and Opacity attributes of the text are now controlled by the
> >>vtkTextProperty instead of the actor2D.
> >>     Thus, instead of:
> >>         actor->GetProperty()->SetColor(...)
> >>         actor->GetProperty()->SetOpacity(...)
> >>     you would do:
> >>         actor->GetTextProperty()->SetColor(...)
> >>         actor->GetTextProperty()->SetOpacity(...)
> >
> >This seems somewhat awkward since a 2D actor has both a GetProperty and a
> >GetTextProperty.
>
> Sorry, that example was a bit confusing.
> There is no vtkTextProperty in vtkActor2D.
> Each time an actor (for example vtkTextActor, vtkXYPlotActor,
> vtkScalarBarActor, etc.) use text, it has one (or more) internal text
> property of its own, or it provides an accessor to an internal sub actor
> (for example, vtkXYPlotActor has GetLegendBoxActor() so that you can tweak
> the text property of its internal vtkLegendBoxActor).
>
> Although all of these actors have vtkActor2D as parent, I did not put the
> vtkTextProperty in this parent, since it would be confusing (as you
noticed).
>
> In the previous example, actor is not a vtkActor2D per-say, but an
instance
> of some of the actors listed above (vtkTextActor, vtkXYPlotActor, etc.).
In
> the past, the actor's vtkProperty was used to control the color of the
text
> as well of the color of the geometry, which could lead to hard-to-read
> results (for example, vtkParallelCoordinatesActor use the same color for
> the plot, the label, title, etc).
>
>
> --
> Sebastien Barre
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/vtk-developers




More information about the vtk-developers mailing list