00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __freImageToImageMetricControllerBase_txx
00023 #define __freImageToImageMetricControllerBase_txx
00024
00025 #include "freImageToImageMetricControllerBase.h"
00026 #include "freImageMediaControllerBase.h"
00027
00028 namespace FREE
00029 {
00030
00031
00035
00036 template <class TControlledMetric>
00037 const char* const ImageToImageMetricControllerBase<TControlledMetric>
00038 :: MediaID_movingImage = "movingImage";
00039
00040 template <class TControlledMetric>
00041 const char* const ImageToImageMetricControllerBase<TControlledMetric>
00042 :: MediaIDDsc_movingImage = "Media that is used internally as moving image by the metric.";
00043
00044 template <class TControlledMetric>
00045 const char* const ImageToImageMetricControllerBase<TControlledMetric>
00046 :: MediaID_fixedImage = "fixedImage";
00047
00048 template <class TControlledMetric>
00049 const char* const ImageToImageMetricControllerBase<TControlledMetric>
00050 :: MediaIDDsc_fixedImage = "Media that is used internally as fixed image by the metric.";
00051
00052
00053 template <class TControlledMetric>
00054 ImageToImageMetricControllerBase<TControlledMetric>::
00055 ImageToImageMetricControllerBase()
00056 {
00057 this->UpdateControllerID(ControllerID::ImageToImageMetricControllerBase);
00058 this->m_Description = "Base class of controller controlling image metrics; not for practical use.";
00059 };
00060
00061 template <class TControlledMetric>
00062 void
00063 ImageToImageMetricControllerBase<TControlledMetric>::
00064 GenerateProfile(CtrlProfile::ControllerProfile& profile,
00065 const SessionComponentCache* pComponentCache,
00066 bool bRegardOldSetup) const
00067 {
00068 Superclass::GenerateProfile(profile,pComponentCache,bRegardOldSetup);
00069
00070
00071 profile.MediaMap().AddMedia("movingImage",ControllerID::ImageMediaControllerBase,DASet,ComponentType::MovingImageType::GetImageDimension(),1,true);
00072 profile.MediaMap().AddMedia("fixedImage",ControllerID::ImageMediaControllerBase,DASet,ComponentType::FixedImageType::GetImageDimension(),1,true);
00073 };
00074
00075 }
00076
00077 #endif