I am writing an extension to display objects in a tree hierarchy from a nested python dictionary.
Is there a good guide for presenting nodes to the Subject Hierarchy Tree View with icons, data, context menus, and so forth?
Thank You,
Josh J
I am writing an extension to display objects in a tree hierarchy from a nested python dictionary.
Is there a good guide for presenting nodes to the Subject Hierarchy Tree View with icons, data, context menus, and so forth?
Thank You,
Josh J
Subject hierarchy automatically imports any supported nodes. This support is provided by subject hierarchy plugins. They determine what node they can own, what icon it will have, how they are displayed, and what functions they offer through context menus. If some existing plugins interfere with your plans, then you may choose a higher confidence when deciding ownership, or you can even disable plugins. You can find more information here:
https://www.slicer.org/wiki/Documentation/Nightly/Modules/Data#Information_for_Developers
Gotcha.
I have a datastore with a different hierarchy that I am working to write a Slicer plugin interface for. Looks like I may need to think a bit more about how it will interface with the various Slicer hierarchies.
Thank You,
J.