Yes, so I have a common vtkpolydata shared among the four windows. Also this data will reside in all the mappers/actors right. .? Won't it be a duplicate. ?<div><br></div><div>Thanks<br><br>On Monday, December 7, 2015, Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>You'll also need different mappers for the different windows.</div><div><br></div>You can share the data set among the different windows - no need to duplicate. This is because the data model classes do not have any OpenGL context-dependent state.<div><br></div><div>- Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 6, 2015 at 11:52 PM, rakesh patil <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','prakeshofficial@gmail.com');" target="_blank">prakeshofficial@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So you mean to say that, in an application if I have 4 windows, each window will have its own vtkRenderWindow, and each vtkRenderWindow will have its own renderer. Each renderer will have its own set of actors. This means there would exist duplicate dataset right. ? Maybe this is next issue, how to handle single dataset among multiple windows. Does this query need a new thread.?<div><br></div><div>Thanks</div><div><div><div><br><br>On Monday, December 7, 2015, Cory Quammen <<a href="javascript:_e(%7B%7D,'cvml','cory.quammen@kitware.com');" target="_blank">cory.quammen@kitware.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Actors store some OpenGL state in the mappers they use. While it appears to be possible to share some kinds of OpenGL state among the different OpenGL contexts in the render windows, VTK is not designed with this in mind. Hence, it is safest to have different actors for different renderers.<div><br></div><div>HTH,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 6, 2015 at 10:50 PM, rakesh patil <span dir="ltr"><<a>prakeshofficial@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, <div><br></div><div>Thanks for your reply. It's just a question. Can't I share actors created by smart pointer across multiple renderers. ?<div><div><br><br>On Sunday, December 6, 2015, Cory Quammen <<a>cory.quammen@kitware.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Each vtkRenderWindow should have its own vtkRenderer. Also, you cannot reliably share actors across different vtkRenderers, so each vtkRenderer should have its own set of actors.<div><br></div><div>- Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 5, 2015 at 9:32 AM, rakesh patil <span dir="ltr"><<a>prakeshofficial@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello users,<div><br></div><div>Is it possible to share a common vtkRenderer object among multiple vtkRenderWindows? Or is it that each window should have its own renderer? What I need to do is show same actor in different windows but with different projections and viewports. Will sharing a common renderer work in this case?</div><div><br></div><div>Thanks in advance</div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>
</blockquote></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>
</blockquote></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>
</blockquote></div>