A split screen with side-by-side 3d and 2d sections

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

A split screen with side-by-side 3d and 2d sections

giorgio.denunzio
Dear Gurus and Users,

I wish to build a split screen with PCL, where the (say) right part
contains a cloud viewer, and the left one contains some 2D stuff, e.g.
graphs, text, drawings, images; possibly some interactive items such as
links or simulated buttons/menus.

In summary, I imagine a screen section containing 2D items to be used to
interact with the program and with the other (3D viewer) screen section.
A sort of self-made simple and pictorial GUI.

Any hint?

I know I can have multiple viewports, each devoted to cloud viewing. I
can also have a PCLPainter2D object to draw 2D stuff. Can I put a cloud
viewer and a Painter2D side-by-side?

Can I e.g. use some vtk call to draw 2D stuff, allocating a screen
section to it and leaving the remaining part to 3D?

Thanks

Best regards

Giorgio

--
Prof. Giorgio De Nunzio PhD
Dipart. di Matematica e Fisica "Ennio De Giorgi", Univ. del Salento
INFN Sezione di Lecce
DReAM (Laboratorio Diffuso di Ricerca Interdisciplinare Applicata alla Medicina)
[hidden email]
tel +39 0832 297084-297051
mobile +39 320 3829845
http://orcid.org/0000-0002-1998-0286

"The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts."
Bertrand Russell


---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: A split screen with side-by-side 3d and 2d sections

ROZAR Fabien
Hi,

I'm a user of PCL and try to contribute to the project. I currently
develop a dedicated GUI
and it seems to be related to what you want (cf. the attached image).

I use Qt5, qtcreator and cmake (ok, let say PCL also ;)). I started from
the tutorial codes available
in the repository:
doc/tutorials/content/sources/qt_colorize_cloud
doc/tutorials/content/sources/qt_visualizer

About your question:
"Can I e.g. use some vtk call to draw 2D stuff, allocating a screen
section to it and leaving the remaining part to 3D?"

I'm pretty sure that it's possible, but never do it before. I think that
you just need to use two
widgets, one for the 2D stuff, and the other for the 3D viewer.

If you try to do it with qtcreator, do not hesitate to do it in a
accessible repository, it will be
easier to help.

Cheers,
frozar

Le 17/12/2017 à 18:46, Giorgio De Nunzio a écrit :

> Dear Gurus and Users,
>
> I wish to build a split screen with PCL, where the (say) right part
> contains a cloud viewer, and the left one contains some 2D stuff, e.g.
> graphs, text, drawings, images; possibly some interactive items such
> as links or simulated buttons/menus.
>
> In summary, I imagine a screen section containing 2D items to be used
> to interact with the program and with the other (3D viewer) screen
> section. A sort of self-made simple and pictorial GUI.
>
> Any hint?
>
> I know I can have multiple viewports, each devoted to cloud viewing. I
> can also have a PCLPainter2D object to draw 2D stuff. Can I put a
> cloud viewer and a Painter2D side-by-side?
>
> Can I e.g. use some vtk call to draw 2D stuff, allocating a screen
> section to it and leaving the remaining part to 3D?
>
> Thanks
>
> Best regards
>
> Giorgio
>

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

Screenshot from 2017-12-18 01-23-15.png (237K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: A split screen with side-by-side 3d and 2d sections

giorgio.denunzio
Hi Fabien,
this is *exactly* what I wish to create. "Exactly", means that I am doing some point cloud segmentation, and I want to show the various resulting point clusters with different colors and numbers: exactly what you are showing. Then I want a small interface to let the user change segmentation approach and parameters, and finally select the clusters to reject or preserve or fuse.
I have little time at present, so I am using the pre-built, all-in-one version of PCL, and I really hoped to avoid all the PCL/QVTK compilation stuff... so I was trying to invent a simpler solution, if possible.
I am afraid I'll have to make up my mind and install PCL from scratch, with Qt enabled.... I wish there were an all-in-one installer with Qt support included....
So, thank you very much for your help offer! Of course, if you have any code snippets to share, I'll be really happy, and I'd try to return the favor as much as I can. When I have my PCL-Qt installation ready, I'll be back...
Best regards
Giorgio


Il 18/12/2017 10:05, ROZAR Fabien ha scritto:
Hi,

I'm a user of PCL and try to contribute to the project. I currently develop a dedicated GUI
and it seems to be related to what you want (cf. the attached image).

I use Qt5, qtcreator and cmake (ok, let say PCL also ;)). I started from the tutorial codes available
in the repository:
doc/tutorials/content/sources/qt_colorize_cloud
doc/tutorials/content/sources/qt_visualizer

About your question:
"Can I e.g. use some vtk call to draw 2D stuff, allocating a screen section to it and leaving the remaining part to 3D?"

I'm pretty sure that it's possible, but never do it before. I think that you just need to use two
widgets, one for the 2D stuff, and the other for the 3D viewer.

If you try to do it with qtcreator, do not hesitate to do it in a accessible repository, it will be
easier to help.

Cheers,
frozar

Le 17/12/2017 à 18:46, Giorgio De Nunzio a écrit :
Dear Gurus and Users,

I wish to build a split screen with PCL, where the (say) right part contains a cloud viewer, and the left one contains some 2D stuff, e.g. graphs, text, drawings, images; possibly some interactive items such as links or simulated buttons/menus.

In summary, I imagine a screen section containing 2D items to be used to interact with the program and with the other (3D viewer) screen section. A sort of self-made simple and pictorial GUI.

Any hint?

I know I can have multiple viewports, each devoted to cloud viewing. I can also have a PCLPainter2D object to draw 2D stuff. Can I put a cloud viewer and a Painter2D side-by-side?

Can I e.g. use some vtk call to draw 2D stuff, allocating a screen section to it and leaving the remaining part to 3D?

Thanks

Best regards

Giorgio




_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users


-- 
Dr. Giorgio De Nunzio PhD
Dipart. di Matematica e Fisica "Ennio De Giorgi", Univ. del Salento
INFN Sezione di Lecce
DReAM (Laboratorio Diffuso di Ricerca Interdisciplinare Applicata alla Medicina)
[hidden email]
tel +39 0832 297084-297051
mobile +39 320 3829845
http://orcid.org/0000-0002-1998-0286

"The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts."
Bertrand Russell


Mail priva di virus. www.avast.com

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: A split screen with side-by-side 3d and 2d sections

Sérgio Agostinho

Have a look at

http://unanancyowen.com/en/pcl-vcpkg/

The installation can be resumed to

vcpkg install pcl[openni2,qt,pcap]:x64-windows --featurepackages

A user reported the static variant is experiencing issues at the moment but the dynamic one is running fine.

Cheers

On 19-12-2017 15:42, Giorgio De Nunzio wrote:
Hi Fabien,
this is *exactly* what I wish to create. "Exactly", means that I am doing some point cloud segmentation, and I want to show the various resulting point clusters with different colors and numbers: exactly what you are showing. Then I want a small interface to let the user change segmentation approach and parameters, and finally select the clusters to reject or preserve or fuse.
I have little time at present, so I am using the pre-built, all-in-one version of PCL, and I really hoped to avoid all the PCL/QVTK compilation stuff... so I was trying to invent a simpler solution, if possible.
I am afraid I'll have to make up my mind and install PCL from scratch, with Qt enabled.... I wish there were an all-in-one installer with Qt support included....
So, thank you very much for your help offer! Of course, if you have any code snippets to share, I'll be really happy, and I'd try to return the favor as much as I can. When I have my PCL-Qt installation ready, I'll be back...
Best regards
Giorgio


Il 18/12/2017 10:05, ROZAR Fabien ha scritto:
Hi,

I'm a user of PCL and try to contribute to the project. I currently develop a dedicated GUI
and it seems to be related to what you want (cf. the attached image).

I use Qt5, qtcreator and cmake (ok, let say PCL also ;)). I started from the tutorial codes available
in the repository:
doc/tutorials/content/sources/qt_colorize_cloud
doc/tutorials/content/sources/qt_visualizer

About your question:
"Can I e.g. use some vtk call to draw 2D stuff, allocating a screen section to it and leaving the remaining part to 3D?"

I'm pretty sure that it's possible, but never do it before. I think that you just need to use two
widgets, one for the 2D stuff, and the other for the 3D viewer.

If you try to do it with qtcreator, do not hesitate to do it in a accessible repository, it will be
easier to help.

Cheers,
frozar

Le 17/12/2017 à 18:46, Giorgio De Nunzio a écrit :
Dear Gurus and Users,

I wish to build a split screen with PCL, where the (say) right part contains a cloud viewer, and the left one contains some 2D stuff, e.g. graphs, text, drawings, images; possibly some interactive items such as links or simulated buttons/menus.

In summary, I imagine a screen section containing 2D items to be used to interact with the program and with the other (3D viewer) screen section. A sort of self-made simple and pictorial GUI.

Any hint?

I know I can have multiple viewports, each devoted to cloud viewing. I can also have a PCLPainter2D object to draw 2D stuff. Can I put a cloud viewer and a Painter2D side-by-side?

Can I e.g. use some vtk call to draw 2D stuff, allocating a screen section to it and leaving the remaining part to 3D?

Thanks

Best regards

Giorgio




_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users


-- 
Dr. Giorgio De Nunzio PhD
Dipart. di Matematica e Fisica "Ennio De Giorgi", Univ. del Salento
INFN Sezione di Lecce
DReAM (Laboratorio Diffuso di Ricerca Interdisciplinare Applicata alla Medicina)
[hidden email]
tel +39 0832 297084-297051
mobile +39 320 3829845
http://orcid.org/0000-0002-1998-0286

"The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts."
Bertrand Russell


Mail priva di virus. www.avast.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: A split screen with side-by-side 3d and 2d sections

giorgio.denunzio
Hi Sérgio,
thanks!! How stupid I am... I had seen that vcpkg could be used for PCL installation, but I had not noted the wonderful words "...enable build with OpenNI2, Qt and PCAP in PCL port..."!
Great!
Thank you again... now I feel ready to jump on the Qt+PCL train.... :-D
If everything goes ok, I'll be back sooner than expected.
Best regards
Giorgio


Il 19/12/2017 16:58, Sérgio Agostinho ha scritto:

Have a look at

http://unanancyowen.com/en/pcl-vcpkg/

The installation can be resumed to

vcpkg install pcl[openni2,qt,pcap]:x64-windows --featurepackages

A user reported the static variant is experiencing issues at the moment but the dynamic one is running fine.

Cheers

On 19-12-2017 15:42, Giorgio De Nunzio wrote:
Hi Fabien,
this is *exactly* what I wish to create. "Exactly", means that I am doing some point cloud segmentation, and I want to show the various resulting point clusters with different colors and numbers: exactly what you are showing. Then I want a small interface to let the user change segmentation approach and parameters, and finally select the clusters to reject or preserve or fuse.
I have little time at present, so I am using the pre-built, all-in-one version of PCL, and I really hoped to avoid all the PCL/QVTK compilation stuff... so I was trying to invent a simpler solution, if possible.
I am afraid I'll have to make up my mind and install PCL from scratch, with Qt enabled.... I wish there were an all-in-one installer with Qt support included....
So, thank you very much for your help offer! Of course, if you have any code snippets to share, I'll be really happy, and I'd try to return the favor as much as I can. When I have my PCL-Qt installation ready, I'll be back...
Best regards
Giorgio


Il 18/12/2017 10:05, ROZAR Fabien ha scritto:
Hi,

I'm a user of PCL and try to contribute to the project. I currently develop a dedicated GUI
and it seems to be related to what you want (cf. the attached image).

I use Qt5, qtcreator and cmake (ok, let say PCL also ;)). I started from the tutorial codes available
in the repository:
doc/tutorials/content/sources/qt_colorize_cloud
doc/tutorials/content/sources/qt_visualizer

About your question:
"Can I e.g. use some vtk call to draw 2D stuff, allocating a screen section to it and leaving the remaining part to 3D?"

I'm pretty sure that it's possible, but never do it before. I think that you just need to use two
widgets, one for the 2D stuff, and the other for the 3D viewer.

If you try to do it with qtcreator, do not hesitate to do it in a accessible repository, it will be
easier to help.

Cheers,
frozar

Le 17/12/2017 à 18:46, Giorgio De Nunzio a écrit :
Dear Gurus and Users,

I wish to build a split screen with PCL, where the (say) right part contains a cloud viewer, and the left one contains some 2D stuff, e.g. graphs, text, drawings, images; possibly some interactive items such as links or simulated buttons/menus.

In summary, I imagine a screen section containing 2D items to be used to interact with the program and with the other (3D viewer) screen section. A sort of self-made simple and pictorial GUI.

Any hint?

I know I can have multiple viewports, each devoted to cloud viewing. I can also have a PCLPainter2D object to draw 2D stuff. Can I put a cloud viewer and a Painter2D side-by-side?

Can I e.g. use some vtk call to draw 2D stuff, allocating a screen section to it and leaving the remaining part to 3D?

Thanks

Best regards

Giorgio




_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users


-- 
Dr. Giorgio De Nunzio PhD
Dipart. di Matematica e Fisica "Ennio De Giorgi", Univ. del Salento
INFN Sezione di Lecce
DReAM (Laboratorio Diffuso di Ricerca Interdisciplinare Applicata alla Medicina)
[hidden email]
tel +39 0832 297084-297051
mobile +39 320 3829845
http://orcid.org/0000-0002-1998-0286

"The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts."
Bertrand Russell


Mail priva di virus. www.avast.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


-- 
Dr. Giorgio De Nunzio PhD
Dipart. di Matematica e Fisica "Ennio De Giorgi", Univ. del Salento
INFN Sezione di Lecce
DReAM (Laboratorio Diffuso di Ricerca Interdisciplinare Applicata alla Medicina)
[hidden email]
tel +39 0832 297084-297051
mobile +39 320 3829845
http://orcid.org/0000-0002-1998-0286

"The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts."
Bertrand Russell


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: A split screen with side-by-side 3d and 2d sections

ROZAR Fabien
Hello :),

I'm really happy that my illustration convince you that's it's possible.
I think that a segmentation tool like the one I'm building would be really
useful to many people, and I'll try to provide it in the repository as a
tool,
but I think that I'm a bit far from this step...

If there is any progression in this direction, I'll let you know.

Best regards,
frozar

Le 19/12/2017 à 17:08, Giorgio De Nunzio a écrit :

> Hi Sérgio,
> thanks!! How stupid I am... I had seen that vcpkg could be used for
> PCL installation, but I had not noted the wonderful words "...enable
> build with OpenNI2, Qt and PCAP in PCL port..."!
> Great!
> Thank you again... now I feel ready to jump on the Qt+PCL train.... :-D
> If everything goes ok, I'll be back sooner than expected.
> Best regards
> Giorgio
>
>
> Il 19/12/2017 16:58, Sérgio Agostinho ha scritto:
>>
>> Have a look at
>>
>> http://unanancyowen.com/en/pcl-vcpkg/
>>
>> The installation can be resumed to
>>
>> |vcpkg install pcl||[openni2,qt,pcap]||:x64-windows --featurepackages|
>>
>> A user reported the static variant is experiencing issues at the
>> moment but the dynamic one is running fine.
>>
>> Cheers
>>
>> On 19-12-2017 15:42, Giorgio De Nunzio wrote:
>>> Hi Fabien,
>>> this is *exactly* what I wish to create. "Exactly", means that I am
>>> doing some point cloud segmentation, and I want to show the various
>>> resulting point clusters with different colors and numbers: exactly
>>> what you are showing. Then I want a small interface to let the user
>>> change segmentation approach and parameters, and finally select the
>>> clusters to reject or preserve or fuse.
>>> I have little time at present, so I am using the pre-built,
>>> all-in-one version of PCL, and I really hoped to avoid all the
>>> PCL/QVTK compilation stuff... so I was trying to invent a simpler
>>> solution, if possible.
>>> I am afraid I'll have to make up my mind and install PCL from
>>> scratch, with Qt enabled.... I wish there were an all-in-one
>>> installer with Qt support included....
>>> So, thank you very much for your help offer! Of course, if you have
>>> any code snippets to share, I'll be really happy, and I'd try to
>>> return the favor as much as I can. When I have my PCL-Qt
>>> installation ready, I'll be back...
>>> Best regards
>>> Giorgio
>>>
>>>
>>> Il 18/12/2017 10:05, ROZAR Fabien ha scritto:
>>>> Hi,
>>>>
>>>> I'm a user of PCL and try to contribute to the project. I currently
>>>> develop a dedicated GUI
>>>> and it seems to be related to what you want (cf. the attached image).
>>>>
>>>> I use Qt5, qtcreator and cmake (ok, let say PCL also ;)). I started
>>>> from the tutorial codes available
>>>> in the repository:
>>>> doc/tutorials/content/sources/qt_colorize_cloud
>>>> doc/tutorials/content/sources/qt_visualizer
>>>>
>>>> About your question:
>>>> "Can I e.g. use some vtk call to draw 2D stuff, allocating a screen
>>>> section to it and leaving the remaining part to 3D?"
>>>>
>>>> I'm pretty sure that it's possible, but never do it before. I think
>>>> that you just need to use two
>>>> widgets, one for the 2D stuff, and the other for the 3D viewer.
>>>>
>>>> If you try to do it with qtcreator, do not hesitate to do it in a
>>>> accessible repository, it will be
>>>> easier to help.
>>>>
>>>> Cheers,
>>>> frozar
>>>>
>>>> Le 17/12/2017 à 18:46, Giorgio De Nunzio a écrit :
>>>>> Dear Gurus and Users,
>>>>>
>>>>> I wish to build a split screen with PCL, where the (say) right
>>>>> part contains a cloud viewer, and the left one contains some 2D
>>>>> stuff, e.g. graphs, text, drawings, images; possibly some
>>>>> interactive items such as links or simulated buttons/menus.
>>>>>
>>>>> In summary, I imagine a screen section containing 2D items to be
>>>>> used to interact with the program and with the other (3D viewer)
>>>>> screen section. A sort of self-made simple and pictorial GUI.
>>>>>
>>>>> Any hint?
>>>>>
>>>>> I know I can have multiple viewports, each devoted to cloud
>>>>> viewing. I can also have a PCLPainter2D object to draw 2D stuff.
>>>>> Can I put a cloud viewer and a Painter2D side-by-side?
>>>>>
>>>>> Can I e.g. use some vtk call to draw 2D stuff, allocating a screen
>>>>> section to it and leaving the remaining part to 3D?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Best regards
>>>>>
>>>>> Giorgio
>>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> [hidden email]  /http://pointclouds.org
>>>> http://pointclouds.org/mailman/listinfo/pcl-users
>>>
>>>
>>> --
>>> Dr. Giorgio De Nunzio PhD
>>> Dipart. di Matematica e Fisica "Ennio De Giorgi", Univ. del Salento
>>> INFN Sezione di Lecce
>>> DReAM (Laboratorio Diffuso di Ricerca Interdisciplinare Applicata alla Medicina)
>>> [hidden email]
>>> tel +39 0832 297084-297051
>>> mobile +39 320 3829845
>>> http://orcid.org/0000-0002-1998-0286
>>>
>>> "The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts."
>>> Bertrand Russell
>>>
>>>
>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>>> Mail priva di virus. www.avast.com
>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>>>
>>>
>>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>>
>>> _______________________________________________
>>> [hidden email]  /http://pointclouds.org
>>> http://pointclouds.org/mailman/listinfo/pcl-users
>>
>>
>>
>> _______________________________________________
>> [hidden email]  /http://pointclouds.org
>> http://pointclouds.org/mailman/listinfo/pcl-users
>
>
> --
> Dr. Giorgio De Nunzio PhD
> Dipart. di Matematica e Fisica "Ennio De Giorgi", Univ. del Salento
> INFN Sezione di Lecce
> DReAM (Laboratorio Diffuso di Ricerca Interdisciplinare Applicata alla Medicina)
> [hidden email]
> tel +39 0832 297084-297051
> mobile +39 320 3829845
> http://orcid.org/0000-0002-1998-0286
>
> "The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts."
> Bertrand Russell
>
>
>
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users