Hi,
there are several ways of using MITK. On the most basic level, you have to decide if you want to MITK as a toolkit or as framework. Toolkit means that you use MITK just like any other bunch of libraries and depend on MITK libraries/modules in your CMake-based project with target_link_libraries(). This is the most general approach and usually chosen by developers who just want to use the algorithmic part of MITK in their completely own GUI (or non-GUI) applications. Note that you can switch off BlueBerry, CTK, and even Qt5 to just build the parts of MITK you need. A good starting point is to build the absolute minimum of MITK by setting the following (advanced) CMake variables in the MITK-superbuild and then add the parts of MITK you need as you go on: MITK_WHITELIST: Minimal MITK_BUILD_CONFIGURATION: Minimal Framework means that you stick to the conventions of MITK and use all the CMake functionailty of MITK to create new modules, plugins, and applications. As an advantage you can rely on a ton of mainly GUI and application-infrastructure-related code to get things done. You can also use plugins like Image Statistics or Segmentation. The recommended "framework" way is to start with the MITK-ProjectTemplate [1] as a template for your own repository and write your modules, plugins, and applications this way. For the start you can just use the MITK Workbench application as a host for your components but you are not restricted to do so. Check the BlueBerryExample launcher application for examples on writing your completely custom applications that are still based on BlueBerry though. It's hard to recommend the right way for your project without knowing any details but if you are already determinied to write your own GUI and you do not want to use CTK or BlueBerry (and hence none of our plugins/views) you probably want to go full custom with the toolkit approach. From our experience we can say that quite a few developers started this way without noticing all the benefits of the framework approach as there are literally hundreds of thousands lines of code dealing with a lot of complexity you would otherwise have to handle yourself (at the cost of a certain overhead of course). Some developers also did not recognize the possibility to create BlueBerry applications with a nearly completely custom look and feel. All approaches are valid approaches and in the end you have to decide what's best in your project's context. Best, Stefan [1] https://github.com/MITK/MITK-ProjectTemplate ________________________________ Von: Ramazan Ergüder Bekrek <e.bek...@yandex.com> Gesendet: Dienstag, 8. September 2020 17:27 An: mitk-users@lists.sourceforge.net Betreff: Re: [mitk-users] Is there any template project that have the foundation to build a modular application with Qt? I found out this tutorial but I don't know how actual it is and unfortunately it only does covers CTK and not other frameworks that I need. https://commontk.org/index.php/Documentation/CTK_Plugin_Framework:_Setting_up_a_project#Project_Layout Could someone confirm that this is still valid or should I just ignore this tutorial? Best Regards 08.09.2020, 16:16, "Ramazan Ergüder Bekrek" <e.bek...@yandex.com>: I found out this tutorial but I don't know how actual it is and unfortunately it only does covert CTK and not other frameworks that I need. Could someone confirm that this is still valid or should I just ignore this tutorial? Best Regards 08.09.2020, 16:13, "Ramazan Ergüder Bekrek" <e.bek...@yandex.com<mailto:e.bek...@yandex.com>>: I also want to share the fact that there is now a discord server for everything OSGi related. There are also sub-channels regarding BlueBerry, CppMicroServices, CTK, OSGi in Java,Python,Actionscript and also Qt. This is the invitation link and I welcome everyone who is willing to expand and share their knowledge of theses platforms. https://discord.gg/yVmNAbv Best Regards 08.09.2020, 14:00, "Ramazan Ergüder Bekrek" <e.bek...@yandex.com<mailto:e.bek...@yandex.com>>: Hi it is been since few days I am trying to figure out how to use the combination of BlueBerry, CTK, CppMicroservice, Qt5 & CMake to have a solid foundation without all the MITK framework and all its components to start my own project. I have installed MITK to see how it look on the UI with all the modular aspect and actually what I am trying to achieve this: I would like to have a naked MITK like main windows without any components on the UI and built from that on top by my own UI bundles. When I digged inside of the CMake structure and code I just became owerwhelmed and scared. It seems that BlueBerry is an integrated part of MITK and not a totally independant project which has a vcpkg port like dcmtk, gdcm, cppmicroservice, qt5. I also realized that CTK is also like the previously mentioned fact and is missing on vcpkg... How do I setup a CMake foundation if some parts of the MITK are not reachable by vcpkg and I need them for example like: find_package(CTK REQUIRED) find_package(BlueBerry REQUIRED) find_package(CppMicroServices REQUIRED) Plug how to I setup my CMake to take advantage of all the CTK, BlueBerry, CppMicroService functions and macros to respect the best practice structure pattern for my own bundles and the structure of my project? I am aware that there is a CMake and CMakeExternals folders in the root of the project. Can I just take those 2 folder and copy it inside of my own project folder and will it work with CMake? So the briefly resume my situation how do I setup either a dummy CMake template or make it work with an alternative. Best Regards _______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/mitk-users ,, _______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/mitk-users ,, _______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/mitk-users
_______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users