[vtkusers] Put labels onto image

Xiaopeng Yang yxp233 at postech.ac.kr
Fri Aug 26 03:43:05 EDT 2011


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

 

From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
Of Wayne Christopher
Sent: Friday, August 26, 2011 1:03 PM
To: vtkusers at vtk.org
Subject: Re: [vtkusers] Put labels onto image

 

I think what you need is a vtkCaptionActor2D.  It is pretty much what you
are describing. 

    Wayne

On 8/25/11 6:25 PM, Xiaopeng Yang wrote: 

Dear Users,

 

I created several 3D objects, including sphere, cone, cylinder, and box.
Then those objects were visualized on the same screen. My question is how to
put labels on those objects, such as "Cone" on the cone, and "Cylinder" on
the cylinder. And then, if I rotate the objects, the labels are also rotated
in a synchronized pattern. 

 

Could anybody give me any ideas?

 

Thank you.

Xiaopeng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110826/cbd3d109/attachment.htm>


More information about the vtkusers mailing list