Feature Request: Add horizontal split view

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

Moderator: agryson

User avatar
microelly2
Posts: 4508
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Feature Request: Add horizontal split view

Postby microelly2 » Fri Dec 08, 2017 4:39 pm

regis wrote:
Fri Dec 08, 2017 3:10 pm
No nknowledge in this sector, but just to say that is there a way to implement the blender like splitting of views, it is very easy and allows for many combinations?
Yes this will be possible, it seems to be possible to start a quad view and add the inventor representation of whatever we want into the 4 views for example.
User avatar
regis
Posts: 656
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: Feature Request: Add horizontal split view

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

microelly2 wrote:
Fri Dec 08, 2017 4:39 pm
regis wrote:
Fri Dec 08, 2017 3:10 pm
No nknowledge in this sector, but just to say that is there a way to implement the blender like splitting of views, it is very easy and allows for many combinations?
Yes this will be possible, it seems to be possible to start a quad view and add the inventor representation of whatever we want into the 4 views for example.
Amazing, I look forward.
User avatar
microelly2
Posts: 4508
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Feature Request: Add horizontal split view

Postby microelly2 » Fri Dec 08, 2017 10:08 pm

phpBB [video]

it's still fresh and will be improved after testing,
buts it's already an interesting method to split complex model environments into simpler views.
it's in my nurbs workbench under menu workspace.
User avatar
microelly2
Posts: 4508
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Feature Request: Add horizontal split view

Postby microelly2 » Sun Dec 10, 2017 10:59 am

wmayer wrote:
Tue Nov 28, 2017 3:03 pm
Try this:

Code: Select all

Gui.createViewer(4)
After some steps I have some questions/requests

The Gui.createViewer-Object has the method fitAll, viewLeft ...
I think its better to have these methods for each view and not only as global method
So it is possible to display in each window another view direction

>> view=v.getViewer(2)
>>> rm=view.getSoRenderManager()
>>> c=rm.getCamera()

c has pointAt, scaleHeight
but I look for position, orientation setters an getters. because it would be possible to do fine changes by script.
User avatar
Joel_graff
Posts: 1617
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Feature Request: Add horizontal split view

Postby Joel_graff » Sun Dec 10, 2017 1:32 pm

That looks fantastic!
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
Eneen
Posts: 57
Joined: Wed Aug 12, 2015 9:06 pm

Re: Feature Request: Add horizontal split view

Postby Eneen » Mon Dec 11, 2017 2:08 pm

Maybe keyboard shortcut like "V, Q" or ctrl+alt+Q (blender) is possible?
User avatar
yorik
Site Admin
Posts: 11618
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Feature Request: Add horizontal split view

Postby yorik » Wed Dec 13, 2017 2:50 pm

Amazing Werner!
triplus
Posts: 8864
Joined: Mon Dec 12, 2011 4:45 pm

Re: Feature Request: Add horizontal split view

Postby triplus » Wed Dec 13, 2017 7:17 pm

microelly2 wrote:
Fri Dec 08, 2017 10:08 pm
it's in my nurbs workbench under menu workspace.

Code: Select all

No module named workspace
User avatar
microelly2
Posts: 4508
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Feature Request: Add horizontal split view

Postby microelly2 » Wed Dec 13, 2017 9:19 pm

triplus wrote:
Wed Dec 13, 2017 7:17 pm
microelly2 wrote:
Fri Dec 08, 2017 10:08 pm
it's in my nurbs workbench under menu workspace.

Code: Select all

No module named workspace
sorry, the __init__py. was in .gitignore
should be available now.
wmayer
Site Admin
Posts: 15126
Joined: Thu Feb 19, 2009 10:32 am

Re: Feature Request: Add horizontal split view

Postby wmayer » Thu Dec 14, 2017 9:11 am

The Gui.createViewer-Object has the method fitAll, viewLeft ...
I think its better to have these methods for each view and not only as global method
So it is possible to display in each window another view direction
That needs to be addressed in a future version.
c has pointAt, scaleHeight
but I look for position, orientation setters an getters. because it would be possible to do fine changes by script.
The orientation attribute is accessible but you just won't see in the pop-up menu. That's a limitation of pivy not to directly return it when querying an object's __dict__ attribute.