Can anyone show me how to do slicer extension in c++ with an example?

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++?

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 directory are examples you could look at.

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.