My External tool is found and loaded via ITK_AUTOLOAD_PATH, but appears twice in the plugin's GUI.
There is only one DLL in the tools folder and it is specified only once in QmitkSegmentationView with:
m_Controls->m_ManualToolSelectionBox->SetDisplayedToolGroups("TestTool");
MITK and the Tool are in a different trees.
There are no modification to the MITK source code.
Description
Event Timeline
Thanks for reporting this. I forgot to update the CMake macros that you use when I was changing the way in which tools are instantiated. I did that now.
Your code was fine and should work without changes. However, I attach a patch that shows you possible improvements:
- define your own export macro (in case you want to include this header elsewhere)
- use CMake variables instead of local, relative paths
Both are only quick fixes, which could be written more nicely.
I'll commit the changes to trunk right away.
Please let me know if the fixes work for you. Just in case: you might need to remove generated .h/.cpp files from your binary directory and run CMake again.
[SVN revision 28051]
FIX (#6162): correct the way in which external tools can be added
Also simplify the CMake script for adding plugin libraries.
[SVN revision 28052]
DOC (#6162): restore documentation on structure and extensions for segmentation bundle
[SVN revision 28059]
FIX (#6162): correctly return ITK_SOURCE_VERSION as ITK factory wants it.
The issue should be fixed now. I mistakenly returned ITK_VERSION_STRING in a factory method, although the documentation clearly states that only ITK_SOURCE_VERSION should be returned.