Page 2 of 10

Re: 0.16 Features We'd Like To See

Posted: Fri Apr 17, 2015 9:02 am
by ickby
One feature I would realy like to see but for which I won't find time to work on:

An alternative Tree Representation to show the dependency graph instead of the current hirarchy. One could add a little button on the tree view to switch between both representations. This would IMHO be highly useful for understanding your model and fixing problems. Especially when eivinds work will come in there would be nearly no alternative to such a representation, as it would otherwise become almost impossible to track the dependencies correctly in your model. (I know that there is the dependency graph tool, but this is not practical at all for quick looks. also does not support the same things as the tree items (hiding, menu, selection))

The classic tree hirarchy jsut comes too often to its limits, I think a alternativ graph view makes freecad way more understandable.

Re: 0.16 Features We'd Like To See

Posted: Fri Apr 17, 2015 10:01 am
by wmayer
An alternative Tree Representation to show the dependency graph instead of the current hierarchy.
And with what kind of widgets would this be possible? As a simple example use a diamond structure where you have an object A, then B and C which depend on A and then object D which depends on B and C. If a tree is used you can solve this only by showing multiple items of certain objects -- i.e. show A as a child of B and C in this example.

How do commercial cad applications handle this?

Re: 0.16 Features We'd Like To See

Posted: Fri Apr 17, 2015 11:09 am
by microelly2
wmayer wrote:If a tree is used you can solve this only by showing multiple items of certain objects -- i.e. show A as a child of B and C in this example.
Dependencies can become very complex and a tree is not an adequate way to visualize them. Dependencies are directed graphs and need in most cases networks. My idea is to use the gui of the python simulation editor (pse) to generate and maintain such structures. the pse has already a good graphical editor and to create representations of freecad objects inside it is possible. After creation the views can be modified by hand.
however it needs some time and a published version of the pse.

Re: 0.16 Features We'd Like To See

Posted: Fri Apr 17, 2015 11:32 am
by DeepSOIC
For the tree view, I can suggest a relatively easy to implement idea.
The idea is, when expanding a fusion, it will show all the objects it fuses even if they are already somewhere else in the tree. I.e., a single object can appear in tree in multiple places. Also, it might be useful to display a list of all references (e.g., when a sketch is mapped to something, it should be expandable to see the object it was mapped to). This can potentially be confusing at first...

Another idea is to be able to disable automatic arrangement of the tree, and let the user do it.

As for the graph (like the one graphviz makes), it would be cool to add a bit of interactivity to it, but it's obviously too bulky to replace the tree view.

Re: 0.16 Features We'd Like To See

Posted: Fri Apr 17, 2015 11:33 am
by ickby
And with what kind of widgets would this be possible?
Non that is ready to use. One would need to create a new custom widget based on an abstract item view which shows a directed graph. Maybe one could utilize http://www.adaptagrams.org/ for the layout, they have some very nice tools in their library. I did not say it is easy, mostly because for plain viewer widget the graph layout would need to be done automaticly. But it would be helpful IMHO.

@microelly2: I don't think pse is suited for what I have in mind as I think of a pure viewer with no reordering/editing capabilities, which should work well in the restircted area of the treeview (to allow direct switching). As the items are small, the amount of them high and the area restricted this is no trival task.

@ DeepSoic: that is a good improvement idea, but still makes it hard to visualize the data flow of your project. IMHO a very good addition to the tree view anyway, but not a replacement for a graph view.

Re: 0.16 Features We'd Like To See

Posted: Fri Apr 17, 2015 12:13 pm
by rockn
My little wishlist :
  • - General : Add Texture in Display Mode and a Textured Draw Style
    - Part Design/Sketcher : Add Curved surface to Sketch support
    - Draft : Implement Group and Visgroup in Draft Toolbars
    - General : Enhancement of Mods and Macros manager
    - Oh and merging of ickby's new UI work

Re: 0.16 Features We'd Like To See

Posted: Fri Apr 17, 2015 12:38 pm
by wmayer
ickby wrote: Non that is ready to use. One would need to create a new custom widget based on an abstract item view which shows a directed graph. Maybe one could utilize http://www.adaptagrams.org/ for the layout, they have some very nice tools in their library. I did not say it is easy, mostly because for plain viewer widget the graph layout would need to be done automaticly. But it would be helpful IMHO.
But that's more or less exactly the same as graphviz. But for a Qt widget it's too complicated to interact with.
microelly2 wrote: the pse has already a good graphical editor and to create representations of freecad objects inside it is possible
Do you have a screen shot to see how this would look like?
DeepSOIC wrote:The idea is, when expanding a fusion, it will show all the objects it fuses even if they are already somewhere else in the tree. I.e., a single object can appear in tree in multiple places.
Showing an object multiple times is what I above suggested too and this can be implemented using Qt's "model-view-controller" classes. In FreeCAD there is already some code but this has never been fully implemented.

Again, how do other cad applications solve this?

Re: 0.16 Features We'd Like To See

Posted: Fri Apr 17, 2015 12:49 pm
by DeepSOIC
wmayer wrote:Showing an object multiple times is what I above suggested too
Yep, I missed it :oops: :mrgreen:

Re: 0.16 Features We'd Like To See

Posted: Fri Apr 17, 2015 2:48 pm
by microelly2
wmayer wrote:
microelly2 wrote: the pse has already a good graphical editor and to create representations of freecad objects inside it is possible
Do you have a screen shot to see how this would look like?
Image
there is only one regular freecad object in the net, but you can imagine the connections
https://www.youtube.com/watch?feature=p ... 659BgaxutQ

Re: 0.16 Features We'd Like To See

Posted: Fri Apr 17, 2015 3:14 pm
by dubstar-04
rockn wrote: General : Add Texture in Display Mode and a Textured Draw Style
That would be quite cool!