I resolved the problem, it was because of the coordinates, by default they are relative among them ( the attachment point, the position and the position2 ) and I didn&#39;t take that into account.<br><br><div><span class="gmail_quote">
On 3/8/07, <b class="gmail_sendername">Amy Squillacote</b> &lt;<a href="mailto:amy.squillacote@kitware.com">amy.squillacote@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Jesús,<br><br>Take a look at TestCaptionActor.tcl in VTK/Hybrid/Testing/Tcl. This test<br>demonstrates putting a bounding box around some text.<br><br>- Amy<br><br>Jesús Spí­nola wrote:<br>&gt; Hello,<br>&gt;<br>&gt; I want to put a text on the render window with a visible bounding box
<br>&gt; around the text. I&#39;m trying this with vtkCaptionActor2D but the text<br>&gt; always appears on top of the bounding box and never inside it.<br>&gt;<br>&gt; What I have to do to view the text inside the bounding box of the
<br>&gt; vtkCaptionActor2D?<br>&gt; Could some one post a code snippet that does this?<br>&gt;<br>&gt; My code looks like this<br>&gt;<br>&gt; vtkCaptionActor2D *captionActor = vtkCaptionActor2D::New();<br>&gt; captionActor-&gt;SetCaption( &quot;Some text.....&quot; );
<br>&gt; captionActor-&gt;LeaderOff();<br>&gt; captionActor-&gt;SetPosition( topLeftX, topLeftY );<br>&gt; captionActor-&gt;SetPosition2( bottomRightX, bottomRighY );<br>&gt;<br>&gt; Thanks!<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; This is the private VTK discussion list.<br>&gt; Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ
</a><br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br><br>--<br>Amy Squillacote<br>Kitware, Inc.
<br>28 Corporate Drive<br>Clifton Park, NY 12065<br>Phone: (518) 371-3971 x106<br><br></blockquote></div><br>