<div dir="ltr">I think that comment is super old. Way back before we had proper object factories we would create renderers using a MakeRenderer function. The standard way to do it now is to create a renderer like any other VTK object and add it to the renderwindow. That will, as a convenience, set the renderwindow on the renderer as well. So that part of the comment is still true. You should generally not need to call SetRenderWindow as AddRenderer has already done it for you.<div><br></div><div>Thanks</div><div>Ken</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 16, 2016 at 7:21 AM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.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"><div><div><div><div><div><div>What is the difference between<br><br></div> renderer.SetRenderWindow(renderWindow)<br><br></div>and<br><br></div> renderWindow.addRenderer(renderer)<br><br></div>? Is it just two different ways of doing the same thing?<br><br></div>Also, the docs for SetRenderWindow [1] says<br><br>"This is automatically set when the renderer is created by MakeRenderer. The user probably shouldn't ever need to call this method."<br><br></div>But I couldn't find any info in the docs about a MakeRenderer. Digging in the VTK source, it seems there's a vtkParallelRenderManager::MakeRenderer. Is that the one the docs refers to? Could someone clarify this note in the docs? Why shouldn't I need to call SetRenderWindow?<div><br>Elvis<br><br>[1] <a href="http://www.vtk.org/doc/nightly/html/classvtkRenderer.html#ae3a6088ecdcdec6b7e0b6482974de8c2" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkRenderer.html#ae3a6088ecdcdec6b7e0b6482974de8c2</a><br></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 class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</div>