-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: added support for ScalarVolume inheritant #24
base: master
Are you sure you want to change the base?
ENH: added support for ScalarVolume inheritant #24
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@jcfr please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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