[vtkusers] Put labels onto image

Xiaopeng Yang yxp233 at postech.ac.kr
Fri Aug 26 09:46:47 EDT 2011


Thank you very much. One more question, I tried to put 2 captions onto the sphere. So I used two caption widgets. However, the two captions are overlapped at the left bottom corner. How to assign different location for different caption?

 

Best,

Xiaopeng

 

From: Dženan Zukić [mailto:dzenanz at gmail.com] 
Sent: Friday, August 26, 2011 10:28 PM
To: Xiaopeng Yang
Cc: David Doria; vtkusers at vtk.org
Subject: Re: [vtkusers] Put labels onto image

 

You can group it into a vtkAssembly together with the sphere, and then rotate that assembly.

On Fri, Aug 26, 2011 at 15:14, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:

David, 

 

The second example is what I want since I need to assign the caption to certain point in a 3D object. However, in the example, the caption itself does not move when I rotate the sphere. My question is how to make it move along with the 3D object during rotation.

 

Thank you so much.

 

Xiaopeng

 

From: David Doria [mailto:daviddoria at gmail.com] 
Sent: Friday, August 26, 2011 8:33 PM
To: Xiaopeng Yang
Cc: vtkusers at vtk.org


Subject: Re: [vtkusers] Put labels onto image

 

On Fri, Aug 26, 2011 at 3:43 AM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:

Hi Wayne,

 

It works good. Thank you. However, when I rotate the 3D object, the caption which associated with a point on the 3D object should be covered (invisible) when that point is rotated to the backside (invisible). But is always visible and appear on the object, which can mislead the user  to know the position of the caption.

 

Do you have any good idea to avoid this happening?

 

Thanks,

Xiaopeng

 

CaptionActor2D is great for 2D, but for 3D I think you'll want:

 

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Follower

or

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/Caption

 

David 


_______________________________________________
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/20110826/b68751f8/attachment.htm>


More information about the vtkusers mailing list