[vtkusers] vtkCaptionActor2D always on top?

Mark Wyszomierski markww at gmail.com
Wed Mar 30 10:57:27 EST 2005


Hi,

I created a vtkCaptionActor2D which works fine, but the caption is
always displayed first in the Z order, I would actually like it to be
hidden if it is behind other geometry.

vtkCaptionActor2D *caption = vtkCaptionActor2D::New();
caption->SetCaption("Hello");
caption->SetAttachmentPoint(1,0,0);
caption->ThreeDimensionalLeaderOn();

I thought if I called ThreeDimensionalLeaderOn(), the z-buffering
would work, but the caption is still always displayed on top. Any
ideas?

Thanks,
Mark



More information about the vtkusers mailing list