KWStyle - itkEuler2DTransform.txx
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkEuler2DTransform.txx.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:35 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notices for more information.
15
16 =========================================================================*/
17 DEF #ifndef _itkEuler2DTransform_txx
18 DEF #define _itkEuler2DTransform_txx
19
20 #include "itkEuler2DTransform.h"
21
22
23 namespace itk
24 {
25
26 // Constructor with default arguments
27 template <class TScalarType>
28 Euler2DTransform<TScalarType>
29 ::Euler2DTransform():
30 IND **Superclass( SpaceDimension, ParametersDimension )
31 {
32 }
33
34 // Constructor with arguments
35 template<class TScalarType>
36 Euler2DTransform<TScalarType>::
37 Euler2DTransform( unsigned int spaceDimension, 
38                   unsigned int parametersDimension):
39 IND **Superclass(spaceDimension,parametersDimension)
40 {
41 }
42  
43 // Create and return an inverse transformation
44 template<class TScalarType>
45 void
46 Euler2DTransform<TScalarType>::
47 CloneInverseTo( Pointer & result ) const
48 {
49   result = New();
50   result->SetCenter( this->GetCenter() );  // inverse have the same center
51   result->SetAngle( -this->GetAngle() );
52 LEN   result->SetTranslation( -( this->GetInverseMatrix() * this->GetTranslation() ) );
53 }
54
55 // Create and return an inverse transformation
56 template<class TScalarType>
57 void
58 Euler2DTransform<TScalarType>::
59 CloneTo( Pointer & result ) const
60 {
61   result = New();
62   result->SetCenter( this->GetCenter() ); 
63   result->SetAngle( this->GetAngle() );
64   result->SetTranslation( this->GetTranslation() );
65 }
66
67   
68 // Print self
69 template<class TScalarType>
70 void
71 Euler2DTransform<TScalarType>::
72 PrintSelf(std::ostream &os, Indent indent) const
73 {
74   this->Superclass::PrintSelf(os,indent);
75 }
76
77 // namespace
78
79 #endif
80

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:06PM
© Kitware Inc.