<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#aed5c7>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>How to label a 3D point in such a way that the
label should always face toward the screen, like an Actor2D (even when rotating
the camera), but it should hide like an Actor3D, when the 3D point and the label
are not visible, that is they are behind other actors
or widgets?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I tried with vtkCaptionActor2D, but i couldn't
manage to draw it behind other actors, only in the foreground, even when the 3D
point was deep inside the screen, behind other points...</FONT></DIV>
<DIV><FONT face=Arial size=2>I also tried with vtkTextSource combined with a
PolyDataMapper and an Actor, but setting the orientation does not seemed to
work... s</FONT><FONT face=Arial size=2>ee my code below...</FONT></DIV>
<DIV><FONT face=Arial size=2>Can somebody give me a hint?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Am I doing something wrong, or should I use a
different method?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Istvan</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1)</FONT></DIV>
<DIV><FONT face=Arial
size=2> aCaption_X->SetCaption("X");<BR> aCaption_X->ThreeDimensionalLeaderOn();</FONT></DIV>
<DIV><FONT face=Arial size=2> aCaption_X->LeaderOn();</FONT></DIV>
<DIV><FONT face=Arial size=2> aCaption_X->SetAttachmentPoint(xpos);
</FONT></DIV>
<DIV><FONT face=Arial
size=2> aCaption_X->GetProperty()->SetDisplayLocationToBackground();
//Doesn't work. <BR><BR></FONT><FONT face=Arial size=2>2)</FONT></DIV>
<DIV><FONT face=Arial
size=2> aTextSource_X->SetText("X");<BR> aPDMapper_X->SetInput(aTextSource_X->GetOutput());<BR> anActor_X->SetMapper(aPDMapper_X);</FONT></DIV>
<DIV><FONT face=Arial size=2> anActor_X->SetPosition(xpos);</FONT></DIV>
<DIV><FONT face=Arial size=2>//....camera
setup....<BR> anActor_X->SetOrientation(aRenderer->GetActiveCamera()-></FONT></DIV>
<DIV><FONT face=Arial size=2>
GetDirectionOfProjection()); //Doesn't work<BR></FONT><FONT
face=Arial size=2></DIV></FONT></BODY></HTML>