[vtkusers] vtkTextactor java
Elhassan Abdou
hassan.abdou at yahoo.com
Wed Jun 20 04:04:40 EDT 2012
Hi all,
Thank you Adrian for your reply.
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.
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??!!!
Any help?.
Best Regards,
El-Hassan Abdou
Biomedical engineering
________________________________
From: Najzero <adrian.gabriel at 4plus.de>
To: vtkusers at vtk.org
Sent: Tuesday, June 19, 2012 2:06 PM
Subject: Re: [vtkusers] vtkTextactor java
Hi,
I belive the vtkTextActor is derived from vtkActor2d so you should be able
to use it's setPosition() function.
So a simple upcast should do the trick.
Best regards
Adrian
--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkTextactor-java-tp5713996p5713997.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120620/204a73ce/attachment.htm>
More information about the vtkusers
mailing list