[vtkusers] How to share a common vtkScalarBarWidget object among two renderers in same render window?

rakesh patil prakeshofficial at gmail.com
Tue Mar 13 05:37:07 EDT 2012


Hello,

I one small application, with two renderers in same rendering window. And I
display contours in both the renderers. I use vtkScalarBarWidget to display
the color bar. What I want to do is, the color bar and contour must be
displayed on either of the renderer which user selects.So without deleting
the vtkScalarBarWidget object, is it possible to display the colorbar on
the active renderer?

I tried using SetCurrentRenderer() and SetDefaultRenderer() functions. But
didn't succeed. Any suggestions how to implement this?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120313/64cde0a8/attachment.htm>


More information about the vtkusers mailing list