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

itkVersorRigid3DTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVersorRigid3DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-11-24 15:25:15 $
00007   Version:   $Revision: 1.30 $
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 __itkVersorRigid3DTransform_h
00019 #define __itkVersorRigid3DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkVersorTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00046 template < class TScalarType=double >//Data type for scalars (float or double)
00047 class ITK_EXPORT VersorRigid3DTransform : 
00048       public VersorTransform< TScalarType > 
00049 {
00050 public:
00052   typedef VersorRigid3DTransform            Self;
00053   typedef VersorTransform< TScalarType >    Superclass;
00054   typedef SmartPointer<Self>                Pointer;
00055   typedef SmartPointer<const Self>          ConstPointer;
00056 
00058   itkNewMacro( Self );
00059 
00061   itkTypeMacro( VersorRigid3DTransform, VersorTransform );
00062 
00064   itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00065   itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00066   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00067   itkStaticConstMacro(ParametersDimension, unsigned int, 6);
00069 
00071   typedef typename Superclass::ParametersType         ParametersType;
00072   typedef typename Superclass::JacobianType           JacobianType;
00073   typedef typename Superclass::ScalarType             ScalarType;
00074   typedef typename Superclass::InputPointType         InputPointType;
00075   typedef typename Superclass::OutputPointType        OutputPointType;
00076   typedef typename Superclass::InputVectorType        InputVectorType;
00077   typedef typename Superclass::OutputVectorType       OutputVectorType;
00078   typedef typename Superclass::InputVnlVectorType     InputVnlVectorType;
00079   typedef typename Superclass::OutputVnlVectorType    OutputVnlVectorType;
00080   typedef typename Superclass::InputCovariantVectorType 
00081                                                       InputCovariantVectorType;
00082   typedef typename Superclass::OutputCovariantVectorType
00083                                                       OutputCovariantVectorType;
00084   typedef typename Superclass::MatrixType             MatrixType;
00085   typedef typename Superclass::InverseMatrixType      InverseMatrixType;
00086   typedef typename Superclass::CenterType             CenterType;
00087   typedef typename Superclass::OffsetType             OffsetType;
00088   typedef typename Superclass::TranslationType        TranslationType;
00089 
00091   typedef typename Superclass::VersorType             VersorType;
00092   typedef typename Superclass::AxisType               AxisType;
00093   typedef typename Superclass::AngleType              AngleType;
00094 
00095   typedef typename Superclass::AxisValueType          AxisValueType;
00096   typedef typename Superclass::TranslationValueType   TranslationValueType;
00097   typedef typename Superclass::ParameterValueType     ParameterValueType;
00098 
00103   void SetParameters( const ParametersType & parameters );
00104   virtual const ParametersType& GetParameters(void) const;
00106 
00111   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00112 
00113 protected:
00114   VersorRigid3DTransform(unsigned int outputSpaceDim,
00115                          unsigned int paramDim);
00116   VersorRigid3DTransform(const MatrixType & matrix,
00117                          const OutputVectorType & offset);
00118   VersorRigid3DTransform();
00119   ~VersorRigid3DTransform(){};
00120 
00121   void PrintSelf(std::ostream &os, Indent indent) const;
00122 
00123  
00124 private:
00125   VersorRigid3DTransform(const Self&); //purposely not implemented
00126   void operator=(const Self&); //purposely not implemented
00127 
00128 }; //class VersorRigid3DTransform
00129 
00130 
00131 }  // namespace itk
00132 
00133 // Define instantiation macro for this template.
00134 #define ITK_TEMPLATE_VersorRigid3DTransform(_, EXPORT, x, y) namespace itk { \
00135   _(1(class EXPORT VersorRigid3DTransform< ITK_TEMPLATE_1 x >)) \
00136   namespace Templates { typedef VersorRigid3DTransform< ITK_TEMPLATE_1 x > VersorRigid3DTransform##y; } \
00137   }
00138 
00139 #if ITK_TEMPLATE_EXPLICIT
00140 # include "Templates/itkVersorRigid3DTransform+-.h"
00141 #endif
00142 
00143 #if ITK_TEMPLATE_TXX
00144 # include "itkVersorRigid3DTransform.txx"
00145 #endif
00146 
00147 #endif /* __itkVersorRigid3DTransform_h */
00148 

Generated at Mon Jul 12 2010 20:14:11 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000