Hi David,<div><br></div><div>Great to hear about the new IO module!</div><div><br></div><div>To add to Brad'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"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></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'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 <<a href="mailto:david.froger@gmail.com">david.froger@gmail.com</a>> wrote:<br>
<br>
> Hi all,<br>
><br>
> I'm writting a IO module named INR [1].<br>
><br>
> If I put the plugin in the ITK sources, like this:<br>
> InsightToolkit-4.2.1/Modules/IO/INR/include/...<br>
> InsightToolkit-4.2.1/Modules/IO/INR/src/...<br>
> InsightToolkit-4.2.1/Modules/IO/INR/wrapping/...<br>
><br>
> Python wrapping will be automatically generated "for free".<br>
><br>
> I now want the IO module to be a plugin [2].<br>
> What is the simple way to generated the Python wrapping?<br>
><br>
> Thanks,<br>
> David<br>
><br>
><br>
> [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>
> [2] <a href="http://www.paraview.org/Wiki/Plugin_IO_mechanisms" target="_blank">http://www.paraview.org/Wiki/Plugin_IO_mechanisms</a><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>
<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>