<div dir="ltr">GetTitleTextProperty requires an argument specifying an axis.<div style>The code you provided does not compile.</div><div style>Try</div><div style><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">
this->CubeAxesActor->GetTitleTextProperty(0)->SetColor(1.0, 0.0, 0.0);<br></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">this->CubeAxesActor->GetTitleTextProperty(0)->GetColor(); // Print 1.0 0.0 0.0</div>
<div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">this->CubeAxesActor->GetTitleTextProperty(0)->SetFontFamily(VTK_ARIAL);</div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">
this->CubeAxesActor->GetTitleTextProperty(0)->GetFontFamily(); // Print VTK_ARIAL</div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><br></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">
works for me.</div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 12, 2013 at 5:28 AM, Sébastien PULVERAIL <span dir="ltr"><<a href="mailto:skeleton18@gmail.com" target="_blank">skeleton18@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have been trying to change the properties (color and font) of the title axes for a vtkCubeAxesRepresentation using the setter functions.</div>
<div><br></div><div>But, nothing changed in the representation. However, when I call the getter functions, the changes have been made.</div>
<div><br></div><div>Is there some kind of an update function, or a modified one that I need to call?</div><div><br></div><div>Here is the piece of code I use:</div><div>this->CubeAxesActor->GetTitleTextProperty()->SetColor(1.0, 0.0, 0.0);<br>
</div><div>this->CubeAxesActor->GetTitleTextProperty()->GetColor(); // Print 1.0 0.0 0.0</div><div>this->CubeAxesActor->GetTitleTextProperty()->SetFontFamily(VTK_ARIAL);</div><div>this->CubeAxesActor->GetTitleTextProperty()->GetFontFamily(); // Print VTK_ARIAL</div>
<div><br></div><div>Thanks in advance.</div><div><div>Seb</div>
</div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>