# ObjectToObjectOptimizerBase: Rename GetValue() to GetCurrentMetricValue()

Michael Stauffer
2012-06-08
Rename ObjectToObjectOptimizerBase::m_Value to m_CurrentMetricValue to avoid confusion with ObjectToObjectMetricv4::m_Value. Also, new name is more consistent with other names in the class. Derived optimizers will need to rename any use of m_Value. The new accessor is GetCurrentMetricValue(). The original GetValue() method is retained, returning m_CurrentMetricValue, for backwards compatiblity.
myOptimizerv4->GetValue();
myOptimizerv4->GetCurrentMetricValue();
MyDerivedOptimizerv4::Pointer optimizer = MyDerivedOptimizerv4::New(); optimizer->m_Value = 319;
MyDerivedOptimizerv4::Pointer optimizer = MyDerivedOptimizerv4::New(); optimizer->m_CurrentMetricValue = 319;
I0f0fbc07e6c27ef113a3b8809c2dd0c94f97efe6
Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerv4.h Modules/Numerics/Optimizersv4/include/itkObjectToObjectOptimizerBase.h Modules/Numerics/Optimizersv4/src/itkGradientDescentOptimizerv4.cxx Modules/Numerics/Optimizersv4/src/itkMultiGradientOptimizerv4.cxx Modules/Numerics/Optimizersv4/src/itkMultiStartOptimizerv4.cxx Modules/Numerics/Optimizersv4/src/itkObjectToObjectOptimizerBase.cxx Modules/Numerics/Optimizersv4/src/itkQuasiNewtonOptimizerv4.cxx Modules/Numerics/Optimizersv4/test/itkGradientDescentOptimizerBasev4Test.cxx Modules/Numerics/Optimizersv4/test/itkObjectToObjectOptimizerBaseTest.cxx Modules/Registration/Metricsv4/test/itkEuclideanDistancePointSetMetricRegistrationTest.cxx Modules/Registration/Metricsv4/test/itkExpectationBasedPointSetMetricRegistrationTest.cxx Modules/Registration/Metricsv4/test/itkJointHistogramMutualInformationImageToImageRegistrationTest.cxx Modules/Registration/Metricsv4/test/itkObjectToObjectMultiMetricv4RegistrationTest.cxx Modules/Registration/RegistrationMethodsv4/test/itkSimpleImageRegistrationTest.cxx