BICCN / cell-locator

manually align specimens to annotated 3D spaces
https://cell-locator.readthedocs.io
Other
19 stars 7 forks source link

Multi-annotation support #147

Closed allemangD closed 4 years ago

allemangD commented 4 years ago

Introduces a TreeView sidebar to the left of the 2D view which allows management of annotations.

It would be ideal for the TreeView to more directly reference Annotation objects, however I did not find a way to do this, so instead indirectly access them via each annotation's markup attribute. For example, the "current" annotation is looked up by finding the Annotation object whose markup is the selected node in the treeview.

This also means a special onSubjectHierarchyItemRemovedEvent is needed to remove the annotation from the AnnotationManager when a markup is deleted via the context menu. I get the impression that a Subject Hierarchy Plugin might be a better approach for this, but I'm not sure how to proceed there.

The "clone" option in the context menu also fails; it duplicates the markup but not the model, and that annotation would not be serialized.