13 #ifndef mitkModelFitFunctorPolicy_h
14 #define mitkModelFitFunctorPolicy_h
44 unsigned int result = 0;
46 if (m_Functor.IsNotNull() && m_ModelParameterizer.IsNotNull())
49 result = m_Functor->GetNumberOfOutputs(tempModel);
59 itkGenericExceptionMacro( <<
"Error. Functor is Null.");
69 itkGenericExceptionMacro( <<
"Error. Parameterizer is Null.");
72 m_ModelParameterizer = parameterizer;
77 return !(*
this == other);
82 return (this->m_Functor == other.m_Functor) &&
83 (this->m_ModelParameterizer == other.m_ModelParameterizer);
91 itkGenericExceptionMacro( <<
"Error. Cannot process operator(). Functor is Null.");
94 if (!m_ModelParameterizer)
96 itkGenericExceptionMacro( <<
"Error. Cannot process operator(). Parameterizer is Null.");
100 m_ModelParameterizer->GenerateParameterizedModel(currentIndex);
110 FunctorConstPointer m_Functor;
111 ParameterizerConstPointer m_ModelParameterizer;