Setting window dimensions for pcl::visualization::PCLVisualizer object

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

Setting window dimensions for pcl::visualization::PCLVisualizer object

CharlesM
Hi,

Is it possible to set the window dimensions and/or window position for a pcl::visualization::PCLVisualizer in code? (I'm using PCL 1.5.1 under Ubuntu 10.04.)

At the moment I have to resize it and move it by hand every time I run the program, which is not ideal.

Thanks,
Charles
Reply | Threaded
Open this post in threaded view
|

Re: Setting window dimensions for pcl::visualization::PCLVisualizer object

Radu B Rusu
Administrator
Charles,

PCL 1.5.1 did not include the setSize/setPosition methods in PCLVisualizer
(http://docs.pointclouds.org/1.5.1/classpcl_1_1visualization_1_1_p_c_l_visualizer.html#a8c3ed261cb86632935f594d2b61535ff).
However, these have been recently added to trunk
(http://docs.pointclouds.org/trunk/classpcl_1_1visualization_1_1_p_c_l_visualizer.html#a8c3ed261cb86632935f594d2b61535ff) and
will make their way into the 1.6.0 release.

In the meantime, you can either implement them yourself, or you can use the "-cam" parameters (which are transmitted to
all tools using PCLVisualizer's (argc,argv) constructor) to pass camera and window size/position parameters to your program.

Cheers,
Radu.

On 06/18/2012 03:41 PM, CharlesM wrote:

> Hi,
>
> Is it possible to set the window dimensions and/or window position for a
> pcl::visualization::PCLVisualizer in code? (I'm using PCL 1.5.1 under Ubuntu
> 10.04.)
>
> At the moment I have to resize it and move it by hand every time I run the
> program, which is not ideal.
>
> Thanks,
> Charles
>
> --
> View this message in context: http://www.pcl-users.org/Setting-window-dimensions-for-pcl-visualization-PCLVisualizer-object-tp4019416.html
> Sent from the Point Cloud Library (PCL) Users 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: Setting window dimensions for pcl::visualization::PCLVisualizer object

CharlesM
Thanks for your help Radu.

Cheers,
Charles