ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkOptimizerParameters_h 00019 #define __itkOptimizerParameters_h 00020 00021 #include "itkArray.h" 00022 #include "itkOptimizerParametersHelper.h" 00023 00024 namespace itk 00025 { 00033 template< typename TValueType > 00034 class OptimizerParameters : public Array< TValueType > 00035 { 00036 public: 00037 00039 typedef TValueType ValueType; 00040 typedef OptimizerParameters Self; 00041 typedef Array< TValueType > Superclass; 00042 typedef Superclass ArrayType; 00043 typedef typename Superclass::VnlVectorType VnlVectorType; 00044 typedef typename Superclass::SizeValueType SizeValueType; 00045 00048 typedef OptimizerParametersHelper< TValueType > OptimizerParametersHelperType; 00049 00052 OptimizerParameters(); 00053 00059 OptimizerParameters(const OptimizerParameters& rhs); 00060 00062 explicit OptimizerParameters(SizeValueType dimension); 00063 00065 OptimizerParameters( const ArrayType& array ); 00066 00068 void Initialize(); 00069 00075 virtual void MoveDataPointer( TValueType * pointer ); 00076 00081 virtual void SetParametersObject( LightObject * object ); 00082 00088 virtual void SetHelper( OptimizerParametersHelperType* helper ); 00089 00091 OptimizerParametersHelperType* GetHelper() 00092 { return m_Helper; } 00093 00099 const Self & operator=(const Self & rhs); 00100 00101 const Self & operator=(const ArrayType & rhs); 00102 00103 const Self & operator=(const VnlVectorType & rhs); 00104 00105 virtual ~OptimizerParameters(); 00106 private: 00107 OptimizerParametersHelperType* m_Helper; 00108 }; 00109 00110 }//namespace itk 00111 00112 #if ITK_TEMPLATE_TXX 00113 #include "itkOptimizerParameters.hxx" 00114 #endif 00115 00116 #endif 00117