-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add a parameter set controller #132
base: master
Are you sure you want to change the base?
Conversation
Hello @lassoan, I request you opinion about this patch. The goal is to add a parameter set node to most modules in SlicerVMTK where the The chosen method is as follows:
This is not a formal pull request yet, I wish to read your thoughts about this. Thanks and regards. |
Thanks for working on this! It would be greate to use parameter node in VMTK modules. I would recommend to start from the latest version of the scripted module template: create a module by the same name as the existing module and copy over all the relevant code from the old version of the module. If you find anything wrong with the template we should fix the template. |
Thank you for your suggestion. After comparing the current module template (created a new module) and the GuidedVeinSegmentation module (which was created using that template at that time, i.e, with the parameter node wrapper), I consider that the module is conform to the current template. The problem seems to be that a wrapped parameter node is never disconnected from the UI. As we add more wrapped parameter nodes, any UI interaction is propagated to all of them. This code snippet illustrates this.
|
Please report this to the Slicer Forum - Development category, @mention Sam Horvath and Kyle Sunderland. We need to follow the template and if there are any issues or concerns then the template should be fixed. |
73b5661
to
1f7a607
Compare
4fa843f
to
09dacd7
Compare
09dacd7
to
092b21a
Compare
092b21a
to
327bee0
Compare
GuidedVeinSegmentation Using a single wrapped parameter node and multiple vtkMRMLScriptedModuleNode instances, each defining a parameter set. At the same time, use the wrapped parameter node in logic.
GuidedVeinSegmentation Using a single wrapped parameter node and multiple vtkMRMLScriptedModuleNode instances, each defining a parameter set. At the same time, use the wrapped parameter node in logic. This patch acknowledges the change in paradigm: - do not generate a vtkMRMLScriptedModuleNode parameter node from logic - do not generate a parameter node wrapper from logic - generate vtkMRMLScriptedModuleNode instances from the parameter set selector - wrap each instance - do not create a default parameter node in the selector - drop initializeParameterNode() - rely on a new parameterSetChanged() function rather - optionally use accessor get/set methods in logic - add a return statement in wrapper.py::_connectGui().
327bee0
to
0d11f5a
Compare
GuidedVeinSegmentation
Using a single wrapped parameter node and multiple vtkMRMLScriptedModuleNode instances, each defining a parameter set.
At the same time, use the wrapped parameter node in logic.