[Insight-developers] ITK 4.2.1: LoadDynamicFactories is not called?

Bradley Lowekamp blowekamp at mail.nih.gov
Tue Oct 23 10:58:15 EDT 2012


Hello Fabian,

With the modularization of the IO libraries with ITK v4 a new solution was needed to register all the factories in a modular fashion.

With the standard supported CMake using of the ITK package[1], the factory registration should still automatically happen. The registration is done threw static initialization, by header files that are automatically generated and including when using ITK with cmake [2].


It's rather a complicated automatic process that just works, and generally the details don't need to be worried about.

Brad


https://github.com/Kitware/ITK/blob/master/Examples/Installation/CMakeLists.txt
https://github.com/Kitware/ITK/blob/master/CMake/UseITK.cmake#L73

On Oct 23, 2012, at 8:47 AM, "Wenzel, Fabian" <fabian.wenzel at philips.com> wrote:

> Hi list,
> 
> it seems that ObjectFactoryBase::Initialize() - which eventually loads dynamic factories - is not called at all in ITK 4.2.1: All built-in factories register themselves with RegisterFactoryInternal() - which circumvents LoadDynamicFactories()  - and creating instances methods bypass LoadDynamicFactories() as well, since internal factories are already present. Or am I missing something?
> 
> Any help would be appreciated.
> 
> Thanks,
> 
>      Fabian
> 
> 
> 
> ________________________________
> The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers



More information about the Insight-developers mailing list