Hi David,<div><br></div><div>Great to hear about the new IO module!</div><div><br></div><div>To add to Brad&#39;s comments, we will be looking into ways to auto-register External/Remote IO Module plugins at the MincIO hackathon in Montreal on Wednesday and Thursday next week.  If you would like to attend in person, please let me know.  If you would like to attend via Google+ Hangout, the link will be posted to this mailing list.</div>
<div><br></div><div>Thanks,</div><div>Matt</div><div><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 1:18 PM, Bradley Lowekamp <span dir="ltr">&lt;<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello David,<br>
<br>
The standard place to place local modules is in:<br>
<br>
ITK/Modules/External<br>
<br>
If you add some file to the wrapping subdirectory along the lines of the other IO modules when you compile ITK, with you module turned on along with WrapITK, the you IO should be there to manually register.<br>
<br>
<a href="https://github.com/Kitware/ITK/tree/master/Modules/IO/Meta/wrapping" target="_blank">https://github.com/Kitware/ITK/tree/master/Modules/IO/Meta/wrapping</a><br>
<br>
Alternatively you could do what is described as an IO Plugin, by building ITK shared and, adding the itkLoad method to you module.<br>
<br>
I would not do both.<br>
<br>
With the python method the library is manually linked in at compile time and loaded, also you need to manually register the IO factory. Where as with the IO Plugin, if the library is in the ITK_AUTOLOAD_PATH, it&#39;ll be loaded at linked time and the factory registered then.<br>

<br>
Brad<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Dec 13, 2012, at 12:09 PM, David Froger &lt;<a href="mailto:david.froger@gmail.com">david.froger@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;m writting a IO module named INR [1].<br>
&gt;<br>
&gt; If I put the plugin in the ITK sources, like this:<br>
&gt;    InsightToolkit-4.2.1/Modules/IO/INR/include/...<br>
&gt;    InsightToolkit-4.2.1/Modules/IO/INR/src/...<br>
&gt;    InsightToolkit-4.2.1/Modules/IO/INR/wrapping/...<br>
&gt;<br>
&gt; Python wrapping will be automatically generated &quot;for free&quot;.<br>
&gt;<br>
&gt; I now want the IO module to be a plugin [2].<br>
&gt; What is the simple way to generated the Python wrapping?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; David<br>
&gt;<br>
&gt;<br>
&gt; [1] <a href="http://inrimage.gforge.inria.fr/WWW/index.html" target="_blank">http://inrimage.gforge.inria.fr/WWW/index.html</a> (french pages)<br>
&gt; [2] <a href="http://www.paraview.org/Wiki/Plugin_IO_mechanisms" target="_blank">http://www.paraview.org/Wiki/Plugin_IO_mechanisms</a><br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
</div></div></blockquote></div><br></div>