mastodon-sc / mastodon

Mastodon – a large-scale tracking and track-editing framework for large, multi-view images.
BSD 2-Clause "Simplified" License
66 stars 20 forks source link

Changes to the hierarchical TrackScheme #174

Closed maarzt closed 2 years ago

maarzt commented 2 years ago

This PR changes the Hierarchical TrackScheme. The goal is to allow the users to get a better overview of the data. The rendering of the Hirarchical TrackScheme is changed slightly. And there are new menu items. That allow to only show a selected track or downward track in the Hierarchical TrackScheme.

This PR fixes https://github.com/mastodon-sc/mastodon/issues/172

Changes to the rendering of the Hierarchical TrackScheme:

image

Allow to zoom out further in the hierarchical TrackScheme: image

Allow to show only a subset of the tracks in the hierarchical TrackScheme: image

Refacoring of the LineageTreeLayout class

I had a deeper look into the LineageTreeLayout class in order to implement the new functionality. The code was quite complicated so a refactored a lot of stuff such that I could understand it better:

New HierarchyLayout class I added a new HierarchyLayout class the only purpose is to hide the label of the root node. The label would otherwise be printed over an edge. And the label is anyway visible as the title of the column.

maarzt commented 2 years ago

Some thoughts:

maarzt commented 2 years ago

@tinevez Sorry, I could finish this today. And I won't have time to look at this before next week.

maarzt commented 2 years ago

Hi @tinevez, I will start now to fix the remaining issues.

maarzt commented 2 years ago

@tinevez Ok, I think it's ready now. Please review my last changes and merge it.

maarzt commented 2 years ago

:partying_face: