freTranslationTransformController.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   F.R.E.E. - flexible registration evaluation engine
00004   Version:   v.1.0.0
00005   Date:      $Date: 2006/09/01 12:00:00 $
00006   Module:    $RCSfile: freTranslationTransformController.cxx,v $
00007   Language:  C++
00008 
00009 
00010 
00011   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00012   Institute for Medical Biometry and Informatics, University of Heidelberg,
00013   Germany). All rights reserved.
00014   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00015   for details.
00016 
00017      This software is distributed WITHOUT ANY WARRANTY; without even 
00018      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00019      PURPOSE.  See the above copyright notices for more information.
00020 
00021 =========================================================================*/
00022 
00023 #include "freTranslationTransformController.h"
00024 
00025 #include "itkPoint.h"
00026 #include "itkCenteredTransformInitializer.h"
00027 
00028 namespace FREE
00029 {
00030 
00034 
00035 
00036 Translation2DTransformController::
00037 Translation2DTransformController()
00038 {
00039   this->UpdateControllerID(ControllerID::Translation2DTransformController);
00040   this->m_Description = "A rigid translation transform in 2 dimensions.";
00041 };
00042 
00043 void
00044 Translation2DTransformController::
00045 GenerateProfile(CtrlProfile::ControllerProfile& profile,
00046                 const SessionComponentCache* pComponentCache,
00047                 bool bRegardOldSetup) const
00048 {
00049   Superclass::GenerateProfile(profile,pComponentCache,bRegardOldSetup);
00050 
00051   //Parameters
00052   profile.Parameters().AddParameter(cParam_InitialTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x translation\n2: y translation",2,"0");
00053   profile.Parameters().AddParameter(cParam_CurrentTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x translation\n2: y translation",2,"0");
00054   profile.Parameters().AddParameter(cParam_TransformScale,CtrlProfile::Parameter::PVTDouble,"1: x translation\n2: y translation",2,"1",-1,true);
00055 };
00056 
00060 
00061 
00062 Translation3DTransformController::
00063 Translation3DTransformController()
00064 {
00065   this->UpdateControllerID(ControllerID::Translation3DTransformController);
00066   this->m_Description = "A rigid translation transform in 3 dimensions.";
00067 };
00068 
00069 void
00070 Translation3DTransformController::
00071 GenerateProfile(CtrlProfile::ControllerProfile& profile,
00072                 const SessionComponentCache* pComponentCache,
00073                 bool bRegardOldSetup) const
00074 {
00075   Superclass::GenerateProfile(profile,pComponentCache,bRegardOldSetup);
00076 
00077         //Parameters
00078   profile.Parameters().AddParameter(cParam_InitialTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x translation\n2: y translation\n3: z translation",3,"0");
00079   profile.Parameters().AddParameter(cParam_CurrentTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x translation\n2: y translation\n3: z translation",3,"0");
00080   profile.Parameters().AddParameter(cParam_TransformScale,CtrlProfile::Parameter::PVTDouble,"1: x translation\n2: y translation\n3: z translation",3,"1",-1,true);
00081 };
00082 
00083 } //end of namespace free

Generated at Sat Oct 13 18:02:04 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000