Navigation Cube

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
nyholku
Posts: 149
Joined: Wed Dec 28, 2016 4:18 pm

Navigation Cube

Post by nyholku »

Hi,

I've started to work on implementing (experimentally at first) a navigation cube,
something along these lines:

Image

Now that I can compile the code I think I've managed to locate where and
how this could be implemented in a couple of work full weekends by
hacking View3DInventorViewer.

But instead of that I think that the work done by @ickby on transparent
Qt widgets on top of the 3D scene view and that of course would be great
way to go:

https://youtu.be/wrOP7sLqwiM
https://github.com/ickby/FreeCAD_sf_master

Especially if and when I would like to have the popup menu there. The
cube as such looks easy enough to implement without real widgets
by just hand coding the graphics and mouse actions but I draw the limit
at re-creating a popup menu.

Now that Qt5 is in FreeCAD this should be viable but I'm not sure I could
or would like to take on this kind of side project (carrying on to conclusion
of the great work @ickby started).

Any thoughts on this?
User avatar
agryson
Posts: 463
Joined: Wed Nov 23, 2016 8:30 am
Location: Bordeaux, France
Contact:

Re: Navigation Cube

Post by agryson »

I think the cube alone is a good short term goal. The projection dropdown and maybe even navigation style dropdown could then be integrated as a second step down the line.
nyholku
Posts: 149
Joined: Wed Dec 28, 2016 4:18 pm

Re: Navigation Cube

Post by nyholku »

@agryson

Thanks, I agree and that is my plan.

But I'm trying to think about the next step because logically if the next
step would be doing the menu with real widgets then implementing
the first step with real widgets (as opposed to hand crafting the
functionality) would also make sense as it would be a bit easier
and cleaner. But that would require implementing the widget stuff first...

wbr Kusti
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Navigation Cube

Post by Jee-Bee »

nyholku wrote: Sun Jan 22, 2017 1:55 pm But I'm trying to think about the next step because logically if the next
step would be doing the menu with real widgets then implementing
the first step with real widgets (as opposed to hand crafting the
functionality) would also make sense as it would be a bit easier
and cleaner. But that would require implementing the widget stuff first...

wbr Kusti
Any updates?
nyholku
Posts: 149
Joined: Wed Dec 28, 2016 4:18 pm

Re: Navigation Cube

Post by nyholku »

I've made some progress that I've not yet pushed but life has intervened and I expect really to get back to this after the gardening season is over ;) but what I could do is to push what I've got to canvas comments.

wbr Kusti
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Navigation Cube

Post by triplus »

The way i see it you do plan to finish this effort? And the code you already have is more or less a standalone piece of code/functionality? If that is correct and as a lot of end users are expressing interest. In my opinion it makes sense to upstream the code and for more users to start using it and providing feedback (by using daily builds). The cube is what the users are likely really after. And if i remember correctly that part worked reasonably good in the test i made a few months back. Therefore don't worry all that much about the menu part for now.
Last edited by triplus on Mon May 29, 2017 2:18 pm, edited 1 time in total.
nyholku
Posts: 149
Joined: Wed Dec 28, 2016 4:18 pm

Re: Navigation Cube

Post by nyholku »

Sure, how do I upstream?
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Navigation Cube

Post by triplus »

Well you should fork FreeCAD. Add your contribution and create a pull request.

That is more or less it for now.
nyholku
Posts: 149
Joined: Wed Dec 28, 2016 4:18 pm

Re: Navigation Cube

Post by nyholku »

Ok, I will push my latest changes and create a PR, I will try to do that next weekend. Thanks.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Navigation Cube

Post by Kunda1 »

+1
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply