FC 0.17/Qt5 compatible NaviCube

A forum for research and development of the user interface of FreeCAD

Moderator: agryson

nyholku
Posts: 143
Joined: Wed Dec 28, 2016 4:18 pm

FC 0.17/Qt5 compatible NaviCube

Postby nyholku » Sat Nov 18, 2017 11:12 am

Hi everyone,

I've updated my experimental NaviCube to FC 0.17 code base and refactored it to be compatible with Qt5.

You can find the code here:

https://github.com/nyholku/FreeCAD/tree/navicube-qt5

Screenshot below.

wbr Kusti

Screen Shot 2017-11-18 at 13.10.53.png
Screen Shot 2017-11-18 at 13.10.53.png (246.03 KiB) Viewed 2398 times
Jee-Bee
Posts: 1529
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FC 0.17/Qt5 compatible NaviCube

Postby Jee-Bee » Sat Nov 18, 2017 1:52 pm

Nice work!!
triplus
Posts: 7955
Joined: Mon Dec 12, 2011 4:45 pm

Re: FC 0.17/Qt5 compatible NaviCube

Postby triplus » Tue Nov 21, 2017 4:12 pm

It works when compiled on Ubuntu 16.04 (Qt 5).

P.S. Has the size changed and it is a bit bigger?
User avatar
Kunda1
Posts: 3675
Joined: Thu Jan 05, 2017 9:03 pm

Re: FC 0.17/Qt5 compatible NaviCube

Postby Kunda1 » Tue Nov 21, 2017 4:19 pm

Will this be part of 0.17 release ?
If not we should track it via the bugtracker as well.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
nyholku
Posts: 143
Joined: Wed Dec 28, 2016 4:18 pm

Re: FC 0.17/Qt5 compatible NaviCube

Postby nyholku » Tue Nov 21, 2017 7:07 pm

Yes, it is a bit bigger, I felt it now optimal for me, but this is not final. Might be configurable. We'll see.
User avatar
regis
Posts: 602
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: FC 0.17/Qt5 compatible NaviCube

Postby regis » Fri Dec 08, 2017 3:13 pm

nyholku wrote:
Sat Nov 18, 2017 11:12 am
Hi everyone,

I've updated my experimental NaviCube to FC 0.17 code base and refactored it to be compatible with Qt5.

You can find the code here:

https://github.com/nyholku/FreeCAD/tree/navicube-qt5

Screenshot below.

wbr Kusti


Screen Shot 2017-11-18 at 13.10.53.png
Amazing, but I see a bunch of new icons, that i don't see often, what are those?
pablogil
Posts: 687
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: FC 0.17/Qt5 compatible NaviCube

Postby pablogil » Fri Dec 08, 2017 10:50 pm

Hi,
I have the feeling it has been asked before but: could Navicube be ported to an “easy to install” addon?
It’s so cool that I feel it should go into master or shared as an addon...

Thanks
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
Dacicusan
Posts: 3
Joined: Sat Nov 04, 2017 4:51 pm

Re: FC 0.17/Qt5 compatible NaviCube

Postby Dacicusan » Sat Dec 09, 2017 9:04 am

Very nice interface. This will make FreeCAD more usable.

The icons are also nice. They are available for download? Maybe a new icon theme using this icons will make the interface more pleasant to work with.
looo
Posts: 2237
Joined: Mon Nov 11, 2013 5:29 pm

Re: FC 0.17/Qt5 compatible NaviCube

Postby looo » Sat Dec 09, 2017 9:46 am

It's a nice add-on but last time I tried it, it slowed down the scene quite a bit. I don't know how it is implemented, but it feels like a qt-widget overlay?
nyholku
Posts: 143
Joined: Wed Dec 28, 2016 4:18 pm

Re: FC 0.17/Qt5 compatible NaviCube

Postby nyholku » Sat Dec 09, 2017 4:11 pm

Slowed down?

Hmm, interesting, did not notice that.

It is not a qwidget it simply taps to the opengl render/redraw call on (on View3DInventorViewer) and renders to the OpenGL context (just like the standard XYZ axise orientation indicator) so I would not expect drawing twenty odd more polygons make any difference.

Hmm...perhaps it is the cursor tracking that takes time as this draws offscreen (but then again that is just the same few polygons).

I may have to investigate this further.

wbr Kusti

PS Those new icons are from here:

https://github.com/pgilfernandez/FreeCA ... eme_simple