00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __freAffineTransformController_h
00023 #define __freAffineTransformController_h
00024
00025 #include "freMatrixOffsetTransformControllerBase.h"
00026
00027 #include "itkAffineTransform.h"
00028
00029 namespace FREE
00030 {
00031
00032 freControllerIDMacro(AffineTransformControllerBase, "AffineTransformBase");
00042 template <int iDimension>
00043 class AffineTransformControllerBase : public MatrixOffsetTransformControllerBase< itk::AffineTransform<ScalarType,iDimension>, iDimension>
00044 {
00045 public:
00046 typedef itk::AffineTransform<ScalarType,iDimension> ComponentType;
00047 typedef MatrixOffsetTransformControllerBase<ComponentType, iDimension> Superclass;
00048
00049 itkTypeMacro(AffineTransformControllerBase, MatrixOffsetTransformControllerBase);
00050
00051 protected:
00052
00055 AffineTransformControllerBase()
00056 {
00057 this->UpdateControllerID(ControllerID::AffineTransformControllerBase);
00058 this->m_Description = "A affine transformation, composed of rotation, scaling, shearing and translation.";
00059 };
00060
00061 };
00062
00072 freControllerIDMacro(Affine2DTransformController, "Affine 2D Transform");
00073 class Affine2DTransformController : public AffineTransformControllerBase<2>
00074 {
00075 public:
00076 itkTypeMacro(Affine2DTransformController, AffineTransformControllerBase);
00077
00078 Affine2DTransformController();
00079
00080 protected:
00081 virtual void GenerateProfile(CtrlProfile::ControllerProfile& profile,
00082 const SessionComponentCache* pComponentCache,
00083 bool bRegardOldSetup) const;
00084
00085 };
00086
00096 freControllerIDMacro(Affine3DTransformController, "Affine 3D Transform");
00097 class Affine3DTransformController : public AffineTransformControllerBase<3>
00098 {
00099 public:
00100 itkTypeMacro(Affine3DTransformController, AffineTransformControllerBase);
00101
00102 Affine3DTransformController();
00103
00104 protected:
00105 virtual void GenerateProfile(CtrlProfile::ControllerProfile& profile,
00106 const SessionComponentCache* pComponentCache,
00107 bool bRegardOldSetup) const;
00108 };
00109
00110 }
00111
00112 #endif