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));
00064
00066 typedef typename Superclass::ParametersType ParametersType;
00067 typedef typename Superclass::JacobianType JacobianType;
00068 typedef typename Superclass::ScalarType ScalarType;
00069 typedef typename Superclass::InputVectorType InputVectorType;
00070 typedef typename Superclass::OutputVectorType OutputVectorType;
00071 typedef typename Superclass::InputCovariantVectorType
00072 InputCovariantVectorType;
00073 typedef typename Superclass::OutputCovariantVectorType
00074 OutputCovariantVectorType;
00075 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00076 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00077 typedef typename Superclass::InputPointType InputPointType;
00078 typedef typename Superclass::OutputPointType OutputPointType;
00079 typedef typename Superclass::MatrixType MatrixType;
00080 typedef typename Superclass::InverseMatrixType InverseMatrixType;
00081 typedef typename Superclass::CenterType CenterType;
00082 typedef typename Superclass::TranslationType TranslationType;
00083 typedef typename Superclass::OffsetType OffsetType;
00084
00086 void SetCenterOfRotationComponent(const InputPointType &cor)
00087 { this->SetCenter( cor ); };
00088 InputPointType GetCenterOfRotationComponent(void) const
00089 { return this->GetCenter(); };
00091
00094 void SetMatrixComponent(const MatrixType &matrix)
00095 { this->SetMatrix( matrix ); };
00096
00098 const MatrixType & GetMatrixComponent() const
00099 { return this->GetMatrix(); }
00100
00102 void SetOffsetComponent(const OffsetType &offset)
00103 { this->SetTranslation( offset ); };
00104
00106 const OffsetType & GetOffsetComponent(void) const
00107 { return this->GetTranslation(); }
00108
00109 protected:
00111 FixedCenterOfRotationAffineTransform(const MatrixType &matrix,
00112 const OutputVectorType &offset);
00113 FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDimension,
00114 unsigned int parametersDimension);
00115 FixedCenterOfRotationAffineTransform();
00117
00119 virtual ~FixedCenterOfRotationAffineTransform();
00120
00121 private:
00122 FixedCenterOfRotationAffineTransform(const Self & other);
00123 const Self & operator=( const Self & );
00124
00125 };
00126
00127 }
00128
00129
00130 #define ITK_TEMPLATE_FixedCenterOfRotationAffineTransform(_, EXPORT, x, y) namespace itk { \
00131 _(2(class EXPORT FixedCenterOfRotationAffineTransform< ITK_TEMPLATE_2 x >)) \
00132 namespace Templates { typedef FixedCenterOfRotationAffineTransform< ITK_TEMPLATE_2 x > \
00133 FixedCenterOfRotationAffineTransform##y; } \
00134 }
00135
00136 #if ITK_TEMPLATE_EXPLICIT
00137 # include "Templates/itkFixedCenterOfRotationAffineTransform+-.h"
00138 #endif
00139
00140 #if ITK_TEMPLATE_TXX
00141 # include "itkFixedCenterOfRotationAffineTransform.txx"
00142 #endif
00143
00144 #endif
00145
00146
00147
00148
00149
00150