[Insight-developers] Access to Factories
Bill Hoffman
bill.hoffman@kitware.com
Tue, 12 Dec 2000 12:51:24 -0500
You would have to create a factory that did that.
By default there are no registered factories.
-Bill
At 03:11 PM 12/11/00 -0500, Luis Ibanez wrote:
>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
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers