ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkTransformBase.h
Go to the documentation of this file.
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 __itkTransformBase_h
00019 #define __itkTransformBase_h
00020 
00021 #include "itkObject.h"
00022 #include "itkPoint.h"
00023 #include "itkCovariantVector.h"
00024 #include "vnl/vnl_vector_fixed.h"
00025 #include "itkArray2D.h"
00026 #include "itkOptimizerParameters.h"
00027 
00028 #include "itkObjectFactory.h"
00029 #include "itkIntTypes.h"
00030 
00031 namespace itk
00032 {
00039 class ITK_EXPORT TransformBase:public Object
00040 {
00041 public:
00043   typedef TransformBase              Self;
00044   typedef Object                     Superclass;
00045   typedef SmartPointer< Self >       Pointer;
00046   typedef SmartPointer< const Self > ConstPointer;
00047 
00049   typedef  double                                     ParametersValueType;
00050   typedef  OptimizerParameters< ParametersValueType > ParametersType;
00051 
00053   itkTypeMacro(TransformBase, Object);
00054 
00057   typedef IdentifierType      NumberOfParametersType;
00058 
00060   virtual NumberOfParametersType GetNumberOfParameters(void) const = 0;
00061 
00063   virtual const ParametersType & GetParameters(void) const = 0;
00064 
00066   virtual unsigned int GetInputSpaceDimension(void) const = 0;
00067 
00069   virtual unsigned int GetOutputSpaceDimension(void) const = 0;
00070 
00072   virtual void SetParameters(const ParametersType &) = 0;
00073 
00081   virtual void SetParametersByValue(const ParametersType & p) = 0;
00082 
00084   virtual void SetFixedParameters(const ParametersType &) = 0;
00085 
00087   virtual const ParametersType & GetFixedParameters() const = 0;
00088 
00090   virtual std::string GetTransformTypeAsString() const = 0;
00091 
00092 protected:
00093   TransformBase() {}
00094   virtual ~TransformBase() {}
00095 private:
00096   TransformBase(const Self &);  //purposely not implemented
00097   void operator=(const Self &); //purposely not implemented
00098 };
00099 } // end namespace itk
00100 
00101 #endif
00102