Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkCenteredRigid2DTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCenteredRigid2DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-09 09:23:20 $
00007   Version:   $Revision: 1.16 $
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 
00018 #ifndef __itkCenteredRigid2DTransform_h
00019 #define __itkCenteredRigid2DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkRigid2DTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00052 template < class TScalarType=double >    // Data type for scalars
00053 class ITK_EXPORT CenteredRigid2DTransform : 
00054             public Rigid2DTransform< TScalarType > 
00055 {
00056 public:
00058   typedef CenteredRigid2DTransform          Self;
00059   typedef Rigid2DTransform< TScalarType >   Superclass;
00060   typedef SmartPointer<Self>                Pointer;
00061   typedef SmartPointer<const Self>          ConstPointer;
00062 
00064   itkNewMacro( Self );
00065 
00067   itkTypeMacro( CenteredRigid2DTransform, Rigid2DTransform );
00068 
00070   itkStaticConstMacro(SpaceDimension, unsigned int, 2);
00071   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
00072   itkStaticConstMacro(ParametersDimension, unsigned int, 5);
00074 
00076   typedef typename Superclass::ScalarType  ScalarType;
00077 
00079   typedef typename Superclass::ParametersType  ParametersType;
00080 
00082   typedef typename Superclass::JacobianType  JacobianType;
00083 
00085   typedef typename Superclass::OffsetType  OffsetType;
00086 
00088   typedef typename Superclass::InputPointType   InputPointType;
00089   typedef typename Superclass::OutputPointType  OutputPointType;
00090 
00092   typedef typename Superclass::InputVectorType   InputVectorType;
00093   typedef typename Superclass::OutputVectorType  OutputVectorType;
00094 
00096   typedef typename Superclass::InputCovariantVectorType   
00097                                                 InputCovariantVectorType;
00098   typedef typename Superclass::OutputCovariantVectorType  
00099                                                 OutputCovariantVectorType;
00100 
00102   typedef typename Superclass::InputVnlVectorType   InputVnlVectorType;
00103   typedef typename Superclass::OutputVnlVectorType  OutputVnlVectorType;
00104 
00107   typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
00108   typedef typename InverseTransformBaseType::Pointer    InverseTransformBasePointer;
00109 
00118   void SetParameters( const ParametersType & parameters );
00119 
00128   const ParametersType & GetParameters( void ) const;
00129 
00134   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00135 
00138   virtual void SetFixedParameters( const ParametersType & );
00139 
00142   virtual const ParametersType& GetFixedParameters(void) const;
00143 
00147   void CloneInverseTo( Pointer & newinverse ) const;
00148 
00150   bool GetInverse(Self* inverse) const;
00151 
00153   virtual InverseTransformBasePointer GetInverseTransform() const;
00154 
00158   void CloneTo( Pointer & clone ) const;
00159 
00160 protected:
00161   CenteredRigid2DTransform();
00162   ~CenteredRigid2DTransform(){};
00163 
00164   CenteredRigid2DTransform( unsigned int outputSpaceDimension, 
00165                             unsigned int parametersDimension);
00166 
00167   void PrintSelf(std::ostream &os, Indent indent) const;
00168 
00169 private:
00170   CenteredRigid2DTransform(const Self&); //purposely not implemented
00171   void operator=(const Self&); //purposely not implemented
00172 
00173 }; //class CenteredRigid2DTransform
00174 
00175 
00176 }  // namespace itk
00177 
00179 #define ITK_TEMPLATE_CenteredRigid2DTransform(_, EXPORT, x, y) namespace itk { \
00180   _(1(class EXPORT CenteredRigid2DTransform< ITK_TEMPLATE_1 x >)) \
00181   namespace Templates { typedef CenteredRigid2DTransform< ITK_TEMPLATE_1 x > \
00182                                             CenteredRigid2DTransform##y; } \
00183   }
00184 
00185 
00186 #if ITK_TEMPLATE_EXPLICIT
00187 # include "Templates/itkCenteredRigid2DTransform+-.h"
00188 #endif
00189 
00190 #if ITK_TEMPLATE_TXX
00191 # include "itkCenteredRigid2DTransform.txx"
00192 #endif
00193 
00194 #endif /* __itkCenteredRigid2DTransform_h */
00195 

Generated at Tue Sep 15 02:31:12 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000