# Writing Algorithms for a loadable Module

**URL:** <https://discourse.slicer.org/t/writing-algorithms-for-a-loadable-module/13812>\
**Category:** Development\
**Created:** [October 2, 2020, 8:58am UTC](https://discourse.slicer.org/t/writing-algorithms-for-a-loadable-module/13812 "2020-10-02T08:58:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anish\_Basnet](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anish_basnet/32/7988_2.png) [@Anish\_Basnet](https://discourse.slicer.org/u/Anish_Basnet)\
**Post date:** [October 2, 2020, 8:58am UTC](https://discourse.slicer.org/t/writing-algorithms-for-a-loadable-module/13812/1 "2020-10-02T08:58:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 2, 2020, 9:03am UTC](https://discourse.slicer.org/t/writing-algorithms-for-a-loadable-module/13812/2 "2020-10-02T09:03:48Z")

</div>

Certainly, you can do that.

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

> **[Documentation/Nightly/Developers/Modules - Slicer Wiki](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Modules#Loadable_Modules)**

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

> **[Slicer/Slicer](https://github.com/Slicer/Slicer/tree/master/Modules/Loadable)**
>
> Multi-platform, free open source software for visualization and image computing. - Slicer/Slicer
