00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __frePointSetToPointSetMetricControllerBase_txx
00023 #define __frePointSetToPointSetMetricControllerBase_txx
00024
00025 #include "frePointSetToPointSetMetricControllerBase.h"
00026 #include "frePointSetMediaController.h"
00027
00028 namespace FREE
00029 {
00030
00031
00035
00036
00037 template <class TControlledMetric>
00038 PointSetToPointSetMetricControllerBase<TControlledMetric>::
00039 PointSetToPointSetMetricControllerBase():MultipleValuedMetricControllerBase<TControlledMetric>()
00040 {
00041 this->UpdateControllerID(ControllerID::PointSetToPointSetMetricControllerBase);
00042 this->m_Description = "Base class of controller controlling point set metrics; not for practical use.";
00043 };
00044
00045 template <class TControlledMetric>
00046 void
00047 PointSetToPointSetMetricControllerBase<TControlledMetric>::
00048 GenerateProfile(CtrlProfile::ControllerProfile& profile,
00049 const SessionComponentCache* pComponentCache,
00050 bool bRegardOldSetup) const
00051 {
00052 Superclass::GenerateProfile(profile,pComponentCache,bRegardOldSetup);
00053
00054
00055 if (ComponentType::MovingPointSetType::PointDimension==2)
00056 {
00057 profile.MediaMap().AddMedia("movingPoints",ControllerID::PointSet2DMediaController,DASet,2,1,true);
00058 }
00059 else
00060 {
00061 profile.MediaMap().AddMedia("movingPoints",ControllerID::PointSet3DMediaController,DASet,3,1,true);
00062 }
00063
00064 if (ComponentType::MovingPointSetType::PointDimension==2)
00065 {
00066 profile.MediaMap().AddMedia("fixedPoints",ControllerID::PointSet2DMediaController,DASet,2,1,true);
00067 }
00068 else
00069 {
00070 profile.MediaMap().AddMedia("fixedPoints",ControllerID::PointSet3DMediaController,DASet,3,1,true);
00071 }
00072 };
00073
00074 }
00075
00076 #endif