[vtk-developers] new vtkTextActor class and slight mapperchanges
John Biddiscombe
jbiddiscombe at skippingmouse.co.uk
Wed Jun 12 12:55:19 EDT 2002
> - you will still be able to create a unique object, i.e. vtkTextActor,
> instead of a vtkTextMapper and a vtkActor2D.
>
> - instead of doing actor->SetBold(), you just have to do as usual:
> vtkTextMapper* mapper = actor->GetMapper();
> mapper->SetBold();
This is How it is designed now. The only problem is that you have to do this
vtkTextMapper* mapper = (vtkTextMapper* )(actor->GetMapper());
because if you put
vtkTextMapper* GetMapper(void);
in vtkTextActor, the compiler grunts and squeals about there being
vtkMapper2D* GetMapper(void);
and the only difference is the return type.
JB
More information about the vtk-developers
mailing list