[vtkusers] How to make a vtkFollower font bold ?
N Smethurst
nick.smethurst at free.fr
Fri Jul 18 06:26:11 EDT 2003
vtkFollower is just an actor which turns during interaction. vtkVectorText
creates polyon data that is in the shape of the text that you supply it.
There doesn't seem to be any further functionality in vtkVectorText than
to set the text string.
My advice would be to use a 2D text pipeline which renderers on the
overlay. The quality is also much better.
Le Vendredi 18 Juillet 2003 11:56, de Boer Ingo a écrit :
> How can I change the font to eg. bold of a vtkFollower ?
>
> I have something like
>
> vtkVectorText pvtkVectorTextX = vtkVectorText::New();
> vtkPolyDataMapper pvtkPolyDataMapperX = vtkPolyDataMapper::New();
> pvtkVectorTextX->SetText("X");
> pvtkPolyDataMapperX->SetInput(pvtkVectorTextX->GetOutput());
> m_pvtkFollowerAxesX->SetMapper(pvtkPolyDataMapperX);
>
> But I don't have a textproperty. If I want to use
> vtkTextProperty, I cannot use vtkFollower... What am I
> missing here ?
>
> or the other way round. How can I use a vtkTextMapper with
> vtkFollower ? Which would be my first choice in handling this...
More information about the vtkusers
mailing list