[Insight-developers] Access to Factories

Luis Ibanez ibanez@cs.unc.edu
Mon, 11 Dec 2000 15:11:09 -0500


Hi,

I'm wondering if the ITK factories can be used directly,
to do something like

  Object::Pointer    object  =  Factory.CreateInstance( "Image" )

(of course the name "Image" could be something much more complex,
in order to deal with the possible templated parameters and so on....)

This can be useful for I/O, because the name of the object in question
(the "Image" in this case) can be saved as part of the file header.

Or it is the case that Factories are not supposed to be visible,
and it is better to create a specific set of factories for this use.


Thanks


Luis