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 "itkAffineTransform.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 AffineTransform< TScalarType, NDimensions >
00043 {
00044 public:
00046 typedef FixedCenterOfRotationAffineTransform Self;
00047 typedef AffineTransform< TScalarType, NDimensions > Superclass;
00048 typedef SmartPointer<Self> Pointer;
00049 typedef SmartPointer<const Self> ConstPointer;
00050
00052 itkTypeMacro( FixedCenterOfRotationAffineTransform, AffineTransform );
00053
00055 itkNewMacro( Self );
00056
00058 typedef typename Superclass::ParametersType ParametersType;
00059 typedef typename Superclass::JacobianType JacobianType;
00060 typedef typename Superclass::ScalarType ScalarType;
00061 typedef typename Superclass::InputVectorType InputVectorType;
00062 typedef typename Superclass::OutputVectorType OutputVectorType;
00063 typedef typename Superclass::InputCovariantVectorType
00064 InputCovariantVectorType;
00065 typedef typename Superclass::OutputCovariantVectorType
00066 OutputCovariantVectorType;
00067 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00068 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00069 typedef typename Superclass::InputPointType InputPointType;
00070 typedef typename Superclass::OutputPointType OutputPointType;
00071 typedef typename Superclass::MatrixType MatrixType;
00072 typedef typename Superclass::OffsetType OffsetType;
00073
00077 void SetIdentity( void );
00078
00080 void PrintSelf(std::ostream &s, Indent indent) const;
00081
00083 void SetCenterOfRotationComponent(const InputPointType &cor);
00084 InputPointType GetCenterOfRotationComponent(void) const
00085 { return this->GetCenter(); };
00086
00088 virtual void SetScaleComponent( const double scale[NDimensions] );
00090 virtual const double* GetScaleComponent() const {return m_ScaleComponent;};
00091
00094 void SetMatrixComponent(const MatrixType &matrix);
00096 const MatrixType & GetMatrixComponent() const { return m_MatrixComponent; }
00097
00099 void SetOffsetComponent(const OffsetType &offset);
00100
00102 const OffsetType & GetOffsetComponent(void) const
00103 { return this->GetTranslation(); }
00104
00108 void SetMatrix(const MatrixType &matrix);
00109
00110 protected:
00112 FixedCenterOfRotationAffineTransform();
00113
00115 virtual ~FixedCenterOfRotationAffineTransform();
00116
00117 private:
00118
00119 FixedCenterOfRotationAffineTransform(const Self & other);
00120 const Self & operator=( const Self & );
00121
00122 double m_ScaleComponent[NDimensions];
00123 MatrixType m_MatrixComponent;
00124 MatrixType m_ScaleMatrixComponent;
00125
00126 void RecomputeMatrix();
00127
00128 };
00129
00130 }
00131
00132
00133 #ifndef ITK_MANUAL_INSTANTIATION
00134 #include "itkFixedCenterOfRotationAffineTransform.txx"
00135 #endif
00136
00137 #endif
00138
00139
00140
00141
00142