[vtkusers] Some TextProperty items don't work with AxesActor

David Doria daviddoria+vtk at gmail.com
Sun Dec 13 08:38:35 EST 2009


If I have an AxesActor:

vtkSmartPointer<vtkAxesActor> axes = vtkSmartPointer<vtkAxesActor>::New();

I can set the color of the xlabel text like this:
axes->GetXAxisCaptionActor2D()->GetCaptionTextProperty()->SetColor(1,0,0);

But I tried to set the size of the xlabel text:
axes->GetXAxisCaptionActor2D ()->GetCaptionTextProperty()->SetFontSize (20);

but it doesn't seem to affect the result. Any reason for this?

Thanks,

David



More information about the vtkusers mailing list