ENH: added support for ScalarVolume inheritant#24
ENH: added support for ScalarVolume inheritant#24kerim371 wants to merge 1 commit intoSimpleITK:masterfrom
Conversation
|
Allowing display of child nodes would make vector and label volumes show up. It would be better to avoid using custom volume type or just add your custom volume type to the list of allowed volume types (e.g., by adding a SimpleFilters configuration variable that would contain a list of additional scalar volume class names). You may potentially need to change this flag in many other modules in Slicer if you want your custom volume type supported everywhere. |
|
@lassoan thank you for feedback
Can we simply add checkbox enabling/disabling ScalarVolume inheritants and add a tooltip with the description? Or if this concerns only me then I could fork the repo and build it SlicerCAT using it. I have some tool that helps me to do such things without breaking Superbuild so it should be doable. |
|
You can just add a module variable that lists all additional volume node classes that will be added to volume node selectors. |
|
the problem is that I don't know how to acces this variable member from another module. |
|
You can do something like this: |
It is now possible to add custom volume types to node selectors: `slicer.modules.SimpleFiltersInstance.scalarVolumeNodeClasses=['...']`
2802284 to
8fec8bd
Compare
|
@lassoan thank you, that works! |
|
@jcfr please review |
jcfr
left a comment
There was a problem hiding this comment.
After reading the associated post, should the following attribute be set ?
inputSelector.showChildNodeTypes = True
Probably this is the most elegant solution but as @pieper said this would allow to choose inapropriate |
Before that it was impossible to choose ScalarVolume derived as IO node.
There was a discoussion on that