[vtkusers] Change properties of axis titles for a vtkCubeAxesRepresentation

Sébastien PULVERAIL skeleton18 at gmail.com
Mon Aug 12 05:28:14 EDT 2013


Hi,

I have been trying to change the properties (color and font) of the title
axes for a vtkCubeAxesRepresentation using the setter functions.

But, nothing changed in the representation. However, when I call the getter
functions, the changes have been made.

Is there some kind of an update function, or a modified one that I need to
call?

Here is the piece of code I use:
this->CubeAxesActor->GetTitleTextProperty()->SetColor(1.0, 0.0, 0.0);
this->CubeAxesActor->GetTitleTextProperty()->GetColor(); // Print 1.0 0.0
0.0
this->CubeAxesActor->GetTitleTextProperty()->SetFontFamily(VTK_ARIAL);
this->CubeAxesActor->GetTitleTextProperty()->GetFontFamily(); // Print
VTK_ARIAL

Thanks in advance.
Seb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130812/ebd34154/attachment.htm>


More information about the vtkusers mailing list