multiple constructor, how to do with the factory method and itknewmacro


I have never used factory method before and I am a little lost.

I want to define a second constructor with different input parameters.

the constructor is called when calling ::New() ?
how do I pass the constructor parameters when using ::New ?


New() only works with default constructor. Which means if you want to use itkNewMacro your class must have to be able to accept important parameters via methods, as you can’t pass them into a constructor.