dsa934
(Dsa934)
May 25, 2023, 1:39am
1
Operating system: 10
Slicer version: 5.2.1
Hi, slicer users
I am using several python modules in 3d slicer through extension wizard.
However, I’ve read all the advice to use script repositories and loadable classes for C++ extensions, but I don’t know what the heck they are talking about.
A very simple example is good, so can anyone explain how to extend it with C++?
jcfr
(Jean Christophe Fillion Robin (Kitware))
May 25, 2023, 1:48am
2
Implementing a module in C++ is more involved than simply relying on python to implement a specific workflow and user interface.
Is there a specific task you are not able to achieve leveraging Python ?
By better understanding your goal, we may be able to more effectively guide you.
All the modules available in the https://github.com/Slicer/Slicer/tree/main/Modules/Loadable directory are examples you could look at.
dsa934
(Dsa934)
May 27, 2023, 11:54am
4
I deleted the previous post because it was incorrect.
My current situation is that I can use the desired module as an extension with python, but I cannot use it with c++.
I have a module written in C++ that is already implemented and I want to use it in a slicer.
I’ll try the link you linked above first.