Hello, <br><br>I want to put a text on the render window with a visible bounding box around the text. I'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->SetCaption( "Some text....." );<br>captionActor->LeaderOff();<br>captionActor->SetPosition( topLeftX, topLeftY );<br>captionActor->SetPosition2( bottomRightX, bottomRighY );<br><br>
Thanks!<br>