PCLVisualizer - Switching between viewports

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

PCLVisualizer - Switching between viewports

a.c.sant
Hi!
I'm playing around with the visualizer and multiple viewports. I was wondering if it would be possible to hide/show a certain viewport when desired? For example, begin execution showing viewport #1 and when the user chooses so, switch to viewport #3 hiding #1.

I'm searching around in the PCLVisualizer and vtkViewport doxy docs but still didn't manage to get this working.

See you!
Reply | Threaded
Open this post in threaded view
|

Re: PCLVisualizer - Switching between viewports

Radu B. Rusu
Administrator
Nope, that is currently not possible.

Cheers,
Radu.
--
http://openperception.org

On 12/21/2012 08:05 AM, a.c.sant wrote:

> Hi!
> I'm playing around with the visualizer and multiple viewports. I was
> wondering if it would be possible to hide/show a certain viewport when
> desired? For example, begin execution showing viewport #1 and when the user
> chooses so, switch to viewport #3 hiding #1.
>
> I'm searching around in the PCLVisualizer and vtkViewport doxy docs but
> still didn't manage to get this working.
>
> See you!
>
>
>
> --
> View this message in context: http://www.pcl-users.org/PCLVisualizer-Switching-between-viewports-tp4024958.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
>
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: PCLVisualizer - Switching between viewports

Ramiz
Hi Radu,

Is it possible to have independent camera and zoom settings in the viewports? resetCamera() method updates both viewports, and I am trying to have zoom in one viewport to be changed automatically, while the second viewport will be only changed with the user's mouse activity?
For instance:
viewer->setCameraPosition(point.x+5,point.y+5,point.z+5,-1,0,1,v1);

here I specify the viewport, but still, v2's camera setting will change as well.

Thank you,
Ramiz
Reply | Threaded
Open this post in threaded view
|

Re: PCLVisualizer - Switching between viewports

Radu B. Rusu
Administrator
I believe there is a way to decouple this by creating separate cameras for each viewport. I'm not sure if this is
technically possible with PCVisualizer in its current form, so we'd need to add this functionality.

Cheers,
Radu.
--
http://openperception.org

On 06/07/2013 02:59 AM, Ramiz wrote:

> Hi Radu,
>
> Is it possible to have independent camera and zoom settings in the
> viewports? resetCamera() method updates both viewports, and I am trying to
> have zoom in one viewport to be changed automatically, while the second
> viewport will be only changed with the user's mouse activity?
> For instance:
> viewer->setCameraPosition(point.x+5,point.y+5,point.z+5,-1,0,1,v1);
>
> here I specify the viewport, but still, v2's camera setting will change as
> well.
>
> Thank you,
> Ramiz
>
>
>
> --
> View this message in context: http://www.pcl-users.org/PCLVisualizer-Switching-between-viewports-tp4024958p4028139.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
>
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: PCLVisualizer - Switching between viewports

efreet
This post has NOT been accepted by the mailing list yet.
In reply to this post by Ramiz
I think the decoupling mentioned by Radu is "viewer->createViewPortCamera(v2);"
It will probably do exactly what you want, as it did mine.

Posting months after op b/c google search guided me here.
Reply | Threaded
Open this post in threaded view
|

Re: PCLVisualizer - Switching between viewports

Jeremyduan
This post has NOT been accepted by the mailing list yet.
In reply to this post by a.c.sant
you can use the function "createViewPortCamera", i have tried that, it worked