3DSlicer23:Module-Create Loadable
生活随笔
收集整理的這篇文章主要介紹了
3DSlicer23:Module-Create Loadable
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.Overview
可加載模塊可以看做是Logic和UI聯合構成的。2.Creating Loadable Module
- 創建模塊目錄
- Build
- Installing
- Check the module
Slicer官網提供給了我們修改module名字的方法如4,本人不建議改來改去的麻煩。
- 使用啟動器(Launcher)打開Qt Designer
- Change the UI
- Edit Module Files
Slicer4/Modules/Loadable/MY_MODULE_NAME/qSlicerMY_MODULE_NAMEWidget.[h|cxx]
Slicer4/Modules/Loadable/MY_MODULE_NAME/Logic/vtkSlicerMY_MODULE_NAMELogic.[h|cxx]
3.如何使用QtDesigner進行開發?
3.1 加載CTK和MRML部件
為了在Qt Designer中擁有CTK Widget和MRML Widget部件,Qt Designer提供了兩個選項:- the first is to copy the CTK and MRML plugin libraries into %QT_DIR%/plugins/designer
- the second is to set the environment variable QT_PLUGIN_PATH to the directory Slicer-build/bin containing the subdirectory designer with the plugin libraries.
3.2 Building & Installing
官網給的Build方法比較麻煩,這里我嘗試了一種相對比較簡單的方法:
- UI設計好之后保存;
- 利用CMake進行編譯生成*****.sln
- 利用VisualStudio打開*****.sln,進行編譯
- 按照3方法進行注冊即可
4.模塊間的依存
原理如5.6所示,具體還有待研究。5.參考資料
1.Creating:https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/CreateLoadableModule 2.Building:https://www.slicer.org/wiki/Documentation/Nightly/Developers/ExtensionWizard#Building 3.Installing:https://www.slicer.org/wiki/Documentation/Nightly/Developers/ExtensionWizard#.22Installation.22 4.Checking:https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/CreateLoadableModul 5.QtDesigner:https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/QtDesigner 6.ModuleDependency:https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/CreateLoadableModule 與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的3DSlicer23:Module-Create Loadable的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: QQ尾巴病毒的Visual C++实现探
- 下一篇: A sample that using