<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi all,</span></div><div><span><br></span></div><div><span>Thank you Adrian for your reply.</span></div><div>I tried to use vtkCanvas.getHeight and vtkCanvas.getWidth to adjust the positions of the actors, as I want to put string in middle of every side of the canvas.</div><div>But does not work out. It shows the strings in the lower part of the canvas. I am using vtkResliceViewer to view slice from the volume. I think i have to do something with viewport or scaling??!!!</div><div><br></div><div>Any help?.</div><div><br></div><div>Best Regards,</div><div> </div><div>El-Hassan Abdou<br>Biomedical engineering<br></div> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial">
<hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Najzero <adrian.gabriel@4plus.de><br> <b><span style="font-weight: bold;">To:</span></b> vtkusers@vtk.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, June 19, 2012 2:06 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vtkusers] vtkTextactor java<br> </font> </div> <br>
Hi,<br><br>I belive the vtkTextActor is derived from vtkActor2d so you should be able<br>to use it's setPosition() function.<br><br>So a simple upcast should do the trick.<br><br>Best regards<br>Adrian<br><br>--<br>View this message in context: http://vtk.1045678.n5.nabble.com/vtkTextactor-java-tp5713996p5713997.html<br>Sent from the VTK - Users mailing list archive at <a target="_blank" href="http://Nabble.com/">Nabble.com</a>.<br>_______________________________________________<br>Powered by <a target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br><br>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br><br>Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.vtk.org/mailman/listinfo/vtkusers<br><br><br> </div> </div> </div></body></html>