[vtkusers] Multiple Views with only one Rederer

ruben.hernando.vaca at upc.edu ruben.hernando.vaca at upc.edu
Sun Jul 25 08:53:46 EDT 2010


Hi David
Well and what about this way:

http://www.vtk.org/Wiki/Multiple_views

Any subjections?

Or rewrite my code in OpenGl.
Thanks for all.



Ruben.




"David Gobbi" <david.gobbi at gmail.com> escribió:

> Hi Ruben,
>
> As far as I know, there is nothing in VTK to automatically synchronize
> renderers in the way that you are talking about.  You will need to
> keep your own list of all the actors, and make sure that they are
> added to all the renderers.  If you are just starting to write your
> program now, this should be an easy thing to do, but if you already
> have a program and are trying to "retrofit" it to show multiple views,
> this could be a bit difficult.  Ditto for camera synchronization, you
> will need to write your own code for doing this.
>
>    David
>
>
> On Sat, Jul 24, 2010 at 2:27 AM,  <ruben.hernando.vaca at upc.edu> wrote:
>> Hi David
>>
>> Hi david,
>>
>> I know what you say but if that so: I want to know if there is any way to
>> copy or clone the existing renderer so
>> that I dont need to create each renderer seperately and add the actor to it.
>>
>> I want to use only one renderer for example if i have 100 vtkActor in a
>> renderer1 I don't want  to repeat the process of add them in other renderer.
>>
>>
>> thanks for your sujects!!
>>
>>
>> regards
>>
>> ruben
>>
>> "David Gobbi" <david.gobbi at gmail.com> escribió:
>>
>>> Multiple views are achieved by having multiple Renderers inside a
>>> single RenderWindow.  Or, alternatively, by having multiple
>>> RenderWindows.
>>>
>>> When you add multiple renderers to a single renderwindow, the
>>> renderer->SetViewport() method tells each renderer what part of the
>>> RenderWindow to use.
>>>
>>>  David
>>>
>>>
>>> On Fri, Jul 23, 2010 at 1:18 PM,  <ruben.hernando.vaca at upc.edu> wrote:
>>>>
>>>> Hi,
>>>>
>>>> is there any Class to have Multiple views with only one Renderer, I mean
>>>> one
>>>> vtkRenderer and use it with multiple vtkCameras at the same time.
>>>> Something
>>>> like:
>>>>
>>>> http://www.paraview.org/Wiki/Multiple_views
>>>>
>>>> if there is not another way, is there a completed example with paraview
>>>> method?
>>>>
>>>> Regards
>>>>
>>>> Ruben
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>
>>
>>
>





More information about the vtkusers mailing list