Hello, <br><br>I want to put a text on the render window with a visible bounding box around the text. I&#39;m trying this with vtkCaptionActor2D but the text always appears on top of the bounding box and never inside it. <br>
<br>What I have to do to view the text inside the bounding box of the vtkCaptionActor2D?<br>Could some one post a code snippet that does this?<br><br>My code looks like this<br><br>vtkCaptionActor2D *captionActor = vtkCaptionActor2D::New();
<br>captionActor-&gt;SetCaption( &quot;Some text.....&quot; );<br>captionActor-&gt;LeaderOff();<br>captionActor-&gt;SetPosition( topLeftX, topLeftY );<br>captionActor-&gt;SetPosition2( bottomRightX, bottomRighY );<br><br>
Thanks!<br>