<div dir="ltr">Yes, Sorry.. I don't copy-paste my code because it's confidential, and I forgot to put the index for the GetTitleTextProperty function.<div><br></div><div style>Can you provide me the code to show how you test it please? By this way, I will be able to compare with my own code.</div>
<div style><br></div><div style>Thanks in advance.</div></div><div class="gmail_extra"><br clear="all"><div>Seb</div>
<br><br><div class="gmail_quote">On Mon, Aug 12, 2013 at 1:56 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@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">GetTitleTextProperty requires an argument specifying an axis.<div>The code you provided does not compile.</div><div>Try</div><div><div style="font-size:13px;font-family:arial,sans-serif">
this->CubeAxesActor->GetTitleTextProperty(0)->SetColor(1.0, 0.0, 0.0);<br></div><div style="font-size:13px;font-family:arial,sans-serif">this->CubeAxesActor->GetTitleTextProperty(0)->GetColor(); // Print 1.0 0.0 0.0</div>
<div style="font-size:13px;font-family:arial,sans-serif">this->CubeAxesActor->GetTitleTextProperty(0)->SetFontFamily(VTK_ARIAL);</div><div style="font-size:13px;font-family:arial,sans-serif">
this->CubeAxesActor->GetTitleTextProperty(0)->GetFontFamily(); // Print VTK_ARIAL</div><div style="font-size:13px;font-family:arial,sans-serif"><br></div><div style="font-size:13px;font-family:arial,sans-serif">
works for me.</div><div style="font-size:13px;font-family:arial,sans-serif"><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">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>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div>_______________________________________________<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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</font></span></div>
</blockquote></div><br></div>