00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkTransformBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/04/05 15:41:44 $ 00007 Version: $Revision: 1.5 $ 00008 00009 Copyright (c) Insight Software 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 __itkTransformBase_h 00018 #define __itkTransformBase_h 00019 00020 #include "itkObject.h" 00021 #include "itkPoint.h" 00022 #include "itkVector.h" 00023 #include "itkCovariantVector.h" 00024 #include "vnl/vnl_vector_fixed.h" 00025 #include "itkArray.h" 00026 #include "itkArray2D.h" 00027 00028 #include "itkObjectFactory.h" 00029 00030 namespace itk 00031 { 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 Array< double > ParametersType; 00050 00052 itkTypeMacro( TransformBase, Object ); 00053 00055 virtual unsigned int GetNumberOfParameters(void) const = 0; 00056 00058 virtual const ParametersType& GetParameters(void) const = 0; 00059 00061 virtual unsigned int GetInputSpaceDimension(void) const = 0; 00062 00064 virtual unsigned int GetOutputSpaceDimension(void) const = 0; 00065 00067 virtual void SetParameters( const ParametersType & ) = 0; 00068 00076 virtual void SetParametersByValue ( const ParametersType & p ) = 0; 00077 00079 virtual void SetFixedParameters( const ParametersType & ) = 0; 00080 00082 virtual const ParametersType& GetFixedParameters( ) const = 0; 00083 00085 virtual std::string GetTransformTypeAsString() const = 0; 00086 00087 protected: 00088 TransformBase() {}; 00089 virtual ~TransformBase() {}; 00090 00091 private: 00092 TransformBase(const Self&); //purposely not implemented 00093 void operator=(const Self&); //purposely not implemented 00094 00095 00096 }; 00097 00098 } // end namespace itk 00099 00100 #endif 00101