[vtkusers] Adding a renderer vs setting its render window
elvis.stansvik at orexplore.com
Tue Jun 21 01:33:17 EDT 2016
2016-06-20 21:30 GMT+02:00 Ken Martin <ken.martin at kitware.com>:
> 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.
Alright, thanks for the clarifications (and history lesson :)) Ben.
> On Thu, Jun 16, 2016 at 7:21 AM, Elvis Stansvik <
> elvis.stansvik at orexplore.com> wrote:
>> What is the difference between
>> ? Is it just two different ways of doing the same thing?
>> Also, the docs for SetRenderWindow  says
>> "This is automatically set when the renderer is created by MakeRenderer.
>> The user probably shouldn't ever need to call this method."
>> 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?
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> Please keep messages on-topic and check the VTK FAQ at:
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>> Follow this link to subscribe/unsubscribe:
> Ken Martin PhD
> Chairman & CFO
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
> 518 371 3971
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers