Writing Algorithms for a loadable Module

Hello Everyone,
I have read somewhere in the Internet that I can implement any algorithms inside the vtkSlicerMY_MODULE_NAMELogic.cxx file. Is it true? If so, how do I access it from the qSlicerMY_MODULE_NAMEWidget.cxx file? Any help would be appreciated!

Best regards,
Anish

Certainly, you can do that.

Please see the corresponding section in the developer’s manual:

I’d strongly suggest looking at examples, basically any Slicer module does this: