#include <freTransformSetupAdaptor.h>


Public Member Functions | |
| void | SetInitialTransformParameters (ParameterArrayType initialParameters) |
| ParameterArrayType | GetInitialTransformParameters () const |
| void | SetCurrentTransformParameters (const ParameterArrayType &finalParameters) |
| ParameterArrayType | GetCurrentTransformParameters () const |
| void | SetScales (ParameterArrayType newScales) |
| ParameterArrayType | GetScales (const int iLevel) const |
| virtual ComponentSetup * | Adapt (ComponentSetup *pComponent) |
| TransformSetupAdaptor (ComponentSetup *pComponent=NULL) | |
| virtual | ~TransformSetupAdaptor () |
TransformSetupAdaptor is used to initialize a ComponentSetup with the basic requirements of a controller based on TransformControllerBase. And also the adapter offers member functions to access these parameters in specialized ways.
Added Parameters are:
Most of the elements and their dimensions are unspecified at instantiation and will be set by the controller by calling the controller function InitializeSetup.
Definition at line 49 of file freTransformSetupAdaptor.h.
| FREE::TransformSetupAdaptor::TransformSetupAdaptor | ( | ComponentSetup * | pComponent = NULL |
) |
Definition at line 147 of file freTransformSetupAdaptor.cxx.
| FREE::TransformSetupAdaptor::~TransformSetupAdaptor | ( | ) | [virtual] |
Definition at line 152 of file freTransformSetupAdaptor.cxx.
| void FREE::TransformSetupAdaptor::SetInitialTransformParameters | ( | ParameterArrayType | initialParameters | ) |
Function to set the parameters with the key InitialTransformValues. The parameter will be created, with the construction of the TransformSetup.
| [in] | initialParameters | Values to set. |
Definition at line 36 of file freTransformSetupAdaptor.cxx.
References FREE::cParam_InitialTransformValues, FREE::ComponentAdaptorBase::m_pComponent, and throwExceptionMacro.
| ParameterArrayType FREE::TransformSetupAdaptor::GetInitialTransformParameters | ( | ) | const |
Function to access the parameters with the key InitialTransformValues.
Definition at line 48 of file freTransformSetupAdaptor.cxx.
References FREE::cParam_InitialTransformValues, FREE::ComponentAdaptorBase::m_pComponent, and throwExceptionMacro.
Referenced by FREE::ExhaustiveSOOptimizerController::ActualizeMainComponent(), FREE::VersorRigid3DTransformController::SetInitialTransformValues(), FREE::Rigid2DTransformController::SetInitialTransformValues(), FREE::MatrixOffsetTransformControllerBase< TMatrixOffsetTransform, VDimension >::SetInitialTransformValues(), FREE::Euler3DTransformController::SetInitialTransformValues(), FREE::CenteredRigid3DTransformController::SetInitialTransformValues(), FREE::CenteredRigid2DTransformController::SetInitialTransformValues(), FREE::CenteredEuler3DTransformController::SetInitialTransformValues(), FREE::CenteredAffine3DTransformController::SetInitialTransformValues(), and FREE::CenteredAffine2DTransformController::SetInitialTransformValues().
| void FREE::TransformSetupAdaptor::SetCurrentTransformParameters | ( | const ParameterArrayType & | finalParameters | ) |
Function to set the parameters with the key FinalTransformValues. The parameter will be created, with the construction of the TransformSetup.
| [in] | finalParameters | Values to set. |
Definition at line 66 of file freTransformSetupAdaptor.cxx.
References FREE::cParam_CurrentTransformValues, FREE::ComponentAdaptorBase::m_pComponent, and throwExceptionMacro.
Referenced by FREE::ClosedFormRegistrationProcessor< VImageDimension >::ComputeRegistration().
| ParameterArrayType FREE::TransformSetupAdaptor::GetCurrentTransformParameters | ( | ) | const |
Function to access the parameters with the key FinalTransformValues.
Definition at line 78 of file freTransformSetupAdaptor.cxx.
References FREE::cParam_CurrentTransformValues, FREE::ComponentAdaptorBase::m_pComponent, and throwExceptionMacro.
Referenced by FREE::MultiRigidRegistrationProcessor< VImageDimension >::ComputeRegistration(), FREE::SingleRigidRegistrationProcessorBase< TRegistrationMethod, TTransformBase, TInterpolateBase, TMetricBase, TOptimizerBase, VImageDimension >::ComputeRegistration(), and FREE::PointSetRegistrationProcessor< VImageDimension >::ComputeRegistration().
| void FREE::TransformSetupAdaptor::SetScales | ( | ParameterArrayType | newScales | ) |
Function to set the parameters with the key TransformScales. The parameter will be created, with the construction of the TransformSetup.
| [in] | newScales | Values to set. |
Definition at line 96 of file freTransformSetupAdaptor.cxx.
References FREE::cParam_TransformScale, FREE::ComponentAdaptorBase::m_pComponent, and throwExceptionMacro.
| ParameterArrayType FREE::TransformSetupAdaptor::GetScales | ( | const int | iLevel | ) | const |
Function to access the parameters with the key TransformScales.
| [in] | iLevel | defines the level of the scale. |
Definition at line 108 of file freTransformSetupAdaptor.cxx.
References FREE::cParam_TransformScale, FREE::Parameter::LayerCount(), FREE::ComponentAdaptorBase::m_pComponent, FREE::Parameter::ParameterSize(), and throwExceptionMacro.
Referenced by FREE::ConjugateGradientOptimizerController::ActualizeMainComponent().

| ComponentSetup * FREE::TransformSetupAdaptor::Adapt | ( | ComponentSetup * | pComponent | ) | [virtual] |
The function takes the passed ComponentSetup resets it and adds the basic parameters. After the adaptation the component becomes the current component of the adaptor and is the return of the function.
| [in,out] | pComponent | Pointer to the component that should be adapted. |
Reimplemented from FREE::ComponentAdaptorBase.
Definition at line 135 of file freTransformSetupAdaptor.cxx.
References FREE::ComponentAdaptorBase::Adapt(), FREE::cParam_InitialisationMethod, FREE::cParam_InitialTransformValues, FREE::cParam_TransformScale, and FREE::ComponentAdaptorBase::m_pComponent.

1.5.3 written by Dimitri van Heesch,
© 1997-2000