<DIV>Hi, </DIV>
<DIV>I created a vtkCaptionActor2D to display text at a specified</DIV>
<DIV>coordinate. Everything works fine except that whatever the font</DIV>
<DIV>size I set, it is always the same. I just cannot modify the font</DIV>
<DIV>size, and the default one is just too big. </DIV>
<DIV>Any idea of what I am doing wrong?</DIV>
<DIV>Thank you!<FONT size=2></DIV>
<DIV>
<P></FONT><FONT color=#008000 size=2>//Create an actor to display the caption.</P></FONT><FONT size=2>
<P>vtkCaptionActor2D* caption_actor = vtkCaptionActor2D::New();</P>
<P></FONT>
<P><FONT size=2></P>
<P></P></FONT><FONT color=#008000 size=2>//Create a property for the actor.</P></FONT><FONT size=2>
<P>vtkTextProperty* property = vtkTextProperty::New();</P>
<P></FONT>
<P><FONT size=2></P></FONT><FONT color=#008000 size=2>//Set the color to green and font to arial.</P></FONT><FONT size=2>
<P>property->SetColor(0, 1, 0);</P>
<P>property->SetFontFamilyToArial();</P>
<P></P>
<P>property->SetFontSize(12); //<<----That line has no effect???</P>
<P></FONT><FONT color=#008000 size=2>//Set the actor properties.</P></FONT><FONT size=2>
<P>caption_actor->SetCaptionTextProperty(property);</P>
<P></FONT><FONT color=#008000 size=2>//Remove the caption borders.</P></FONT><FONT size=2>
<P>caption_actor->SetBorder(FALSE);</P>
<P></FONT><FONT color=#008000 size=2>//Set the caption.</P></FONT><FONT size=2>
<P>caption_actor->SetCaption("My caption...");</P>
<P></P>
<P></FONT>
<P><FONT size=2></P>
<P></P></FONT><FONT color=#008000 size=2>//Set the attachment point.</P></FONT><FONT size=2>
<P>caption_actor->SetAttachmentPoint(x, y, z);</P>
<P></FONT><FONT color=#008000 size=2>//Add the caption into the renderer.</P></FONT><FONT size=2>
<P>m_renderer->AddActor2D(caption_actor);</P>
<P></P>
<P></FONT><FONT color=#008000 size=2>//Clear allocated memory.</P></FONT><FONT size=2>
<P>caption_actor->Delete();</P>
<P>property->Delete();</P>
<P></FONT><FONT size=2> </P></FONT></DIV><p><br><hr size=1>Post your free ad now! <a href="http://ca.personals.yahoo.com/"><b>Yahoo! Canada Personals</b></a><br>