00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSingleValuedNonLinearVnlOptimizer.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/03/07 00:20:15 $ 00007 Version: $Revision: 1.17 $ 00008 00009 Copyright (c) 2002 Insight Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkSingleValuedNonLinearVnlOptimizer_h 00018 #define __itkSingleValuedNonLinearVnlOptimizer_h 00019 00020 #include "itkSingleValuedNonLinearOptimizer.h" 00021 #include "itkSingleValuedVnlCostFunctionAdaptor.h" 00022 00023 00024 namespace itk 00025 { 00026 00035 class ITK_EXPORT SingleValuedNonLinearVnlOptimizer : 00036 public SingleValuedNonLinearOptimizer 00037 { 00038 public: 00040 typedef SingleValuedNonLinearVnlOptimizer Self; 00041 typedef SingleValuedNonLinearOptimizer Superclass; 00042 typedef SmartPointer<Self> Pointer; 00043 typedef SmartPointer<const Self> ConstPointer; 00044 00046 itkTypeMacro( SingleValuedNonLinearVnlOptimizer, 00047 SingleValueNonLinearOptimizer ); 00048 00055 virtual void SetCostFunction( SingleValuedCostFunction * costFunction ) = 0; 00056 00057 protected: 00058 SingleValuedNonLinearVnlOptimizer(); 00059 virtual ~SingleValuedNonLinearVnlOptimizer(); 00060 00061 typedef SingleValuedVnlCostFunctionAdaptor CostFunctionAdaptorType; 00062 00063 void SetCostFunctionAdaptor( CostFunctionAdaptorType * adaptor ); 00064 const CostFunctionAdaptorType * GetCostFunctionAdaptor( void ) const; 00065 00066 private: 00067 SingleValuedNonLinearVnlOptimizer(const Self&); //purposely not implemented 00068 void operator=(const Self&); //purposely not implemented 00069 00070 CostFunctionAdaptorType * m_CostFunctionAdaptor; 00071 00072 }; 00073 00074 } // end namespace itk 00075 00076 00077 00078 00079 00080 #endif 00081 00082 00083