[vtk-developers] new vtkTextActor class and slight mapperchanges
John Biddiscombe
jbiddiscombe at skippingmouse.co.uk
Wed Jun 5 12:06:10 EDT 2002
> What do you mean ? If there are more TextMapper/Actor2D pairs, then I'd
> have stick to display coords, since that's what they most probably use,
> don't you think so ?
It does use Display coordinates by default.
Summary!
Old vtkActor2d + vtkTextMapper : Display coords
Old ScaledTextActor + vtkTextMapper : Normalized Viewport coords (!)
New vtkTextActor : Display coords :)
The new ScaledTextActor class ( just a constructor and naught else), simply
sets PositionCoordinate to Normalized viewport, sets ScaledText to true, and
prints out a
Deprecation warning ^H^H^H^H^H^H doesn't display a warning).
All existing code will work as previously, but if you search/replace
ScaledTextActors for the new TextActors you need to add ScaledTextOn and
PositionCordinate->NormalizedCoords.
I haven't replaced old vtkActor2D code with the new actor as it will involve
a bit more search/replacing, but gradually, I'll change them as I come
across them.
JB
More information about the vtk-developers
mailing list