Navigation Cube

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

Moderator: agryson

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

Navigation Cube

Postby nyholku » Sun Jan 22, 2017 11:38 am

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: 453
Joined: Wed Nov 23, 2016 8:30 am
Location: Paris, France
Contact:

Re: Navigation Cube

Postby agryson » Sun Jan 22, 2017 1:07 pm

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

Postby nyholku » Sun Jan 22, 2017 1:55 pm

@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
Posts: 1940
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Navigation Cube

Postby Jee-Bee » Mon May 29, 2017 7:06 am

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

Postby nyholku » Mon May 29, 2017 7:13 am

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
Posts: 8605
Joined: Mon Dec 12, 2011 4:45 pm

Re: Navigation Cube

Postby triplus » Mon May 29, 2017 2:14 pm

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

Postby nyholku » Mon May 29, 2017 2:17 pm

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

Re: Navigation Cube

Postby triplus » Mon May 29, 2017 2:19 pm

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

Postby nyholku » Mon May 29, 2017 2:25 pm

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

Re: Navigation Cube

Postby Kunda1 » Mon May 29, 2017 3:34 pm

+1
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features