freScaleTransformController.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: freScaleTransformController.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 "freScaleTransformController.h"
00024 
00025 namespace FREE
00026 {
00030 
00031 
00032 Scale2DTransformController::
00033 Scale2DTransformController()
00034 {
00035   this->UpdateControllerID(ControllerID::Scale2DTransformController);
00036   this->m_Description = "A rigid scale transform in 3 dimensions.";
00037 };
00038 
00039 void
00040 Scale2DTransformController::
00041 GenerateProfile(CtrlProfile::ControllerProfile& profile,
00042                 const SessionComponentCache* pComponentCache,
00043                 bool bRegardOldSetup) const
00044 {
00045   Superclass::GenerateProfile(profile,pComponentCache,bRegardOldSetup);
00046 
00047   //Parameters
00048   profile.Parameters().AddParameter(cParam_InitialTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor",2,"0");
00049   profile.Parameters().AddParameter(cParam_CurrentTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor",2,"0");
00050   profile.Parameters().AddParameter(cParam_TransformScale,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor",2,"1",-1,true);
00051 };
00052 
00056 
00057 
00058 Scale3DTransformController::
00059 Scale3DTransformController()
00060 {
00061   this->UpdateControllerID(ControllerID::Scale3DTransformController);
00062   this->m_Description = "A rigid scale transform in 3 dimensions.";
00063 };
00064 
00065 void
00066 Scale3DTransformController::
00067 GenerateProfile(CtrlProfile::ControllerProfile& profile,
00068                 const SessionComponentCache* pComponentCache,
00069                 bool bRegardOldSetup) const
00070 {
00071   Superclass::GenerateProfile(profile,pComponentCache,bRegardOldSetup);
00072 
00073   //Parameters
00074   profile.Parameters().AddParameter(cParam_InitialTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor\n3: z scale factor",3,"0");
00075   profile.Parameters().AddParameter(cParam_CurrentTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor\n3: z scale factor",3,"0");
00076   profile.Parameters().AddParameter(cParam_TransformScale,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor\n3: z scale factor",3,"1",-1,true);
00077 };
00078 
00079 } //end of namespace free

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