[vtkusers] What happens when two actors are at the same depth?

Francois Bertel francois.bertel at kitware.com
Wed Apr 22 09:55:42 EDT 2009


Hi,

One (not "the") solution is to place the vtkImageActor in a
vtkRenderer of layer 0 and place the contour in a vtkRenderer of layer
1.

See vtkRenderer::SetLayer() :
http://www.vtk.org/doc/nightly/html/classvtkRenderer.html#5621b2f66530f887d930ac21860f963e

Regards.

On Wed, Apr 22, 2009 at 9:46 AM, poireau <joelthelion at laposte.net> wrote:
>
> Hi all,
>
> I'm trying to display a contour (output by a vtkCutter) on an image
> (displayed with a vtkImageActor). The image and the contour are at the same
> depth. What happens is that the contour is not visible, except if I add a
> very small shift to the depth of the contour. For various reasons, I'd like
> to avoid that.
>
> So what is the correct way to do this? Is there a way to tell VTK to render
> the contour over the image?
>
> Thanks a lot for your answers!
> --
> View this message in context: http://www.nabble.com/What-happens-when-two-actors-are-at-the-same-depth--tp23175458p23175458.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
>



-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtkusers mailing list