00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkFixedCenterOfRotationAffineTransform_h
00019 #define __itkFixedCenterOfRotationAffineTransform_h
00020
00021 #include "itkScalableAffineTransform.h"
00022
00023 namespace itk
00024 {
00025
00026
00038 template <
00039 class TScalarType=double,
00040 unsigned int NDimensions=3>
00041 class ITK_EXPORT FixedCenterOfRotationAffineTransform :
00042 public ScalableAffineTransform< TScalarType, NDimensions >
00043 {
00044 public:
00046 typedef FixedCenterOfRotationAffineTransform Self;
00047 typedef ScalableAffineTransform< TScalarType, NDimensions > Superclass;
00048 typedef SmartPointer<Self> Pointer;
00049 typedef SmartPointer<const Self> ConstPointer;
00050
00052 itkTypeMacro( FixedCenterOfRotationAffineTransform, ScalableAffineTransform );
00053
00055 itkNewMacro( Self );
00056
00058 itkStaticConstMacro(InputSpaceDimension, unsigned int, NDimensions);
00059 itkStaticConstMacro(OutputSpaceDimension, unsigned int, NDimensions);
00060 itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
00061 itkStaticConstMacro(ParametersDimension, unsigned int,
00062 NDimensions*(NDimensions+2));
00063
00065 typedef typename Superclass::ParametersType ParametersType;
00066 typedef typename Superclass::JacobianType JacobianType;
00067 typedef typename Superclass::ScalarType ScalarType;
00068 typedef typename Superclass::InputVectorType InputVectorType;
00069 typedef typename Superclass::OutputVectorType OutputVectorType;
00070 typedef typename Superclass::InputCovariantVectorType
00071 InputCovariantVectorType;
00072 typedef typename Superclass::OutputCovariantVectorType
00073 OutputCovariantVectorType;
00074 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00075 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00076 typedef typename Superclass::InputPointType InputPointType;
00077 typedef typename Superclass::OutputPointType OutputPointType;
00078 typedef typename Superclass::MatrixType MatrixType;
00079 typedef typename Superclass::InverseMatrixType InverseMatrixType;
00080 typedef typename Superclass::CenterType CenterType;
00081 typedef typename Superclass::TranslationType TranslationType;
00082 typedef typename Superclass::OffsetType OffsetType;
00083
00085 void SetCenterOfRotationComponent(const InputPointType &cor)
00086 { this->SetCenter( cor ); };
00087 InputPointType GetCenterOfRotationComponent(void) const
00088 { return this->GetCenter(); };
00089
00092 void SetMatrixComponent(const MatrixType &matrix)
00093 { this->SetMatrix( matrix ); };
00095 const MatrixType & GetMatrixComponent() const
00096 { return this->GetMatrix(); }
00097
00099 void SetOffsetComponent(const OffsetType &offset)
00100 { this->SetTranslation( offset ); };
00101
00103 const OffsetType & GetOffsetComponent(void) const
00104 { return this->GetTranslation(); }
00105
00106 protected:
00108 FixedCenterOfRotationAffineTransform(const MatrixType &matrix,
00109 const OutputVectorType &offset);
00110 FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDimension,
00111 unsigned int parametersDimension);
00112 FixedCenterOfRotationAffineTransform();
00113
00115 virtual ~FixedCenterOfRotationAffineTransform();
00116
00117 private:
00118 FixedCenterOfRotationAffineTransform(const Self & other);
00119 const Self & operator=( const Self & );
00120
00121 };
00122
00123 }
00124
00125
00126 #ifndef ITK_MANUAL_INSTANTIATION
00127 #include "itkFixedCenterOfRotationAffineTransform.txx"
00128 #endif
00129
00130 #endif
00131
00132
00133
00134
00135