ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkv3Rigid3DTransform.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 __itkv3Rigid3DTransform_h
00019 #define __itkv3Rigid3DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkRigid3DTransform.h"
00023 #include "itkVersor.h"
00024 
00025 namespace itkv3
00026 {
00060 template< class TScalarType = double >
00061 // type for scalars (float or double)
00062 class ITK_EXPORT Rigid3DTransform:
00063     public itk::Rigid3DTransform< TScalarType >
00064 {
00065 public:
00067   typedef Rigid3DTransform                     Self;
00068   typedef itk::Rigid3DTransform< TScalarType > Superclass;
00069   typedef itk::SmartPointer< Self >            Pointer;
00070   typedef itk::SmartPointer< const Self >      ConstPointer;
00071 
00072 
00074   itkTypeMacro(Rigid3DTransform, itk::Rigid3DTransform);
00075 
00077   itkNewMacro(Self);
00078 
00080   itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00081   itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00082   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00083   itkStaticConstMacro(ParametersDimension, unsigned int, 12);
00085 
00086   typedef typename Superclass::ParametersType            ParametersType;
00087   typedef typename Superclass::ParametersValueType       ParametersValueType;
00088   typedef typename Superclass::JacobianType              JacobianType;
00089   typedef typename Superclass::ScalarType                ScalarType;
00090   typedef typename Superclass::InputVectorType           InputVectorType;
00091   typedef typename Superclass::OutputVectorType          OutputVectorType;
00092   typedef typename Superclass::OutputVectorValueType     OutputVectorValueType;
00093   typedef typename Superclass::InputCovariantVectorType  InputCovariantVectorType;
00094   typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00095   typedef typename Superclass::InputVnlVectorType        InputVnlVectorType;
00096   typedef typename Superclass::OutputVnlVectorType       OutputVnlVectorType;
00097   typedef typename Superclass::InputPointType            InputPointType;
00098   typedef typename Superclass::OutputPointType           OutputPointType;
00099   typedef typename Superclass::MatrixType                MatrixType;
00100   typedef typename Superclass::InverseMatrixType         InverseMatrixType;
00101   typedef typename Superclass::MatrixValueType           MatrixValueType;
00102   typedef typename Superclass::CenterType                CenterType;
00103   typedef typename Superclass::TranslationType           TranslationType;
00104   typedef typename Superclass::OffsetType                OffsetType;
00105 
00108   typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
00109   typedef typename InverseTransformBaseType::Pointer    InverseTransformBasePointer;
00110 
00112   bool GetInverse(Self *inverse) const
00113   {
00114   return this->Superclass::GetInverse(inverse);
00115   }
00116 
00118 virtual InverseTransformBasePointer GetInverseTransform() const
00119   {
00120   Pointer inv = New();
00121   return this->GetInverse(inv) ? inv.GetPointer() : NULL;
00122   }
00123 protected:
00124   Rigid3DTransform()
00125   {
00126   }
00128 
00129 private:
00130   Rigid3DTransform(const Self &); //purposely not implemented
00131   void operator=(const Self &);   //purposely not implemented
00132 };                                //class Rigid3DTransform
00133 }  // namespace itkv3
00134 #endif /* __itkv3Rigid3DTransform_h */
00135