[vtkusers] Cannot control title color for vtkAxisActor
Josh
juk124 at psu.edu
Mon Feb 17 15:02:15 EST 2014
Dear Users,
I am having trouble controlling the title color for a vtkAxisActor.
When I change the color, only the front face of the titles change
color. In other words, when you rotate the axes around such that the
titles reverse direction and show their back face, the color cannot be
changed from the default black.
I have found that using a combination of:
axis->GetTitleTextProperty()->SetColor(rgb)
...followed by:
axis->GetTitleActor()->GetProperty()->SetColor(rgb)
...seems to work best, but I still cannot change the backface color.
Even using:
axis->GetTitleActor()->GetBackFaceProperty()->SetColor(rgb)
...doesn't solve the problem.
The axes labels on the other hand work perfectly. When I change their
color, they are correctly colored regardless of axes rotation.
I've attached 2 screenshots to demonstrate the issue:
https://dl.dropboxusercontent.com/u/26329990/TitleCorrect.png
https://dl.dropboxusercontent.com/u/26329990/TitleIncorrect.png
The title color in the screenshots should be red, but when rotated
slightly, you can see that the backface is displayed as black.
Any suggestions on how to solve this problem?
Best Regards,
Josh<http://www.engr.psu.edu/ce/directory/websites/view.aspx?page=juk124>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140217/b106f222/attachment.html>
More information about the vtkusers
mailing list