[vtkusers] Hide/show viewports
a.c.sant
acsantome at gmail.com
Wed Dec 26 03:48:32 EST 2012
Hi,
currently we're working with the PCL library and we have to display several
point clouds (right now we're displaying each cloud in its own viewport).
However, displaying all clouds at the same time is not always needed.
Therefore, I'm trying to achieve something like "first visualize one cloud.
When (for example) clicking a button, the next cloud is shown and the
previous one is hidden" (PCL doesn't have anything like this).
I wanted to know your opinions about this matter before spending too much
time in the docs and doing tests. I'm afraid this might not be possible/a
good idea.
Cheers!
Joachim Pouderoux wrote
> Hi,
>
> The viewport defines the rectangle in the rendering window where the
> visualization is actually rendered.
> Are you sure this is what you want to change or isn't it the camera
> settings (point of view, orientation,...)? The viewport is generally
> fixed once for all and there is only one viewport per renderer. If you
> really want to define multiple viewport in the same window you will
> need to create the same number of renderers.
> If you want to provide the user multiple viewpoints of the same scene
> but once at a time, just switch cameras.
>
> Regards,
>
> Joachim
>
> Le 21 déc. 2012 à 17:39, "a.c.sant" <
> acsantome@
> > a écrit :
>
>> Hi!
>> I'm trying to set multiple viewports in a window and having the user
>> choose
>> which viewport view at each moment. For example, starting with viewport
>> #1,
>> if the user clicks a button, hide #1 and show #2.
>>
>> Currently, I'm playing with Renderer::SetViewport and
>> Renderer::GetViewport
>> but still can't make this work.
>>
>> Maybe it's not possible? I would like to hear your opinions.
>>
>> Cheers!
>>
>>
>>
>> --
>> View this message in context:
>> http://vtk.1045678.n5.nabble.com/Hide-show-viewports-tp5717695.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> 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
> _______________________________________________
> 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
--
View this message in context: http://vtk.1045678.n5.nabble.com/Hide-show-viewports-tp5717695p5717726.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list