[vtkusers] Some TextProperty items don't work with AxesActor
Bill Lorensen
bill.lorensen at gmail.com
Sun Dec 13 12:58:04 EST 2009
Looks like this composite actor does some automagic scaling unless you
turn it off. Try adding:
axes->GetYAxisCaptionActor2D ()->GetTextActor()->SetTextScaleModeToNone();
Bill
On Sun, Dec 13, 2009 at 8:38 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list